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

Unified Diff: chrome/browser/sync_file_system/drive_backend/sync_engine_initializer_unittest.cc

Issue 881403003: Rename gdata_errorcode.h to drive_api_error_codes.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typos in BUILD.gn Created 5 years, 11 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/sync_file_system/drive_backend/sync_engine_initializer_unittest.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/sync_engine_initializer_unittest.cc b/chrome/browser/sync_file_system/drive_backend/sync_engine_initializer_unittest.cc
index 1eedc925402f764dc915be00b42c66acb0a3b8f8..2ff8196be147afa8c6c45ad3690b4ec24b958015 100644
--- a/chrome/browser/sync_file_system/drive_backend/sync_engine_initializer_unittest.cc
+++ b/chrome/browser/sync_file_system/drive_backend/sync_engine_initializer_unittest.cc
@@ -129,7 +129,7 @@ class SyncEngineInitializerTest : public testing::Test {
scoped_ptr<google_apis::FileResource> CreateRemoteFolder(
const std::string& parent_folder_id,
const std::string& title) {
- google_apis::GDataErrorCode error = google_apis::GDATA_OTHER_ERROR;
+ google_apis::DriveApiErrorCode error = google_apis::DRIVE_OTHER_ERROR;
scoped_ptr<google_apis::FileResource> entry;
sync_context_->GetDriveService()->AddNewDirectory(
parent_folder_id, title,
@@ -146,7 +146,7 @@ class SyncEngineInitializerTest : public testing::Test {
CreateRemoteFolder(std::string(), kSyncRootFolderTitle));
for (size_t i = 0; i < sync_root->parents().size(); ++i) {
- google_apis::GDataErrorCode error = google_apis::GDATA_OTHER_ERROR;
+ google_apis::DriveApiErrorCode error = google_apis::DRIVE_OTHER_ERROR;
sync_context_->GetDriveService()->RemoveResourceFromDirectory(
sync_root->parents()[i].file_id(),
sync_root->file_id(),
@@ -179,7 +179,7 @@ class SyncEngineInitializerTest : public testing::Test {
}
bool HasNoParent(const std::string& file_id) {
- google_apis::GDataErrorCode error = google_apis::GDATA_OTHER_ERROR;
+ google_apis::DriveApiErrorCode error = google_apis::DRIVE_OTHER_ERROR;
scoped_ptr<google_apis::FileResource> entry;
sync_context_->GetDriveService()->GetFileResource(
file_id,
@@ -197,10 +197,10 @@ class SyncEngineInitializerTest : public testing::Test {
return metadata_database_->CountFileTracker();
}
- google_apis::GDataErrorCode AddParentFolder(
+ google_apis::DriveApiErrorCode AddParentFolder(
const std::string& new_parent_folder_id,
const std::string& file_id) {
- google_apis::GDataErrorCode error = google_apis::GDATA_OTHER_ERROR;
+ google_apis::DriveApiErrorCode error = google_apis::DRIVE_OTHER_ERROR;
sync_context_->GetDriveService()->AddResourceToDirectory(
new_parent_folder_id, file_id,
CreateResultReceiver(&error));

Powered by Google App Engine
This is Rietveld 408576698