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

Unified Diff: media/audio/audio_output_proxy_unittest.cc

Issue 26687007: Ensure FakeAudioOutputStream runs on the WorkerLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test and DCHECK. Created 7 years, 2 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 | « no previous file | media/audio/fake_audio_output_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_output_proxy_unittest.cc
diff --git a/media/audio/audio_output_proxy_unittest.cc b/media/audio/audio_output_proxy_unittest.cc
index 1806ce661318c3c25ade1e9b61730c20937c059f..08c13991b232f84b643681ebd96d092ec86f7ac8 100644
--- a/media/audio/audio_output_proxy_unittest.cc
+++ b/media/audio/audio_output_proxy_unittest.cc
@@ -107,6 +107,7 @@ class MockAudioManager : public AudioManagerBase {
const AudioParameters& params, const std::string& device_id));
MOCK_METHOD0(ShowAudioInputSettings, void());
MOCK_METHOD0(GetMessageLoop, scoped_refptr<base::MessageLoopProxy>());
+ MOCK_METHOD0(GetWorkerLoop, scoped_refptr<base::MessageLoopProxy>());
MOCK_METHOD1(GetAudioInputDeviceNames, void(
media::AudioDeviceNames* device_name));
@@ -145,6 +146,8 @@ class AudioOutputProxyTest : public testing::Test {
virtual void SetUp() {
EXPECT_CALL(manager_, GetMessageLoop())
.WillRepeatedly(Return(message_loop_.message_loop_proxy()));
+ EXPECT_CALL(manager_, GetWorkerLoop())
+ .WillRepeatedly(Return(message_loop_.message_loop_proxy()));
InitDispatcher(base::TimeDelta::FromMilliseconds(kTestCloseDelayMs));
}
« no previous file with comments | « no previous file | media/audio/fake_audio_output_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698