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 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 FakeNetworkPipe::Config net_config; | 464 FakeNetworkPipe::Config net_config; |
465 net_config.queue_delay_ms = 100; | 465 net_config.queue_delay_ms = 100; |
466 net_config.delay_standard_deviation_ms = 10; | 466 net_config.delay_standard_deviation_ms = 10; |
467 // TODO(wu): lower the threshold as the calculation/estimatation becomes more | 467 // TODO(wu): lower the threshold as the calculation/estimatation becomes more |
468 // accurate. | 468 // accurate. |
469 const int kThresholdMs = 100; | 469 const int kThresholdMs = 100; |
470 const int kStartTimeMs = 10000; | 470 const int kStartTimeMs = 10000; |
471 const int kRunTimeMs = 20000; | 471 const int kRunTimeMs = 20000; |
472 TestCaptureNtpTime(net_config, kThresholdMs, kStartTimeMs, kRunTimeMs); | 472 TestCaptureNtpTime(net_config, kThresholdMs, kStartTimeMs, kRunTimeMs); |
473 } | 473 } |
474 | 474 #if defined(WEBRTC_ANDROID) |
| 475 // This test is disabled on android as it does not update |
| 476 // sinkWants below 320x180, the starting resolution for these |
| 477 // tests. |
| 478 #define ReceivesCpuOveruseAndUnderuse DISABLED_ReceivesCpuOveruseAndUnderuse |
| 479 #endif |
475 TEST_F(CallPerfTest, ReceivesCpuOveruseAndUnderuse) { | 480 TEST_F(CallPerfTest, ReceivesCpuOveruseAndUnderuse) { |
476 class LoadObserver : public test::SendTest, | 481 class LoadObserver : public test::SendTest, |
477 public test::FrameGeneratorCapturer::SinkWantsObserver { | 482 public test::FrameGeneratorCapturer::SinkWantsObserver { |
478 public: | 483 public: |
479 LoadObserver() | 484 LoadObserver() |
480 : SendTest(kLongTimeoutMs), | 485 : SendTest(kLongTimeoutMs), |
481 expect_lower_resolution_wants_(true), | 486 expect_lower_resolution_wants_(true), |
482 encoder_(Clock::GetRealTimeClock(), 35 /* delay_ms */) {} | 487 encoder_(Clock::GetRealTimeClock(), 35 /* delay_ms */) {} |
483 | 488 |
484 void OnFrameGeneratorCapturerCreated( | 489 void OnFrameGeneratorCapturerCreated( |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
729 uint32_t last_set_bitrate_kbps_; | 734 uint32_t last_set_bitrate_kbps_; |
730 VideoSendStream* send_stream_; | 735 VideoSendStream* send_stream_; |
731 test::FrameGeneratorCapturer* frame_generator_; | 736 test::FrameGeneratorCapturer* frame_generator_; |
732 VideoEncoderConfig encoder_config_; | 737 VideoEncoderConfig encoder_config_; |
733 } test; | 738 } test; |
734 | 739 |
735 RunBaseTest(&test); | 740 RunBaseTest(&test); |
736 } | 741 } |
737 | 742 |
738 } // namespace webrtc | 743 } // namespace webrtc |
OLD | NEW |