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

Unified Diff: chrome/browser/drive/test_util.cc

Issue 1042803002: Drive: Move inner structures of DriveAPIService under drive namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests. Created 5 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/drive/test_util.cc
diff --git a/chrome/browser/drive/test_util.cc b/chrome/browser/drive/test_util.cc
index 9b4d36d4ed983dd660f477559ae2eb032ab03172..575cfe63eabce359f13e8abf7f1182b5c921833d 100644
--- a/chrome/browser/drive/test_util.cc
+++ b/chrome/browser/drive/test_util.cc
@@ -119,30 +119,24 @@ bool SetUpTestEntries(FakeDriveService* drive_service) {
return false;
drive_service->AddNewDirectoryWithResourceId(
- "sub_dir_folder_resource_id",
- "1_folder_resource_id",
- "Sub Directory Folder",
- DriveServiceInterface::AddNewDirectoryOptions(),
+ "sub_dir_folder_resource_id", "1_folder_resource_id",
+ "Sub Directory Folder", AddNewDirectoryOptions(),
google_apis::test_util::CreateCopyResultCallback(&error, &entry));
base::RunLoop().RunUntilIdle();
if (error != HTTP_CREATED)
return false;
drive_service->AddNewDirectoryWithResourceId(
- "sub_sub_directory_folder_id",
- "sub_dir_folder_resource_id",
- "Sub Sub Directory Folder",
- DriveServiceInterface::AddNewDirectoryOptions(),
+ "sub_sub_directory_folder_id", "sub_dir_folder_resource_id",
+ "Sub Sub Directory Folder", AddNewDirectoryOptions(),
google_apis::test_util::CreateCopyResultCallback(&error, &entry));
base::RunLoop().RunUntilIdle();
if (error != HTTP_CREATED)
return false;
drive_service->AddNewDirectoryWithResourceId(
- "slash_dir_folder_resource_id",
- drive_service->GetRootResourceId(),
- "Slash / in directory",
- DriveServiceInterface::AddNewDirectoryOptions(),
+ "slash_dir_folder_resource_id", drive_service->GetRootResourceId(),
+ "Slash / in directory", AddNewDirectoryOptions(),
google_apis::test_util::CreateCopyResultCallback(&error, &entry));
base::RunLoop().RunUntilIdle();
if (error != HTTP_CREATED)
@@ -161,10 +155,8 @@ bool SetUpTestEntries(FakeDriveService* drive_service) {
return false;
drive_service->AddNewDirectoryWithResourceId(
- "sub_dir_folder_2_self_link",
- drive_service->GetRootResourceId(),
- "Directory 2 excludeDir-test",
- DriveServiceInterface::AddNewDirectoryOptions(),
+ "sub_dir_folder_2_self_link", drive_service->GetRootResourceId(),
+ "Directory 2 excludeDir-test", AddNewDirectoryOptions(),
google_apis::test_util::CreateCopyResultCallback(&error, &entry));
base::RunLoop().RunUntilIdle();
if (error != HTTP_CREATED)

Powered by Google App Engine
This is Rietveld 408576698