| 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 1438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1449 } | 1449 } |
| 1450 base::TimeTicks test_end = testing_clock_receiver_->NowTicks(); | 1450 base::TimeTicks test_end = testing_clock_receiver_->NowTicks(); |
| 1451 RunTasks(100 * kFrameTimerMs + 1); // Empty the pipeline. | 1451 RunTasks(100 * kFrameTimerMs + 1); // Empty the pipeline. |
| 1452 EXPECT_LT(100ul, video_ticks_.size()); | 1452 EXPECT_LT(100ul, video_ticks_.size()); |
| 1453 EXPECT_GE(3334ul, video_ticks_.size()); | 1453 EXPECT_GE(3334ul, video_ticks_.size()); |
| 1454 VLOG(1) << "Fully transmitted " << video_ticks_.size() | 1454 VLOG(1) << "Fully transmitted " << video_ticks_.size() |
| 1455 << " out of 10000 frames."; | 1455 << " out of 10000 frames."; |
| 1456 EXPECT_LT((video_ticks_.back().second - test_end).InMilliseconds(), 1000); | 1456 EXPECT_LT((video_ticks_.back().second - test_end).InMilliseconds(), 1000); |
| 1457 } | 1457 } |
| 1458 | 1458 |
| 1459 TEST_F(End2EndTest, OldPacketNetwork) { | 1459 // Disabled due to flake: http://crbug.com/448511 |
| 1460 TEST_F(End2EndTest, DISABLED_OldPacketNetwork) { |
| 1460 Configure(CODEC_VIDEO_FAKE, CODEC_AUDIO_PCM16, 32000, 1); | 1461 Configure(CODEC_VIDEO_FAKE, CODEC_AUDIO_PCM16, 32000, 1); |
| 1461 sender_to_receiver_.SetPacketPipe(test::NewRandomDrop(0.01)); | 1462 sender_to_receiver_.SetPacketPipe(test::NewRandomDrop(0.01)); |
| 1462 scoped_ptr<test::PacketPipe> echo_chamber( | 1463 scoped_ptr<test::PacketPipe> echo_chamber( |
| 1463 test::NewDuplicateAndDelay(1, 10 * kFrameTimerMs)); | 1464 test::NewDuplicateAndDelay(1, 10 * kFrameTimerMs)); |
| 1464 echo_chamber->AppendToPipe( | 1465 echo_chamber->AppendToPipe( |
| 1465 test::NewDuplicateAndDelay(1, 20 * kFrameTimerMs)); | 1466 test::NewDuplicateAndDelay(1, 20 * kFrameTimerMs)); |
| 1466 echo_chamber->AppendToPipe( | 1467 echo_chamber->AppendToPipe( |
| 1467 test::NewDuplicateAndDelay(1, 40 * kFrameTimerMs)); | 1468 test::NewDuplicateAndDelay(1, 40 * kFrameTimerMs)); |
| 1468 echo_chamber->AppendToPipe( | 1469 echo_chamber->AppendToPipe( |
| 1469 test::NewDuplicateAndDelay(1, 80 * kFrameTimerMs)); | 1470 test::NewDuplicateAndDelay(1, 80 * kFrameTimerMs)); |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1527 EXPECT_LT(jump, 220u); | 1528 EXPECT_LT(jump, 220u); |
| 1528 } | 1529 } |
| 1529 | 1530 |
| 1530 // TODO(pwestin): Add repeatable packet loss test. | 1531 // TODO(pwestin): Add repeatable packet loss test. |
| 1531 // TODO(pwestin): Add test for misaligned send get calls. | 1532 // TODO(pwestin): Add test for misaligned send get calls. |
| 1532 // TODO(pwestin): Add more tests that does not resample. | 1533 // TODO(pwestin): Add more tests that does not resample. |
| 1533 // TODO(pwestin): Add test when we have starvation for our RunTask. | 1534 // TODO(pwestin): Add test when we have starvation for our RunTask. |
| 1534 | 1535 |
| 1535 } // namespace cast | 1536 } // namespace cast |
| 1536 } // namespace media | 1537 } // namespace media |
| OLD | NEW |