diff options
author | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-25 18:19:38 +0000 |
---|---|---|
committer | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-25 18:19:38 +0000 |
commit | 406af397186e183a7fdfed6472486db2cfd7a91b (patch) | |
tree | 1460d8bcdc861c400f716b64b2c7d7fe5d699335 /content/test | |
parent | 6788e3289f1c8241aa180f3f227f9f8a82c0c8c1 (diff) | |
download | chromium_src-406af397186e183a7fdfed6472486db2cfd7a91b.zip chromium_src-406af397186e183a7fdfed6472486db2cfd7a91b.tar.gz chromium_src-406af397186e183a7fdfed6472486db2cfd7a91b.tar.bz2 |
Removing SignalingTask and replace with base::Bind(&WaitableEvent::Signal, ...)
BUG=none
TEST=trybots
Review URL: http://codereview.chromium.org/8696001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111603 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/test')
-rw-r--r-- | content/test/webrtc_audio_device_test.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/content/test/webrtc_audio_device_test.cc b/content/test/webrtc_audio_device_test.cc index 13f8693..bc8f8ce 100644 --- a/content/test/webrtc_audio_device_test.cc +++ b/content/test/webrtc_audio_device_test.cc @@ -5,10 +5,10 @@ #include "content/test/webrtc_audio_device_test.h" #include "base/bind.h" +#include "base/bind_helpers.h" #include "base/file_util.h" #include "base/message_loop.h" #include "base/synchronization/waitable_event.h" -#include "base/test/signaling_task.h" #include "base/test/test_timeouts.h" #include "base/win/scoped_com_initializer.h" #include "content/browser/renderer_host/media/audio_input_renderer_host.h" @@ -257,7 +257,8 @@ bool WebRTCAudioDeviceTest::OnMessageReceived(const IPC::Message& message) { // Posts a final task to the IO message loop and waits for completion. void WebRTCAudioDeviceTest::WaitForIOThreadCompletion() { ChildProcess::current()->io_message_loop()->PostTask( - FROM_HERE, new base::SignalingTask(&event_)); + FROM_HERE, base::Bind(&base::WaitableEvent::Signal, + base::Unretained(&event_))); EXPECT_TRUE(event_.TimedWait( base::TimeDelta::FromMilliseconds(TestTimeouts::action_timeout_ms()))); } |