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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 TEST_F(RemoteBitrateEstimatorAbsSendTimeTest, CapacityDropNegOffsetChange) { | 49 TEST_F(RemoteBitrateEstimatorAbsSendTimeTest, CapacityDropNegOffsetChange) { |
50 CapacityDropTestHelper(1, false, 267, -30000); | 50 CapacityDropTestHelper(1, false, 267, -30000); |
51 } | 51 } |
52 | 52 |
53 TEST_F(RemoteBitrateEstimatorAbsSendTimeTest, CapacityDropOneStreamWrap) { | 53 TEST_F(RemoteBitrateEstimatorAbsSendTimeTest, CapacityDropOneStreamWrap) { |
54 CapacityDropTestHelper(1, true, 633, 0); | 54 CapacityDropTestHelper(1, true, 633, 0); |
55 } | 55 } |
56 | 56 |
57 TEST_F(RemoteBitrateEstimatorAbsSendTimeTest, CapacityDropTwoStreamsWrap) { | 57 TEST_F(RemoteBitrateEstimatorAbsSendTimeTest, CapacityDropTwoStreamsWrap) { |
58 CapacityDropTestHelper(2, true, 633, 0); | 58 CapacityDropTestHelper(2, true, 700, 0); |
59 } | 59 } |
60 | 60 |
61 TEST_F(RemoteBitrateEstimatorAbsSendTimeTest, CapacityDropThreeStreamsWrap) { | 61 TEST_F(RemoteBitrateEstimatorAbsSendTimeTest, CapacityDropThreeStreamsWrap) { |
62 CapacityDropTestHelper(3, true, 633, 0); | 62 CapacityDropTestHelper(3, true, 633, 0); |
63 } | 63 } |
64 | 64 |
65 TEST_F(RemoteBitrateEstimatorAbsSendTimeTest, CapacityDropThirteenStreamsWrap) { | 65 TEST_F(RemoteBitrateEstimatorAbsSendTimeTest, CapacityDropThirteenStreamsWrap) { |
66 CapacityDropTestHelper(13, true, 667, 0); | 66 CapacityDropTestHelper(13, true, 667, 0); |
67 } | 67 } |
68 | 68 |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 } | 280 } |
281 | 281 |
282 // Wait long enough so that we can call Process again. | 282 // Wait long enough so that we can call Process again. |
283 clock_.AdvanceTimeMilliseconds(1000); | 283 clock_.AdvanceTimeMilliseconds(1000); |
284 | 284 |
285 bitrate_estimator_->Process(); | 285 bitrate_estimator_->Process(); |
286 EXPECT_TRUE(bitrate_observer_->updated()); | 286 EXPECT_TRUE(bitrate_observer_->updated()); |
287 EXPECT_NEAR(bitrate_observer_->latest_bitrate(), 800000u, 10000); | 287 EXPECT_NEAR(bitrate_observer_->latest_bitrate(), 800000u, 10000); |
288 } | 288 } |
289 } // namespace webrtc | 289 } // namespace webrtc |
OLD | NEW |