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

Unified Diff: media/cast/test/receiver.cc

Issue 1806313003: Pass task runners to AudioManager constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments from patch 48 Created 4 years, 8 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
« no previous file with comments | « media/audio/win/audio_output_win_unittest.cc ('k') | media/mojo/services/mojo_media_application.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/test/receiver.cc
diff --git a/media/cast/test/receiver.cc b/media/cast/test/receiver.cc
index d32dd2d0d699488fee0d670d1e243777fd42046c..b45222184c32b73af508080f8289202bf293d81e 100644
--- a/media/cast/test/receiver.cc
+++ b/media/cast/test/receiver.cc
@@ -548,14 +548,15 @@ int main(int argc, char** argv) {
base::AtExitManager at_exit;
base::CommandLine::Init(argc, argv);
InitLogging(logging::LoggingSettings());
+ base::MessageLoop message_loop;
scoped_refptr<media::cast::CastEnvironment> cast_environment(
new media::cast::StandaloneCastEnvironment);
// Start up Chromium audio system.
- media::FakeAudioLogFactory fake_audio_log_factory_;
- const scoped_ptr<media::AudioManager> audio_manager(
- media::AudioManager::Create(&fake_audio_log_factory_));
+ const media::ScopedAudioManagerPtr audio_manager(
+ media::AudioManager::CreateForTesting(
+ base::ThreadTaskRunnerHandle::Get()));
CHECK(media::AudioManager::Get());
media::cast::FrameReceiverConfig audio_config =
@@ -600,7 +601,7 @@ int main(int argc, char** argv) {
window_height);
player.Start();
- base::MessageLoop().Run(); // Run forever (i.e., until SIGTERM).
+ message_loop.Run(); // Run forever (i.e., until SIGTERM).
NOTREACHED();
return 0;
}
« no previous file with comments | « media/audio/win/audio_output_win_unittest.cc ('k') | media/mojo/services/mojo_media_application.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698