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

Unified Diff: chrome/browser/sync_file_system/drive_backend/sync_engine_unittest.cc

Issue 288193002: [SyncFS] Construct and destruct sync_worker in worker_task_runner (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
Index: chrome/browser/sync_file_system/drive_backend/sync_engine_unittest.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/sync_engine_unittest.cc b/chrome/browser/sync_file_system/drive_backend/sync_engine_unittest.cc
index 302e4a7643bdf4e566179b33aed11ae7140c05ca..d86575a8478f3665e6fa10785c0212e43106dbe4 100644
--- a/chrome/browser/sync_file_system/drive_backend/sync_engine_unittest.cc
+++ b/chrome/browser/sync_file_system/drive_backend/sync_engine_unittest.cc
@@ -118,9 +118,13 @@ class SyncEngineTest
NULL /* notification_manager */,
extension_service_.get(),
NULL /* signin_manager */));
+
+ base::RunLoop run_loop;
sync_engine_->Initialize(profile_dir_.path(),
base::MessageLoopProxy::current(),
+ run_loop.QuitClosure(),
in_memory_env_.get());
+ run_loop.Run();
sync_engine_->SetSyncEnabled(true);
base::RunLoop().RunUntilIdle();
}

Powered by Google App Engine
This is Rietveld 408576698