summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authordcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-09 02:45:16 +0000
committerdcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-09 02:45:16 +0000
commitd9e5bfc31ce82b6fa4a89298cea2e737ef8f164a (patch)
tree012e60e10dfd999aac8658fb8e258ae4ce843a6a /media
parent3e6d120bf18e6ba69373cc635e1e7dd46543ea33 (diff)
downloadchromium_src-d9e5bfc31ce82b6fa4a89298cea2e737ef8f164a.zip
chromium_src-d9e5bfc31ce82b6fa4a89298cea2e737ef8f164a.tar.gz
chromium_src-d9e5bfc31ce82b6fa4a89298cea2e737ef8f164a.tar.bz2
Removing MessageLoop::QuitTask() from media/
base/task.h is going away and being replaced by base/bind.h and base/callback.h. This CL was automatically generated by sed. BUG=none TEST=none Review URL: http://codereview.chromium.org/8879032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113740 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media')
-rw-r--r--media/audio/audio_input_unittest.cc4
-rw-r--r--media/audio/win/audio_low_latency_output_win_unittest.cc8
-rw-r--r--media/tools/player_x11/player_x11.cc2
-rw-r--r--media/video/capture/video_capture_device_unittest.cc2
4 files changed, 8 insertions, 8 deletions
diff --git a/media/audio/audio_input_unittest.cc b/media/audio/audio_input_unittest.cc
index 02b0625..da07c53 100644
--- a/media/audio/audio_input_unittest.cc
+++ b/media/audio/audio_input_unittest.cc
@@ -181,7 +181,7 @@ TEST(AudioInputTest, Record) {
ais->Start(&test_callback);
// Verify at least 500ms worth of audio was recorded, after giving sufficient
// extra time.
- message_loop.PostDelayedTask(FROM_HERE, new MessageLoop::QuitTask(), 590);
+ message_loop.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(), 590);
message_loop.Run();
EXPECT_GE(test_callback.callback_count(), 10);
EXPECT_FALSE(test_callback.had_error());
@@ -204,7 +204,7 @@ TEST(AudioInputTest, RecordWithSlowSink) {
ais->Start(&test_callback);
// Verify at least 500ms worth of audio was recorded, after giving sufficient
// extra time.
- message_loop.PostDelayedTask(FROM_HERE, new MessageLoop::QuitTask(), 590);
+ message_loop.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(), 590);
message_loop.Run();
EXPECT_GE(test_callback.callback_count(), 10);
EXPECT_FALSE(test_callback.had_error());
diff --git a/media/audio/win/audio_low_latency_output_win_unittest.cc b/media/audio/win/audio_low_latency_output_win_unittest.cc
index 4281335..aaed644 100644
--- a/media/audio/win/audio_low_latency_output_win_unittest.cc
+++ b/media/audio/win/audio_low_latency_output_win_unittest.cc
@@ -224,7 +224,7 @@ static AudioOutputStream* CreateDefaultAudioOutputStream() {
}
static void QuitMessageLoop(base::MessageLoopProxy* proxy) {
- proxy->PostTask(FROM_HERE, new MessageLoop::QuitTask());
+ proxy->PostTask(FROM_HERE, MessageLoop::QuitClosure());
}
// Verify that we can retrieve the current hardware/mixing sample rate
@@ -396,7 +396,7 @@ TEST(WinAudioOutputTest, WASAPIAudioOutputStreamTestPacketSizeInMilliseconds) {
Return(bytes_per_packet)));
aos->Start(&source);
- loop.PostDelayedTask(FROM_HERE, new MessageLoop::QuitTask(),
+ loop.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(),
TestTimeouts::action_timeout_ms());
loop.Run();
aos->Stop();
@@ -437,7 +437,7 @@ TEST(WinAudioOutputTest, WASAPIAudioOutputStreamTestPacketSizeInSamples) {
Return(bytes_per_packet)));
aos->Start(&source);
- loop.PostDelayedTask(FROM_HERE, new MessageLoop::QuitTask(),
+ loop.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(),
TestTimeouts::action_timeout_ms());
loop.Run();
aos->Stop();
@@ -475,7 +475,7 @@ TEST(WinAudioOutputTest, WASAPIAudioOutputStreamTestMono) {
Return(bytes_per_packet)));
aos->Start(&source);
- loop.PostDelayedTask(FROM_HERE, new MessageLoop::QuitTask(),
+ loop.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(),
TestTimeouts::action_timeout_ms());
loop.Run();
aos->Stop();
diff --git a/media/tools/player_x11/player_x11.cc b/media/tools/player_x11/player_x11.cc
index 0a9f2066..323f250 100644
--- a/media/tools/player_x11/player_x11.cc
+++ b/media/tools/player_x11/player_x11.cc
@@ -37,7 +37,7 @@ class MessageLoopQuitter {
public:
explicit MessageLoopQuitter(MessageLoop* loop) : loop_(loop) {}
void Quit(media::PipelineStatus status) {
- loop_->PostTask(FROM_HERE, new MessageLoop::QuitTask());
+ loop_->PostTask(FROM_HERE, MessageLoop::QuitClosure());
delete this;
}
private:
diff --git a/media/video/capture/video_capture_device_unittest.cc b/media/video/capture/video_capture_device_unittest.cc
index ae8ca12..7dd2e66 100644
--- a/media/video/capture/video_capture_device_unittest.cc
+++ b/media/video/capture/video_capture_device_unittest.cc
@@ -65,7 +65,7 @@ class VideoCaptureDeviceTest : public testing::Test {
VideoCaptureDeviceTest(): wait_event_(false, false) { }
void PostQuitTask() {
- loop_->PostTask(FROM_HERE, new MessageLoop::QuitTask);
+ loop_->PostTask(FROM_HERE, MessageLoop::QuitClosure());
loop_->Run();
}