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

Unified Diff: chrome/browser/chromeos/drive/file_system/operation_test_base.cc

Issue 372713004: Wait for parent directory sync before performing server-side copy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add operation_observer.cc Created 6 years, 5 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/file_system/operation_test_base.cc
diff --git a/chrome/browser/chromeos/drive/file_system/operation_test_base.cc b/chrome/browser/chromeos/drive/file_system/operation_test_base.cc
index 65af4b6dacf85b3f373371c1885a929e17edbb74..9950bcad56d769ea8ddea4d1a93f484a4ccb5a7a 100644
--- a/chrome/browser/chromeos/drive/file_system/operation_test_base.cc
+++ b/chrome/browser/chromeos/drive/file_system/operation_test_base.cc
@@ -44,6 +44,13 @@ void OperationTestBase::LoggingObserver::OnDriveSyncError(
drive_sync_errors_.push_back(type);
}
+bool OperationTestBase::LoggingObserver::WaitForSyncComplete(
+ const std::string& local_id,
+ const FileOperationCallback& callback) {
+ return wait_for_sync_complete_handler_.is_null() ?
+ false : wait_for_sync_complete_handler_.Run(local_id, callback);
+}
+
OperationTestBase::OperationTestBase() {
}
« no previous file with comments | « chrome/browser/chromeos/drive/file_system/operation_test_base.h ('k') | chrome/browser/chromeos/drive/sync_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698