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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 } | 198 } |
190 | 199 |
191 TEST_F(DelayBasedBweExperimentTest, CapacityDropNegOffsetChange) { | 200 TEST_F(DelayBasedBweExperimentTest, CapacityDropNegOffsetChange) { |
192 CapacityDropTestHelper(1, false, 300, -30000); | 201 CapacityDropTestHelper(1, false, 300, -30000); |
193 } | 202 } |
194 | 203 |
195 TEST_F(DelayBasedBweExperimentTest, CapacityDropOneStreamWrap) { | 204 TEST_F(DelayBasedBweExperimentTest, CapacityDropOneStreamWrap) { |
196 CapacityDropTestHelper(1, true, 333, 0); | 205 CapacityDropTestHelper(1, true, 333, 0); |
197 } | 206 } |
198 } // namespace webrtc | 207 } // namespace webrtc |
OLD | NEW |