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

Unified Diff: media/audio/audio_input_unittest.cc

Issue 8879032: Removing MessageLoop::QuitTask() from media/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Really fixed. Created 9 years 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/win/audio_low_latency_output_win_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_input_unittest.cc
diff --git a/media/audio/audio_input_unittest.cc b/media/audio/audio_input_unittest.cc
index 02b0625dad48d13d4821c32e368424b9e4cb982f..da07c53bf479b6695c382ea4654da0390442a789 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());
« no previous file with comments | « no previous file | media/audio/win/audio_low_latency_output_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698