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

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

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.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_test_util.cc b/chrome/browser/chromeos/gdata/gdata_test_util.cc
index 08573b69a5996656f3a8d9af643d63bbcc752ec7..9afab20167c6aa255a61380262132532712933ef 100644
--- a/chrome/browser/chromeos/gdata/gdata_test_util.cc
+++ b/chrome/browser/chromeos/gdata/gdata_test_util.cc
@@ -6,7 +6,7 @@
#include "base/message_loop.h"
#include "base/threading/sequenced_worker_pool.h"
-#include "chrome/browser/chromeos/gdata/gdata.pb.h"
+#include "chrome/browser/chromeos/gdata/drive.pb.h"
#include "content/public/browser/browser_thread.h"
namespace gdata {
@@ -45,8 +45,8 @@ void RunBlockingPoolTask() {
}
}
-GDataCacheEntry ToCacheEntry(int cache_state) {
- GDataCacheEntry cache_entry;
+DriveCacheEntry ToCacheEntry(int cache_state) {
+ DriveCacheEntry cache_entry;
cache_entry.set_is_present(cache_state & TEST_CACHE_STATE_PRESENT);
cache_entry.set_is_pinned(cache_state & TEST_CACHE_STATE_PINNED);
cache_entry.set_is_dirty(cache_state & TEST_CACHE_STATE_DIRTY);
@@ -55,7 +55,7 @@ GDataCacheEntry ToCacheEntry(int cache_state) {
return cache_entry;
}
-bool CacheStatesEqual(const GDataCacheEntry& a, const GDataCacheEntry& b) {
+bool CacheStatesEqual(const DriveCacheEntry& a, const DriveCacheEntry& b) {
return (a.is_present() == b.is_present() &&
a.is_pinned() == b.is_pinned() &&
a.is_dirty() == b.is_dirty() &&
@@ -83,9 +83,9 @@ void CopyResultsFromFileMoveCallback(
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) {
DCHECK(out_error);
DCHECK(out_entry_proto);
@@ -95,9 +95,9 @@ void CopyResultsFromGetEntryInfoCallback(
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) {
DCHECK(out_error);
DCHECK(out_entries);
@@ -108,10 +108,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) {
DCHECK(out_error);
DCHECK(out_drive_file_path);
DCHECK(out_entry_proto);

Powered by Google App Engine
This is Rietveld 408576698