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 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
589 cast_receiver_ = CastReceiver::Create(cast_environment_receiver_, | 589 cast_receiver_ = CastReceiver::Create(cast_environment_receiver_, |
590 audio_receiver_config_, | 590 audio_receiver_config_, |
591 video_receiver_config_, | 591 video_receiver_config_, |
592 &receiver_to_sender_); | 592 &receiver_to_sender_); |
593 | 593 |
594 net::IPEndPoint dummy_endpoint; | 594 net::IPEndPoint dummy_endpoint; |
595 transport_sender_.reset(new CastTransportSenderImpl( | 595 transport_sender_.reset(new CastTransportSenderImpl( |
596 NULL, | 596 NULL, |
597 testing_clock_sender_, | 597 testing_clock_sender_, |
598 dummy_endpoint, | 598 dummy_endpoint, |
| 599 make_scoped_ptr(new base::DictionaryValue), |
599 base::Bind(&UpdateCastTransportStatus), | 600 base::Bind(&UpdateCastTransportStatus), |
600 base::Bind(&End2EndTest::LogRawEvents, base::Unretained(this)), | 601 base::Bind(&End2EndTest::LogRawEvents, base::Unretained(this)), |
601 base::TimeDelta::FromMilliseconds(1), | 602 base::TimeDelta::FromMilliseconds(1), |
602 task_runner_sender_, | 603 task_runner_sender_, |
603 &sender_to_receiver_)); | 604 &sender_to_receiver_)); |
604 | 605 |
605 cast_sender_ = | 606 cast_sender_ = |
606 CastSender::Create(cast_environment_sender_, transport_sender_.get()); | 607 CastSender::Create(cast_environment_sender_, transport_sender_.get()); |
607 | 608 |
608 // Initializing audio and video senders. | 609 // Initializing audio and video senders. |
(...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1464 EXPECT_LT(jump, 220u); | 1465 EXPECT_LT(jump, 220u); |
1465 } | 1466 } |
1466 | 1467 |
1467 // TODO(pwestin): Add repeatable packet loss test. | 1468 // TODO(pwestin): Add repeatable packet loss test. |
1468 // TODO(pwestin): Add test for misaligned send get calls. | 1469 // TODO(pwestin): Add test for misaligned send get calls. |
1469 // TODO(pwestin): Add more tests that does not resample. | 1470 // TODO(pwestin): Add more tests that does not resample. |
1470 // TODO(pwestin): Add test when we have starvation for our RunTask. | 1471 // TODO(pwestin): Add test when we have starvation for our RunTask. |
1471 | 1472 |
1472 } // namespace cast | 1473 } // namespace cast |
1473 } // namespace media | 1474 } // namespace media |
OLD | NEW |