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

Unified Diff: media/audio/audio_output_device_unittest.cc

Issue 1169923009: Remove remaining use of the deprecated MessageLoopProxy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo. Created 5 years, 6 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 | « gin/v8_platform.cc ('k') | media/audio/win/audio_low_latency_output_win_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_output_device_unittest.cc
diff --git a/media/audio/audio_output_device_unittest.cc b/media/audio/audio_output_device_unittest.cc
index 363ee3894070eb0c025520c3fa6b05091c273bb3..d80348389d877855270e685b37839907151db21c 100644
--- a/media/audio/audio_output_device_unittest.cc
+++ b/media/audio/audio_output_device_unittest.cc
@@ -59,9 +59,9 @@ ACTION_P2(SendPendingBytes, socket, pending_bytes) {
}
// Used to terminate a loop from a different thread than the loop belongs to.
-// |loop| should be a MessageLoopProxy.
-ACTION_P(QuitLoop, loop) {
- loop->PostTask(FROM_HERE, base::MessageLoop::QuitClosure());
+// |task_runner| should be a SingleThreadTaskRunner.
+ACTION_P(QuitLoop, task_runner) {
+ task_runner->PostTask(FROM_HERE, base::MessageLoop::QuitClosure());
}
} // namespace.
@@ -112,7 +112,7 @@ AudioOutputDeviceTest::AudioOutputDeviceTest() {
audio_output_ipc_ = new MockAudioOutputIPC();
audio_device_ = new AudioOutputDevice(
scoped_ptr<AudioOutputIPC>(audio_output_ipc_),
- io_loop_.message_loop_proxy());
+ io_loop_.task_runner());
audio_device_->Initialize(default_audio_parameters_,
&callback_);
@@ -177,7 +177,7 @@ void AudioOutputDeviceTest::ExpectRenderCallback() {
const int kNumberOfFramesToProcess = 0;
EXPECT_CALL(callback_, Render(_, _))
.WillOnce(DoAll(
- QuitLoop(io_loop_.message_loop_proxy()),
+ QuitLoop(io_loop_.task_runner()),
Return(kNumberOfFramesToProcess)));
}
« no previous file with comments | « gin/v8_platform.cc ('k') | media/audio/win/audio_low_latency_output_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698