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

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

Issue 145443005: Fixes for memory and threading issues in cast (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compile Created 6 years, 11 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/cast/test/receiver.cc ('k') | media/cast/video_receiver/video_decoder_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/test/sender.cc
diff --git a/media/cast/test/sender.cc b/media/cast/test/sender.cc
index 6ad6d3e6381bf95b370be5d7bb5edbef6bf3fdb8..d66165c4215a2db4d2c69fd44ff9d2d60b3b29ec 100644
--- a/media/cast/test/sender.cc
+++ b/media/cast/test/sender.cc
@@ -308,7 +308,7 @@ int main(int argc, char** argv) {
audio_thread.Start();
video_thread.Start();
- base::DefaultTickClock clock;
+ scoped_ptr<base::TickClock> clock(new base::DefaultTickClock());
base::MessageLoopForIO io_message_loop;
int remote_port, local_port;
@@ -336,7 +336,7 @@ int main(int argc, char** argv) {
scoped_ptr<media::cast::transport::CastTransportSender> transport_sender(
media::cast::transport::
- CastTransportSender::CreateCastTransportSender(&clock, config,
+ CastTransportSender::CreateCastTransportSender(clock.get(), config,
base::Bind(&UpdateCastTransportStatus),
io_message_loop.message_loop_proxy()));
@@ -344,7 +344,7 @@ int main(int argc, char** argv) {
// Running transport on the main thread.
scoped_refptr<media::cast::CastEnvironment> cast_environment(new
media::cast::CastEnvironment(
- &clock,
+ clock.Pass(),
io_message_loop.message_loop_proxy(),
audio_thread.message_loop_proxy(),
NULL,
« no previous file with comments | « media/cast/test/receiver.cc ('k') | media/cast/video_receiver/video_decoder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698