| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 RampUpTester test(3, 0, 0, RtpExtension::kTOffset, true, true); | 407 RampUpTester test(3, 0, 0, RtpExtension::kTOffset, true, true); |
| 408 RunBaseTest(&test, FakeNetworkPipe::Config()); | 408 RunBaseTest(&test, FakeNetworkPipe::Config()); |
| 409 } | 409 } |
| 410 | 410 |
| 411 TEST_F(RampUpTest, SingleStreamWithHighStartBitrate) { | 411 TEST_F(RampUpTest, SingleStreamWithHighStartBitrate) { |
| 412 RampUpTester test(1, 0, 0.9 * kSingleStreamTargetBps, RtpExtension::kTOffset, | 412 RampUpTester test(1, 0, 0.9 * kSingleStreamTargetBps, RtpExtension::kTOffset, |
| 413 false, false); | 413 false, false); |
| 414 RunBaseTest(&test, FakeNetworkPipe::Config()); | 414 RunBaseTest(&test, FakeNetworkPipe::Config()); |
| 415 } | 415 } |
| 416 | 416 |
| 417 // Disabled on Mac due to flakiness, see |
| 418 // https://bugs.chromium.org/p/webrtc/issues/detail?id=5407 |
| 419 #ifndef WEBRTC_MAC |
| 417 TEST_F(RampUpTest, UpDownUpOneStream) { | 420 TEST_F(RampUpTest, UpDownUpOneStream) { |
| 418 RampUpDownUpTester test(1, 60000, RtpExtension::kAbsSendTime, false, false); | 421 RampUpDownUpTester test(1, 60000, RtpExtension::kAbsSendTime, false, false); |
| 419 RunBaseTest(&test, FakeNetworkPipe::Config()); | 422 RunBaseTest(&test, FakeNetworkPipe::Config()); |
| 420 } | 423 } |
| 421 | 424 |
| 422 TEST_F(RampUpTest, UpDownUpThreeStreams) { | 425 TEST_F(RampUpTest, UpDownUpThreeStreams) { |
| 423 RampUpDownUpTester test(3, 60000, RtpExtension::kAbsSendTime, false, false); | 426 RampUpDownUpTester test(3, 60000, RtpExtension::kAbsSendTime, false, false); |
| 424 RunBaseTest(&test, FakeNetworkPipe::Config()); | 427 RunBaseTest(&test, FakeNetworkPipe::Config()); |
| 425 } | 428 } |
| 426 | 429 |
| 427 TEST_F(RampUpTest, UpDownUpOneStreamRtx) { | 430 TEST_F(RampUpTest, UpDownUpOneStreamRtx) { |
| 428 RampUpDownUpTester test(1, 60000, RtpExtension::kAbsSendTime, true, false); | 431 RampUpDownUpTester test(1, 60000, RtpExtension::kAbsSendTime, true, false); |
| 429 RunBaseTest(&test, FakeNetworkPipe::Config()); | 432 RunBaseTest(&test, FakeNetworkPipe::Config()); |
| 430 } | 433 } |
| 431 | 434 |
| 432 TEST_F(RampUpTest, UpDownUpThreeStreamsRtx) { | 435 TEST_F(RampUpTest, UpDownUpThreeStreamsRtx) { |
| 433 RampUpDownUpTester test(3, 60000, RtpExtension::kAbsSendTime, true, false); | 436 RampUpDownUpTester test(3, 60000, RtpExtension::kAbsSendTime, true, false); |
| 434 RunBaseTest(&test, FakeNetworkPipe::Config()); | 437 RunBaseTest(&test, FakeNetworkPipe::Config()); |
| 435 } | 438 } |
| 436 | 439 |
| 437 TEST_F(RampUpTest, UpDownUpOneStreamByRedRtx) { | 440 TEST_F(RampUpTest, UpDownUpOneStreamByRedRtx) { |
| 438 RampUpDownUpTester test(1, 60000, RtpExtension::kAbsSendTime, true, true); | 441 RampUpDownUpTester test(1, 60000, RtpExtension::kAbsSendTime, true, true); |
| 439 RunBaseTest(&test, FakeNetworkPipe::Config()); | 442 RunBaseTest(&test, FakeNetworkPipe::Config()); |
| 440 } | 443 } |
| 441 | 444 |
| 442 TEST_F(RampUpTest, UpDownUpThreeStreamsByRedRtx) { | 445 TEST_F(RampUpTest, UpDownUpThreeStreamsByRedRtx) { |
| 443 RampUpDownUpTester test(3, 60000, RtpExtension::kAbsSendTime, true, true); | 446 RampUpDownUpTester test(3, 60000, RtpExtension::kAbsSendTime, true, true); |
| 444 RunBaseTest(&test, FakeNetworkPipe::Config()); | 447 RunBaseTest(&test, FakeNetworkPipe::Config()); |
| 445 } | 448 } |
| 449 #endif |
| 446 | 450 |
| 447 TEST_F(RampUpTest, AbsSendTimeSingleStream) { | 451 TEST_F(RampUpTest, AbsSendTimeSingleStream) { |
| 448 RampUpTester test(1, 0, 0, RtpExtension::kAbsSendTime, false, false); | 452 RampUpTester test(1, 0, 0, RtpExtension::kAbsSendTime, false, false); |
| 449 RunBaseTest(&test, FakeNetworkPipe::Config()); | 453 RunBaseTest(&test, FakeNetworkPipe::Config()); |
| 450 } | 454 } |
| 451 | 455 |
| 452 TEST_F(RampUpTest, AbsSendTimeSimulcast) { | 456 TEST_F(RampUpTest, AbsSendTimeSimulcast) { |
| 453 RampUpTester test(3, 0, 0, RtpExtension::kAbsSendTime, false, false); | 457 RampUpTester test(3, 0, 0, RtpExtension::kAbsSendTime, false, false); |
| 454 RunBaseTest(&test, FakeNetworkPipe::Config()); | 458 RunBaseTest(&test, FakeNetworkPipe::Config()); |
| 455 } | 459 } |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 true); | 497 true); |
| 494 RunBaseTest(&test, FakeNetworkPipe::Config()); | 498 RunBaseTest(&test, FakeNetworkPipe::Config()); |
| 495 } | 499 } |
| 496 | 500 |
| 497 TEST_F(RampUpTest, TransportSequenceNumberSingleStreamWithHighStartBitrate) { | 501 TEST_F(RampUpTest, TransportSequenceNumberSingleStreamWithHighStartBitrate) { |
| 498 RampUpTester test(1, 0, 0.9 * kSingleStreamTargetBps, | 502 RampUpTester test(1, 0, 0.9 * kSingleStreamTargetBps, |
| 499 RtpExtension::kTransportSequenceNumber, false, false); | 503 RtpExtension::kTransportSequenceNumber, false, false); |
| 500 RunBaseTest(&test, FakeNetworkPipe::Config()); | 504 RunBaseTest(&test, FakeNetworkPipe::Config()); |
| 501 } | 505 } |
| 502 } // namespace webrtc | 506 } // namespace webrtc |
| OLD | NEW |