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

Unified Diff: components/search_engines/search_engine_data_type_controller_unittest.cc

Issue 2511703004: [Sync] Remove UIDataTypeController (Closed)
Patch Set: Rebase. Created 4 years, 1 month 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: components/search_engines/search_engine_data_type_controller_unittest.cc
diff --git a/components/search_engines/search_engine_data_type_controller_unittest.cc b/components/search_engines/search_engine_data_type_controller_unittest.cc
index 4f308855c213d2c79c3da70627f2f3aaff2f28ea..329dc836be0f7a95c9bb6145f004c17c60b16ccf 100644
--- a/components/search_engines/search_engine_data_type_controller_unittest.cc
+++ b/components/search_engines/search_engine_data_type_controller_unittest.cc
@@ -157,6 +157,9 @@ TEST_F(SyncSearchEngineDataTypeControllerTest, Stop) {
search_engine_dtc_.Stop();
EXPECT_EQ(syncer::DataTypeController::NOT_RUNNING,
search_engine_dtc_.state());
+ // NonUIDataTypeController::Stop posts call to StopLocalService to model
+ // thread. We run message loop for this call to take effect.
+ base::RunLoop().RunUntilIdle();
EXPECT_FALSE(syncable_service_.syncing());
}

Powered by Google App Engine
This is Rietveld 408576698