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

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

Issue 1901583005: Revert of Pass task runners to AudioManager constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 b45222184c32b73af508080f8289202bf293d81e..d32dd2d0d699488fee0d670d1e243777fd42046c 100644
--- a/media/cast/test/receiver.cc
+++ b/media/cast/test/receiver.cc
@@ -548,15 +548,14 @@
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.
- const media::ScopedAudioManagerPtr audio_manager(
- media::AudioManager::CreateForTesting(
- base::ThreadTaskRunnerHandle::Get()));
+ media::FakeAudioLogFactory fake_audio_log_factory_;
+ const scoped_ptr<media::AudioManager> audio_manager(
+ media::AudioManager::Create(&fake_audio_log_factory_));
CHECK(media::AudioManager::Get());
media::cast::FrameReceiverConfig audio_config =
@@ -601,7 +600,7 @@
window_height);
player.Start();
- message_loop.Run(); // Run forever (i.e., until SIGTERM).
+ base::MessageLoop().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