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

Side by Side Diff: media/cast/test/sender.cc

Issue 136903003: cast: Wire upp logging to be sent over RTCP between receiver and sender. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge TOT 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 unified diff | Download patch
« no previous file with comments | « media/cast/test/receiver.cc ('k') | media/cast/transport/cast_transport_sender.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Test application that simulates a cast sender - Data can be either generated 5 // Test application that simulates a cast sender - Data can be either generated
6 // or read from a file. 6 // or read from a file.
7 7
8 #include "base/at_exit.h" 8 #include "base/at_exit.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 // Enable main and send side threads only. Disable logging. 307 // Enable main and send side threads only. Disable logging.
308 scoped_refptr<media::cast::CastEnvironment> cast_environment(new 308 scoped_refptr<media::cast::CastEnvironment> cast_environment(new
309 media::cast::CastEnvironment( 309 media::cast::CastEnvironment(
310 &clock, 310 &clock,
311 io_message_loop.message_loop_proxy(), 311 io_message_loop.message_loop_proxy(),
312 audio_thread.message_loop_proxy(), 312 audio_thread.message_loop_proxy(),
313 NULL, 313 NULL,
314 video_thread.message_loop_proxy(), 314 video_thread.message_loop_proxy(),
315 NULL, 315 NULL,
316 io_message_loop.message_loop_proxy(), 316 io_message_loop.message_loop_proxy(),
317 media::cast::GetDefaultCastLoggingConfig())); 317 media::cast::GetDefaultCastSenderLoggingConfig()));
318 318
319 media::cast::AudioSenderConfig audio_config = 319 media::cast::AudioSenderConfig audio_config =
320 media::cast::GetAudioSenderConfig(); 320 media::cast::GetAudioSenderConfig();
321 media::cast::VideoSenderConfig video_config = 321 media::cast::VideoSenderConfig video_config =
322 media::cast::GetVideoSenderConfig(); 322 media::cast::GetVideoSenderConfig();
323 323
324 int remote_port, local_port; 324 int remote_port, local_port;
325 media::cast::GetPorts(&remote_port, &local_port); 325 media::cast::GetPorts(&remote_port, &local_port);
326 326
327 std::string remote_ip_address = 327 std::string remote_ip_address =
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 scoped_ptr<media::cast::SendProcess> send_process(new 359 scoped_ptr<media::cast::SendProcess> send_process(new
360 media::cast::SendProcess(test_thread.message_loop_proxy(), 360 media::cast::SendProcess(test_thread.message_loop_proxy(),
361 cast_environment->Clock(), 361 cast_environment->Clock(),
362 video_config, 362 video_config,
363 frame_input)); 363 frame_input));
364 364
365 send_process->SendFrame(); 365 send_process->SendFrame();
366 io_message_loop.Run(); 366 io_message_loop.Run();
367 return 0; 367 return 0;
368 } 368 }
OLDNEW
« no previous file with comments | « media/cast/test/receiver.cc ('k') | media/cast/transport/cast_transport_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698