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

Unified Diff: chrome/browser/chromeos/drive/drive_resource_metadata_unittest.cc

Issue 12585003: drive: Add showroot=true to WAPI feed URLs and ignore "no parent" entries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update unittests. Created 7 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/chromeos/drive/drive_resource_metadata_unittest.cc
diff --git a/chrome/browser/chromeos/drive/drive_resource_metadata_unittest.cc b/chrome/browser/chromeos/drive/drive_resource_metadata_unittest.cc
index 6f67486c258f9c88db01738b3fbc492048187579..5641a047b70d7e02f74416c9e1a5acbe1e8152e2 100644
--- a/chrome/browser/chromeos/drive/drive_resource_metadata_unittest.cc
+++ b/chrome/browser/chromeos/drive/drive_resource_metadata_unittest.cc
@@ -856,18 +856,6 @@ TEST_F(DriveResourceMetadataTest, AddEntry) {
EXPECT_EQ(base::FilePath::FromUTF8Unsafe("drive/dir1/dir3/file100"),
drive_file_path);
- // Adds to root when parent resource id is not specified.
- DriveEntryProto file_entry_proto2 = CreateDriveEntryProto(
- sequence_id++, false, "");
-
- resource_metadata_->AddEntry(
- file_entry_proto2,
- base::Bind(&test_util::CopyResultsFromFileMoveCallback,
- &error, &drive_file_path));
- google_apis::test_util::RunBlockingPoolTask();
- EXPECT_EQ(DRIVE_FILE_OK, error);
- EXPECT_EQ(base::FilePath::FromUTF8Unsafe("drive/file101"), drive_file_path);
-
// Add a directory.
DriveEntryProto dir_entry_proto = CreateDriveEntryProto(
sequence_id++, true, "resource_id:dir1");
@@ -878,7 +866,7 @@ TEST_F(DriveResourceMetadataTest, AddEntry) {
&error, &drive_file_path));
google_apis::test_util::RunBlockingPoolTask();
EXPECT_EQ(DRIVE_FILE_OK, error);
- EXPECT_EQ(base::FilePath::FromUTF8Unsafe("drive/dir1/dir102"),
+ EXPECT_EQ(base::FilePath::FromUTF8Unsafe("drive/dir1/dir101"),
drive_file_path);
// Add to an invalid parent.

Powered by Google App Engine
This is Rietveld 408576698