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

Unified Diff: content/browser/media/capture/web_contents_audio_input_stream_unittest.cc

Issue 1159623009: content: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test build fix. Created 5 years, 6 months 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
Index: content/browser/media/capture/web_contents_audio_input_stream_unittest.cc
diff --git a/content/browser/media/capture/web_contents_audio_input_stream_unittest.cc b/content/browser/media/capture/web_contents_audio_input_stream_unittest.cc
index 0eebd7a8083b9fa10132fad36fb459ee26c05040..c7c9c84204b7a688c2fab3d9fd2c6226f879054b 100644
--- a/content/browser/media/capture/web_contents_audio_input_stream_unittest.cc
+++ b/content/browser/media/capture/web_contents_audio_input_stream_unittest.cc
@@ -8,7 +8,7 @@
#include "base/bind.h"
#include "base/bind_helpers.h"
-#include "base/message_loop/message_loop.h"
+#include "base/location.h"
#include "base/single_thread_task_runner.h"
#include "base/synchronization/waitable_event.h"
#include "base/threading/thread.h"
@@ -201,8 +201,7 @@ class WebContentsAudioInputStreamTest : public testing::Test {
}
void Open() {
- mock_vais_ =
- new MockVirtualAudioInputStream(audio_thread_.message_loop_proxy());
+ mock_vais_ = new MockVirtualAudioInputStream(audio_thread_.task_runner());
EXPECT_CALL(*mock_vais_, Open());
EXPECT_CALL(*mock_vais_, Close()); // At Close() time.
@@ -341,7 +340,7 @@ class WebContentsAudioInputStreamTest : public testing::Test {
}
void RunOnAudioThread(const base::Closure& closure) {
- audio_thread_.message_loop()->PostTask(FROM_HERE, closure);
+ audio_thread_.task_runner()->PostTask(FROM_HERE, closure);
}
// Block the calling thread until OnData() callbacks are being made.

Powered by Google App Engine
This is Rietveld 408576698