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

Unified Diff: chrome/browser/chromeos/gdata/gdata_test_util.h

Issue 10836354: Rename GData* to Drive* in gdata.proto (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase. Created 8 years, 4 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/gdata/gdata_test_util.h
diff --git a/chrome/browser/chromeos/gdata/gdata_test_util.h b/chrome/browser/chromeos/gdata/gdata_test_util.h
index 8bc4bdb55d813471636dd3044e3e1b9a3c7c3331..fe4bb5cae87570bab7275dca1dc19e8add9a4a82 100644
--- a/chrome/browser/chromeos/gdata/gdata_test_util.h
+++ b/chrome/browser/chromeos/gdata/gdata_test_util.h
@@ -13,8 +13,8 @@ class FilePath;
namespace gdata {
-class GDataEntryProto;
-class GDataCacheEntry;
+class DriveCacheEntry;
+class DriveEntryProto;
kinaba 2012/08/21 09:15:14 No declaration for DriveEntryProtoVector.
kochi 2012/08/21 09:37:34 Done.
namespace test_util {
@@ -27,7 +27,7 @@ namespace test_util {
// repeatedly.
void RunBlockingPoolTask();
-// This is a bitmask of cache states in GDataCacheEntry. Used only in tests.
+// This is a bitmask of cache states in DriveCacheEntry. Used only in tests.
enum TestGDataCacheState {
TEST_CACHE_STATE_NONE = 0,
TEST_CACHE_STATE_PINNED = 1 << 0,
@@ -38,11 +38,11 @@ enum TestGDataCacheState {
};
// Converts |cache_state| which is a bit mask of TestGDataCacheState, to a
-// GDataCacheEntry.
-GDataCacheEntry ToCacheEntry(int cache_state);
+// DriveCacheEntry.
+DriveCacheEntry ToCacheEntry(int cache_state);
// Returns true if the cache state of the given two cache entries are equal.
-bool CacheStatesEqual(const GDataCacheEntry& a, const GDataCacheEntry& b);
+bool CacheStatesEqual(const DriveCacheEntry& a, const DriveCacheEntry& b);
// Copies |error| to |output|. Used to run asynchronous functions that take
// FileOperationCallback from tests.
@@ -61,18 +61,18 @@ void CopyResultsFromFileMoveCallback(GDataFileError* out_error,
// GetEntryInfoCallback from tests.
void CopyResultsFromGetEntryInfoCallback(
GDataFileError* out_error,
- scoped_ptr<GDataEntryProto>* out_entry_proto,
+ scoped_ptr<DriveEntryProto>* out_entry_proto,
GDataFileError error,
- scoped_ptr<GDataEntryProto> entry_proto);
+ scoped_ptr<DriveEntryProto> entry_proto);
// Copies |error| and |entries| to |out_error| and |out_entries|
// respectively. Used to run asynchronous functions that take
// GetEntryInfoCallback from tests.
void CopyResultsFromReadDirectoryCallback(
GDataFileError* out_error,
- scoped_ptr<GDataEntryProtoVector>* out_entries,
+ scoped_ptr<DriveEntryProtoVector>* out_entries,
GDataFileError error,
- scoped_ptr<GDataEntryProtoVector> entries);
+ scoped_ptr<DriveEntryProtoVector> entries);
// Copies |error|, |drive_file_path|, and |entry_proto| to |out_error|,
// |out_drive_file_path|, and |out_entry_proto| respectively. Used to run
@@ -81,10 +81,10 @@ void CopyResultsFromReadDirectoryCallback(
void CopyResultsFromGetEntryInfoWithFilePathCallback(
GDataFileError* out_error,
FilePath* out_drive_file_path,
- scoped_ptr<GDataEntryProto>* out_entry_proto,
+ scoped_ptr<DriveEntryProto>* out_entry_proto,
GDataFileError error,
const FilePath& drive_file_path,
- scoped_ptr<GDataEntryProto> entry_proto);
+ scoped_ptr<DriveEntryProto> entry_proto);
// Copies |result| to |out_result|. Used to run asynchronous functions
// that take GetEntryInfoPairCallback from tests.

Powered by Google App Engine
This is Rietveld 408576698