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

Unified Diff: media/audio/android/audio_android_unittest.cc

Issue 2361203002: Remove calls to MessageLoop::Run/RunUntilIdle. (Closed)
Patch Set: CR jochen #6 Created 4 years, 3 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 | « ios/web/public/test/web_test_with_web_state.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/android/audio_android_unittest.cc
diff --git a/media/audio/android/audio_android_unittest.cc b/media/audio/android/audio_android_unittest.cc
index 510277382dd53442c08613b86d6a58218f8efcc1..56a3d420d1f53afcd86155dde61ead681a5ef133 100644
--- a/media/audio/android/audio_android_unittest.cc
+++ b/media/audio/android/audio_android_unittest.cc
@@ -421,12 +421,12 @@ class AudioAndroidOutputTest : public testing::Test {
audio_manager_(AudioManager::CreateForTesting(loop_->task_runner())),
audio_output_stream_(NULL) {
// Flush the message loop to ensure that AudioManager is fully initialized.
- loop_->RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
}
~AudioAndroidOutputTest() override {
audio_manager_.reset();
- loop_->RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
}
protected:
« no previous file with comments | « ios/web/public/test/web_test_with_web_state.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698