| Index: chrome/browser/search/hotword_service_unittest.cc
|
| diff --git a/chrome/browser/search/hotword_service_unittest.cc b/chrome/browser/search/hotword_service_unittest.cc
|
| index bff640f46d7abf48f7080e76afcf788d4c13a59e..fd8d5bfc06451ba3118ee29ad7ad3b117c75b624 100644
|
| --- a/chrome/browser/search/hotword_service_unittest.cc
|
| +++ b/chrome/browser/search/hotword_service_unittest.cc
|
| @@ -234,6 +234,8 @@ TEST_P(HotwordServiceTest, ShouldReinstallExtension) {
|
|
|
| // Now it's a different locale so it should uninstall.
|
| EXPECT_TRUE(hotword_service->ShouldReinstallHotwordExtension());
|
| +
|
| + base::MessageLoop::current()->RunUntilIdle();
|
| }
|
|
|
| TEST_P(HotwordServiceTest, PreviousLanguageSetOnInstall) {
|
| @@ -452,6 +454,7 @@ TEST_P(HotwordServiceTest, IsAlwaysOnEnabled) {
|
| profile()->GetPrefs()->SetBoolean(prefs::kHotwordAlwaysOnSearchEnabled,
|
| false);
|
| EXPECT_FALSE(hotword_service->IsAlwaysOnEnabled());
|
| + base::MessageLoop::current()->RunUntilIdle();
|
| }
|
|
|
| TEST_P(HotwordServiceTest, IsSometimesOnEnabled) {
|
| @@ -501,6 +504,7 @@ TEST_P(HotwordServiceTest, IsSometimesOnEnabled) {
|
| profile()->GetPrefs()->SetBoolean(prefs::kHotwordAlwaysOnSearchEnabled,
|
| false);
|
| EXPECT_FALSE(hotword_service->IsSometimesOnEnabled());
|
| + base::MessageLoop::current()->RunUntilIdle();
|
| }
|
|
|
| TEST_P(HotwordServiceTest, AudioHistorySyncOccurs) {
|
| @@ -531,4 +535,5 @@ TEST_P(HotwordServiceTest, AudioHistorySyncOccurs) {
|
| EXPECT_EQ(2, audio_history_handler->GetAudioHistoryCalls());
|
| EXPECT_TRUE(test_task_runner->HasPendingTask());
|
| test_task_runner->ClearPendingTasks();
|
| + base::MessageLoop::current()->RunUntilIdle();
|
| }
|
|
|