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

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

Issue 140513008: drive: Allow setting modified/accessed date with AddNewDirectory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « chrome/browser/drive/fake_drive_service.cc ('k') | chrome/browser/drive/gdata_wapi_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/drive/fake_drive_service_unittest.cc
diff --git a/chrome/browser/drive/fake_drive_service_unittest.cc b/chrome/browser/drive/fake_drive_service_unittest.cc
index 70f78ad51afcdb10cab17df2a0291ee2f80d27b2..ac80d30a557164dffc7522e9c3bbb27a6447018c 100644
--- a/chrome/browser/drive/fake_drive_service_unittest.cc
+++ b/chrome/browser/drive/fake_drive_service_unittest.cc
@@ -72,6 +72,7 @@ class FakeDriveServiceTest : public testing::Test {
fake_service_.AddNewDirectory(
parent_resource_id,
directory_title,
+ DriveServiceInterface::AddNewDirectoryOptions(),
test_util::CreateCopyResultCallback(&error, &resource_entry));
base::RunLoop().RunUntilIdle();
return error == HTTP_CREATED;
@@ -1611,6 +1612,7 @@ TEST_F(FakeDriveServiceTest, AddNewDirectory_EmptyParent) {
fake_service_.AddNewDirectory(
std::string(),
"new directory",
+ DriveServiceInterface::AddNewDirectoryOptions(),
test_util::CreateCopyResultCallback(&error, &resource_entry));
base::RunLoop().RunUntilIdle();
@@ -1640,6 +1642,7 @@ TEST_F(FakeDriveServiceTest, AddNewDirectory_ToRootDirectory) {
fake_service_.AddNewDirectory(
fake_service_.GetRootResourceId(),
"new directory",
+ DriveServiceInterface::AddNewDirectoryOptions(),
test_util::CreateCopyResultCallback(&error, &resource_entry));
base::RunLoop().RunUntilIdle();
@@ -1669,6 +1672,7 @@ TEST_F(FakeDriveServiceTest, AddNewDirectory_ToRootDirectoryOnEmptyFileSystem) {
fake_service_.AddNewDirectory(
fake_service_.GetRootResourceId(),
"new directory",
+ DriveServiceInterface::AddNewDirectoryOptions(),
test_util::CreateCopyResultCallback(&error, &resource_entry));
base::RunLoop().RunUntilIdle();
@@ -1700,6 +1704,7 @@ TEST_F(FakeDriveServiceTest, AddNewDirectory_ToNonRootDirectory) {
fake_service_.AddNewDirectory(
kParentResourceId,
"new directory",
+ DriveServiceInterface::AddNewDirectoryOptions(),
test_util::CreateCopyResultCallback(&error, &resource_entry));
base::RunLoop().RunUntilIdle();
@@ -1726,6 +1731,7 @@ TEST_F(FakeDriveServiceTest, AddNewDirectory_ToNonexistingDirectory) {
fake_service_.AddNewDirectory(
kParentResourceId,
"new directory",
+ DriveServiceInterface::AddNewDirectoryOptions(),
test_util::CreateCopyResultCallback(&error, &resource_entry));
base::RunLoop().RunUntilIdle();
@@ -1743,6 +1749,7 @@ TEST_F(FakeDriveServiceTest, AddNewDirectory_Offline) {
fake_service_.AddNewDirectory(
fake_service_.GetRootResourceId(),
"new directory",
+ DriveServiceInterface::AddNewDirectoryOptions(),
test_util::CreateCopyResultCallback(&error, &resource_entry));
base::RunLoop().RunUntilIdle();
« no previous file with comments | « chrome/browser/drive/fake_drive_service.cc ('k') | chrome/browser/drive/gdata_wapi_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698