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

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

Issue 107293013: drive: Stop comparing resource ID against kDriveGrandRootLocalId (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/chromeos/drive/change_list_processor.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/drive/change_list_processor_unittest.cc
diff --git a/chrome/browser/chromeos/drive/change_list_processor_unittest.cc b/chrome/browser/chromeos/drive/change_list_processor_unittest.cc
index ae4e0340913211e092823b32d7d3dedc613b48f2..eefb76dd99166322602c28da77dcbd1de46bd2db 100644
--- a/chrome/browser/chromeos/drive/change_list_processor_unittest.cc
+++ b/chrome/browser/chromeos/drive/change_list_processor_unittest.cc
@@ -525,11 +525,14 @@ TEST_F(ChangeListProcessorTest, RefreshDirectory) {
change_lists[0]->mutable_parent_resource_ids()->push_back(kRootId);
// Update the directory with the map.
+ ResourceEntry root;
+ EXPECT_EQ(FILE_ERROR_OK, metadata_->GetResourceEntryByPath(
+ util::GetDriveMyDriveRootPath(), &root));
const int64 kNewChangestamp = 12345;
base::FilePath file_path;
EXPECT_EQ(FILE_ERROR_OK, ChangeListProcessor::RefreshDirectory(
metadata_.get(),
- DirectoryFetchInfo(kRootId, kNewChangestamp),
+ DirectoryFetchInfo(root.local_id(), kRootId, kNewChangestamp),
change_lists.Pass(),
&file_path));
EXPECT_EQ(util::GetDriveMyDriveRootPath().value(), file_path.value());
@@ -567,11 +570,14 @@ TEST_F(ChangeListProcessorTest, RefreshDirectory_WrongParentId) {
// Update the directory.
+ ResourceEntry root;
+ EXPECT_EQ(FILE_ERROR_OK, metadata_->GetResourceEntryByPath(
+ util::GetDriveMyDriveRootPath(), &root));
const int64 kNewChangestamp = 12345;
base::FilePath file_path;
EXPECT_EQ(FILE_ERROR_OK, ChangeListProcessor::RefreshDirectory(
metadata_.get(),
- DirectoryFetchInfo(kRootId, kNewChangestamp),
+ DirectoryFetchInfo(root.local_id(), kRootId, kNewChangestamp),
change_lists.Pass(),
&file_path));
EXPECT_EQ(util::GetDriveMyDriveRootPath().value(), file_path.value());
« no previous file with comments | « chrome/browser/chromeos/drive/change_list_processor.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698