Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: chrome/browser/chromeos/drive/drive_test_util.h

Issue 12833019: Eliminate small CopyResultFromXxxCallback families in drive_test_util. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/drive/drive_test_util.h
diff --git a/chrome/browser/chromeos/drive/drive_test_util.h b/chrome/browser/chromeos/drive/drive_test_util.h
index 19f626ac727982b497c98641f1ffe78a8077d726..054a21d4370283330d410bc190b9353c60c543e8 100644
--- a/chrome/browser/chromeos/drive/drive_test_util.h
+++ b/chrome/browser/chromeos/drive/drive_test_util.h
@@ -44,36 +44,6 @@ DriveCacheEntry ToCacheEntry(int cache_state);
// Returns true if the cache state of the given two cache entries are equal.
bool CacheStatesEqual(const DriveCacheEntry& a, const DriveCacheEntry& b);
-// Copies results from DriveFileSystem methods. Used to run asynchronous
-// functions that take GetAvailableSpaceCallback from tests.
-void CopyResultsFromGetAvailableSpaceCallback(DriveFileError* out_error,
- int64* out_bytes_total,
- int64* out_bytes_used,
- DriveFileError error,
- int64 bytes_total,
- int64 bytes_used);
-
-// Copies results from SearchMetadataCallback.
-void CopyResultsFromSearchMetadataCallback(
- DriveFileError* out_error,
- scoped_ptr<MetadataSearchResultVector>* out_result,
- DriveFileError error,
- scoped_ptr<MetadataSearchResultVector> result);
-
-// Copies the results from DriveFileSystem methods and stops the message loop
-// of the current thread. Used to run asynchronous function that take
-// OpenFileCallback.
-void CopyResultsFromOpenFileCallbackAndQuit(DriveFileError* out_error,
- base::FilePath* out_file_path,
- DriveFileError error,
- const base::FilePath& file_path);
-
-// Copies the results from DriveFileSystem methods and stops the message loop
-// of the current thread. Used to run asynchronous function that take
-// CloseFileCallback.
-void CopyResultsFromCloseFileCallbackAndQuit(DriveFileError* out_error,
- DriveFileError error);
-
// Loads a test json file as root ("/drive") element from a test file stored
// under chrome/test/data/chromeos. Returns true on success.
bool LoadChangeFeed(const std::string& relative_path,
« no previous file with comments | « chrome/browser/chromeos/drive/drive_file_system_unittest.cc ('k') | chrome/browser/chromeos/drive/drive_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698