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

Unified Diff: chromeos/audio/cras_audio_handler_unittest.cc

Issue 2314853004: Remove calls to deprecated MessageLoop methods in chromeos. (Closed)
Patch Set: 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
Index: chromeos/audio/cras_audio_handler_unittest.cc
diff --git a/chromeos/audio/cras_audio_handler_unittest.cc b/chromeos/audio/cras_audio_handler_unittest.cc
index a949bf03cda7085385b298e709df9f535c4fe75f..fefbeb9e70c0d212ea3422a9a2d8f64bfd99a904 100644
--- a/chromeos/audio/cras_audio_handler_unittest.cc
+++ b/chromeos/audio/cras_audio_handler_unittest.cc
@@ -335,7 +335,7 @@ class CrasAudioHandlerTest : public testing::Test {
cras_audio_handler_ = CrasAudioHandler::Get();
test_observer_.reset(new TestObserver);
cras_audio_handler_->AddAudioObserver(test_observer_.get());
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
}
// Set up cras audio handlers with |audio_nodes| and set the active state of
@@ -369,7 +369,7 @@ class CrasAudioHandlerTest : public testing::Test {
cras_audio_handler_ = CrasAudioHandler::Get();
test_observer_.reset(new TestObserver);
cras_audio_handler_->AddAudioObserver(test_observer_.get());
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
}
void SetUpCrasAudioHandlerWithPrimaryActiveNode(
@@ -385,13 +385,13 @@ class CrasAudioHandlerTest : public testing::Test {
cras_audio_handler_ = CrasAudioHandler::Get();
test_observer_.reset(new TestObserver);
cras_audio_handler_->AddAudioObserver(test_observer_.get());
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
}
void ChangeAudioNodes(const AudioNodeList& audio_nodes) {
fake_cras_audio_client_->SetAudioNodesAndNotifyObserversForTesting(
audio_nodes);
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
}
const AudioDevice* GetDeviceFromId(uint64_t id) {
@@ -423,7 +423,7 @@ class CrasAudioHandlerTest : public testing::Test {
void RestartAudioClient() {
cras_audio_handler_->AudioClientRestarted();
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
}
protected:
« no previous file with comments | « no previous file | chromeos/dbus/cras_audio_client_unittest.cc » ('j') | chromeos/geolocation/simple_geolocation_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698