diff options
author | hidehiko@chromium.org <hidehiko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-31 06:08:23 +0000 |
---|---|---|
committer | hidehiko@chromium.org <hidehiko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-31 06:08:23 +0000 |
commit | 98838d5e0fc1266e0312fe03e07082836e7cd684 (patch) | |
tree | df837d571f6efd8dec91e0645ad9d663fd6ad4f0 /chrome/browser/google_apis/test_util.h | |
parent | bae0f88d93c59922d7b249d1c7dedc772f33b147 (diff) | |
download | chromium_src-98838d5e0fc1266e0312fe03e07082836e7cd684.zip chromium_src-98838d5e0fc1266e0312fe03e07082836e7cd684.tar.gz chromium_src-98838d5e0fc1266e0312fe03e07082836e7cd684.tar.bz2 |
Move testing utility from unittest.cc to test_util.
This is preparation to implement DeleteResource operation on Drive API v2.
The moved function will be used in the unittest for the new code, so it is
moved to test_util so that it can be shared.
BUG=148628
TEST=Ran unit_tests
Review URL: https://chromiumcodereview.appspot.com/12088070
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@179810 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/google_apis/test_util.h')
-rw-r--r-- | chrome/browser/google_apis/test_util.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/google_apis/test_util.h b/chrome/browser/google_apis/test_util.h index 864824f..e0ba436 100644 --- a/chrome/browser/google_apis/test_util.h +++ b/chrome/browser/google_apis/test_util.h @@ -56,6 +56,10 @@ scoped_ptr<base::Value> LoadJSONFile(const std::string& relative_path); void CopyResultsFromEntryActionCallback(GDataErrorCode* error_out, GDataErrorCode error_in); +// Copies the result from EntryActionCallback and quit the message loop. +void CopyResultFromEntryActionCallbackAndQuit(GDataErrorCode* error_out, + GDataErrorCode error_in); + // Copies the results from GetDataCallback. void CopyResultsFromGetDataCallback(GDataErrorCode* error_out, scoped_ptr<base::Value>* value_out, |