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

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

Issue 841873005: Disable flaky End2EndTest.OldPacketNetwork (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « no previous file | no next file » | 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 // 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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698