| 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 // This test generate synthetic data. For audio it's a sinusoid waveform with | 5 // This test generate synthetic data. For audio it's a sinusoid waveform with |
| 6 // frequency kSoundFrequency and different amplitudes. For video it's a pattern | 6 // frequency kSoundFrequency and different amplitudes. For video it's a pattern |
| 7 // that is shifting by one pixel per frame, each pixels neighbors right and down | 7 // that is shifting by one pixel per frame, each pixels neighbors right and down |
| 8 // is this pixels value +1, since the pixel value is 8 bit it will wrap | 8 // is this pixels value +1, since the pixel value is 8 bit it will wrap |
| 9 // frequently within the image. Visually this will create diagonally color bands | 9 // frequently within the image. Visually this will create diagonally color bands |
| 10 // that moves across the screen | 10 // that moves across the screen |
| (...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 void Create() { | 407 void Create() { |
| 408 cast_receiver_.reset(CastReceiver::CreateCastReceiver( | 408 cast_receiver_.reset(CastReceiver::CreateCastReceiver( |
| 409 cast_environment_, | 409 cast_environment_, |
| 410 audio_receiver_config_, | 410 audio_receiver_config_, |
| 411 video_receiver_config_, | 411 video_receiver_config_, |
| 412 &receiver_to_sender_)); | 412 &receiver_to_sender_)); |
| 413 transport_sender_.reset(new transport::CastTransportSenderImpl( | 413 transport_sender_.reset(new transport::CastTransportSenderImpl( |
| 414 testing_clock_, | 414 testing_clock_, |
| 415 transport_config_, | 415 transport_config_, |
| 416 base::Bind(&UpdateCastTransportStatus), | 416 base::Bind(&UpdateCastTransportStatus), |
| 417 transport_task_runner_)); | 417 transport_task_runner_, |
| 418 transport_sender_->InsertFakeTransportForTesting(&sender_to_receiver_); | 418 &sender_to_receiver_)); |
| 419 | 419 |
| 420 cast_sender_.reset(CastSender::CreateCastSender( | 420 cast_sender_.reset(CastSender::CreateCastSender( |
| 421 cast_environment_, | 421 cast_environment_, |
| 422 audio_sender_config_, | 422 audio_sender_config_, |
| 423 video_sender_config_, | 423 video_sender_config_, |
| 424 NULL, | 424 NULL, |
| 425 base::Bind(&End2EndTest::InitializationResult, base::Unretained(this)), | 425 base::Bind(&End2EndTest::InitializationResult, base::Unretained(this)), |
| 426 transport_sender_.get())); | 426 transport_sender_.get())); |
| 427 | 427 |
| 428 receiver_to_sender_.SetPacketReceiver(cast_sender_->packet_receiver()); | 428 receiver_to_sender_.SetPacketReceiver(cast_sender_->packet_receiver()); |
| (...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1114 } | 1114 } |
| 1115 | 1115 |
| 1116 | 1116 |
| 1117 // TODO(pwestin): Add repeatable packet loss test. | 1117 // TODO(pwestin): Add repeatable packet loss test. |
| 1118 // TODO(pwestin): Add test for misaligned send get calls. | 1118 // TODO(pwestin): Add test for misaligned send get calls. |
| 1119 // TODO(pwestin): Add more tests that does not resample. | 1119 // TODO(pwestin): Add more tests that does not resample. |
| 1120 // TODO(pwestin): Add test when we have starvation for our RunTask. | 1120 // TODO(pwestin): Add test when we have starvation for our RunTask. |
| 1121 | 1121 |
| 1122 } // namespace cast | 1122 } // namespace cast |
| 1123 } // namespace media | 1123 } // namespace media |
| OLD | NEW |