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

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

Issue 137343008: Make chrome.fileSystem.chooseEntry work on Google Drive directories. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test. 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
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 aea6b03c13dc947b8bf14a915845a77009e80c06..5421a20035f859fc5742d9b938c5d24254b1d22b 100644
--- a/chrome/browser/drive/fake_drive_service_unittest.cc
+++ b/chrome/browser/drive/fake_drive_service_unittest.cc
@@ -1118,7 +1118,7 @@ TEST_F(FakeDriveServiceTest, CopyResource) {
EXPECT_EQ(HTTP_SUCCESS, error);
ASSERT_TRUE(resource_entry);
// The copied entry should have the new resource ID and the title.
- EXPECT_EQ(kResourceId + "_copied", resource_entry->resource_id());
+ EXPECT_NE(kResourceId, resource_entry->resource_id());
EXPECT_EQ("new title", resource_entry->title());
EXPECT_EQ(base::Time::FromUTCExploded(kModifiedDate),
resource_entry->updated_time());
@@ -1168,7 +1168,7 @@ TEST_F(FakeDriveServiceTest, CopyResource_EmptyParentResourceId) {
EXPECT_EQ(HTTP_SUCCESS, error);
ASSERT_TRUE(resource_entry);
// The copied entry should have the new resource ID and the title.
- EXPECT_EQ(kResourceId + "_copied", resource_entry->resource_id());
+ EXPECT_NE(kResourceId, resource_entry->resource_id());
EXPECT_EQ("new title", resource_entry->title());
EXPECT_TRUE(HasParent(kResourceId, fake_service_.GetRootResourceId()));
// Should be incremented as a new hosted document was created.
@@ -1222,7 +1222,7 @@ TEST_F(FakeDriveServiceTest, UpdateResource) {
EXPECT_EQ(HTTP_SUCCESS, error);
ASSERT_TRUE(resource_entry);
- // The copied entry should have the new resource ID and the title.
+ // The updated entry should have the new title.
EXPECT_EQ(kResourceId, resource_entry->resource_id());
EXPECT_EQ("new title", resource_entry->title());
EXPECT_EQ(base::Time::FromUTCExploded(kModifiedDate),
@@ -1280,7 +1280,7 @@ TEST_F(FakeDriveServiceTest, UpdateResource_EmptyParentResourceId) {
EXPECT_EQ(HTTP_SUCCESS, error);
ASSERT_TRUE(resource_entry);
- // The copied entry should have the new resource ID and the title.
+ // The updated entry should have the new title.
EXPECT_EQ(kResourceId, resource_entry->resource_id());
EXPECT_EQ("new title", resource_entry->title());
EXPECT_TRUE(HasParent(kResourceId, "fake_root"));
« no previous file with comments | « chrome/browser/drive/fake_drive_service.cc ('k') | chrome/browser/extensions/api/file_handlers/app_file_handler_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698