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

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

Issue 278273002: drive: Change the return type of ResourceMetadata's methods to FileError (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/sync/entry_update_performer.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/sync_client_unittest.cc
diff --git a/chrome/browser/chromeos/drive/sync_client_unittest.cc b/chrome/browser/chromeos/drive/sync_client_unittest.cc
index 9f483862dc2305fe3863bd8cc061a24656834f9c..c12b9c833cdcf4cbe0f842274c2c785cee577a89 100644
--- a/chrome/browser/chromeos/drive/sync_client_unittest.cc
+++ b/chrome/browser/chromeos/drive/sync_client_unittest.cc
@@ -223,7 +223,7 @@ class SyncClientTest : public testing::Test {
base::MessageLoopProxy::current().get(), &observer_, metadata_.get(),
cache_.get());
remove_operation.Remove(
- metadata_->GetFilePath(GetLocalId("removed")),
+ util::GetDriveMyDriveRootPath().AppendASCII("removed"),
false, // is_recursive
google_apis::test_util::CreateCopyResultCallback(&error));
base::RunLoop().RunUntilIdle();
@@ -233,7 +233,7 @@ class SyncClientTest : public testing::Test {
file_system::MoveOperation move_operation(
base::MessageLoopProxy::current().get(), &observer_, metadata_.get());
move_operation.Move(
- metadata_->GetFilePath(GetLocalId("moved")),
+ util::GetDriveMyDriveRootPath().AppendASCII("moved"),
util::GetDriveMyDriveRootPath().AppendASCII("moved_new_title"),
google_apis::test_util::CreateCopyResultCallback(&error));
base::RunLoop().RunUntilIdle();
« no previous file with comments | « chrome/browser/chromeos/drive/sync/entry_update_performer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698