diff options
author | primiano@chromium.org <primiano@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-29 14:49:30 +0000 |
---|---|---|
committer | primiano@chromium.org <primiano@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-29 14:49:30 +0000 |
commit | 744d6e59f63d422122bec69859ef422487190d52 (patch) | |
tree | cdd4ac1fad969dec8ca2230346b4176c074306d7 /media | |
parent | c5fd35912ebbdad6792c94ded68ec052548d39d8 (diff) | |
download | chromium_src-744d6e59f63d422122bec69859ef422487190d52.zip chromium_src-744d6e59f63d422122bec69859ef422487190d52.tar.gz chromium_src-744d6e59f63d422122bec69859ef422487190d52.tar.bz2 |
Fixed Close() method of TestAudioInputController (callback on caller thread).
It has been changed to make this test class work coherently with the mocked AudioInputController, according to the modifications made in CL 9858007 (which issue the callback from the caller thread, not from the audio thread anymore).
BUG=120110, 120111
TEST=Run content_unittests.
Review URL: https://chromiumcodereview.appspot.com/9864031
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129623 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media')
-rw-r--r-- | media/audio/test_audio_input_controller_factory.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/media/audio/test_audio_input_controller_factory.cc b/media/audio/test_audio_input_controller_factory.cc index 04ab11c..4b3cc363 100644 --- a/media/audio/test_audio_input_controller_factory.cc +++ b/media/audio/test_audio_input_controller_factory.cc @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include "base/bind.h" +#include "base/bind_helpers.h" #include "media/audio/test_audio_input_controller_factory.h" #include "media/audio/audio_io.h" @@ -24,7 +26,9 @@ TestAudioInputController::~TestAudioInputController() { } void TestAudioInputController::Close(const base::Closure& closed_task) { - message_loop_->PostTask(FROM_HERE, closed_task); + message_loop_->PostTaskAndReply(FROM_HERE, + base::Bind(&base::DoNothing), + closed_task); } TestAudioInputControllerFactory::TestAudioInputControllerFactory() |