| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |