summaryrefslogtreecommitdiffstats
path: root/media/audio/virtual_audio_output_stream_unittest.cc
diff options
context:
space:
mode:
authormiu@chromium.org <miu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-22 14:18:29 +0000
committermiu@chromium.org <miu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-22 14:18:29 +0000
commit6c1c700baf3bc0920f35d145ce3b9aa4160ebafe (patch)
tree392d488b0013a227990f708a8fafbc8bc4c5cb47 /media/audio/virtual_audio_output_stream_unittest.cc
parent9661fdbf87d2d4fb8208b464a760591266a87fa6 (diff)
downloadchromium_src-6c1c700baf3bc0920f35d145ce3b9aa4160ebafe.zip
chromium_src-6c1c700baf3bc0920f35d145ce3b9aa4160ebafe.tar.gz
chromium_src-6c1c700baf3bc0920f35d145ce3b9aa4160ebafe.tar.bz2
Re-land r207105 (Mac audio capture threading fix) with unit test memory leak issue resolved.
Last attempt: https://codereview.chromium.org/17122006/ BUG=249089 Review URL: https://chromiumcodereview.appspot.com/17334005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208033 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/audio/virtual_audio_output_stream_unittest.cc')
-rw-r--r--media/audio/virtual_audio_output_stream_unittest.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/media/audio/virtual_audio_output_stream_unittest.cc b/media/audio/virtual_audio_output_stream_unittest.cc
index fc2f2e0..290b807 100644
--- a/media/audio/virtual_audio_output_stream_unittest.cc
+++ b/media/audio/virtual_audio_output_stream_unittest.cc
@@ -27,10 +27,10 @@ const AudioParameters kParams(
class MockVirtualAudioInputStream : public VirtualAudioInputStream {
public:
explicit MockVirtualAudioInputStream(
- const scoped_refptr<base::MessageLoopProxy>& message_loop)
+ const scoped_refptr<base::MessageLoopProxy>& worker_loop)
: VirtualAudioInputStream(
kParams,
- message_loop,
+ worker_loop,
base::Bind(&base::DeletePointer<VirtualAudioInputStream>)) {}
~MockVirtualAudioInputStream() {}
@@ -87,7 +87,6 @@ TEST_F(VirtualAudioOutputStreamTest, StartStopStartStop) {
VirtualAudioOutputStream* const output_stream = new VirtualAudioOutputStream(
kParams,
- audio_message_loop().get(),
input_stream,
base::Bind(&base::DeletePointer<VirtualAudioOutputStream>));