| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 clock_.AdvanceTimeMilliseconds(2); | 109 clock_.AdvanceTimeMilliseconds(2); |
| 110 send_time_ms += 1; | 110 send_time_ms += 1; |
| 111 now_ms = clock_.TimeInMilliseconds(); | 111 now_ms = clock_.TimeInMilliseconds(); |
| 112 IncomingFeedback(now_ms, send_time_ms, seq_num++, 1000, 1); | 112 IncomingFeedback(now_ms, send_time_ms, seq_num++, 1000, 1); |
| 113 } | 113 } |
| 114 | 114 |
| 115 EXPECT_TRUE(bitrate_observer_.updated()); | 115 EXPECT_TRUE(bitrate_observer_.updated()); |
| 116 EXPECT_NEAR(bitrate_observer_.latest_bitrate(), 4000000u, 10000u); | 116 EXPECT_NEAR(bitrate_observer_.latest_bitrate(), 4000000u, 10000u); |
| 117 } | 117 } |
| 118 | 118 |
| 119 TEST_F(DelayBasedBweTest, GetProbingInterval) { |
| 120 int64_t default_interval_ms = bitrate_estimator_->GetProbingIntervalMs(); |
| 121 EXPECT_GT(default_interval_ms, 0); |
| 122 CapacityDropTestHelper(1, true, 567, 0); |
| 123 int64_t interval_ms = bitrate_estimator_->GetProbingIntervalMs(); |
| 124 EXPECT_GT(interval_ms, 0); |
| 125 EXPECT_NE(interval_ms, default_interval_ms); |
| 126 } |
| 127 |
| 119 TEST_F(DelayBasedBweTest, InitialBehavior) { | 128 TEST_F(DelayBasedBweTest, InitialBehavior) { |
| 120 InitialBehaviorTestHelper(674840); | 129 InitialBehaviorTestHelper(674840); |
| 121 } | 130 } |
| 122 | 131 |
| 123 TEST_F(DelayBasedBweTest, RateIncreaseReordering) { | 132 TEST_F(DelayBasedBweTest, RateIncreaseReordering) { |
| 124 RateIncreaseReorderingTestHelper(674840); | 133 RateIncreaseReorderingTestHelper(674840); |
| 125 } | 134 } |
| 126 | 135 |
| 127 TEST_F(DelayBasedBweTest, RateIncreaseRtpTimestamps) { | 136 TEST_F(DelayBasedBweTest, RateIncreaseRtpTimestamps) { |
| 128 RateIncreaseRtpTimestampsTestHelper(1240); | 137 RateIncreaseRtpTimestampsTestHelper(1240); |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 | 232 |
| 224 TEST_F(DelayBasedBweTrendlineExperimentTest, CapacityDropNegOffsetChange) { | 233 TEST_F(DelayBasedBweTrendlineExperimentTest, CapacityDropNegOffsetChange) { |
| 225 CapacityDropTestHelper(1, false, 1267, -30000); | 234 CapacityDropTestHelper(1, false, 1267, -30000); |
| 226 } | 235 } |
| 227 | 236 |
| 228 TEST_F(DelayBasedBweTrendlineExperimentTest, CapacityDropOneStreamWrap) { | 237 TEST_F(DelayBasedBweTrendlineExperimentTest, CapacityDropOneStreamWrap) { |
| 229 CapacityDropTestHelper(1, true, 600, 0); | 238 CapacityDropTestHelper(1, true, 600, 0); |
| 230 } | 239 } |
| 231 | 240 |
| 232 } // namespace webrtc | 241 } // namespace webrtc |
| OLD | NEW |