Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: webrtc/modules/congestion_controller/delay_based_bwe_unittest.cc

Issue 2532993002: Revert of Pass time constant to bwe smoothing filter. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
128 TEST_F(DelayBasedBweTest, InitialBehavior) { 119 TEST_F(DelayBasedBweTest, InitialBehavior) {
129 InitialBehaviorTestHelper(674840); 120 InitialBehaviorTestHelper(674840);
130 } 121 }
131 122
132 TEST_F(DelayBasedBweTest, RateIncreaseReordering) { 123 TEST_F(DelayBasedBweTest, RateIncreaseReordering) {
133 RateIncreaseReorderingTestHelper(674840); 124 RateIncreaseReorderingTestHelper(674840);
134 } 125 }
135 126
136 TEST_F(DelayBasedBweTest, RateIncreaseRtpTimestamps) { 127 TEST_F(DelayBasedBweTest, RateIncreaseRtpTimestamps) {
137 RateIncreaseRtpTimestampsTestHelper(1240); 128 RateIncreaseRtpTimestampsTestHelper(1240);
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 223
233 TEST_F(DelayBasedBweTrendlineExperimentTest, CapacityDropNegOffsetChange) { 224 TEST_F(DelayBasedBweTrendlineExperimentTest, CapacityDropNegOffsetChange) {
234 CapacityDropTestHelper(1, false, 1267, -30000); 225 CapacityDropTestHelper(1, false, 1267, -30000);
235 } 226 }
236 227
237 TEST_F(DelayBasedBweTrendlineExperimentTest, CapacityDropOneStreamWrap) { 228 TEST_F(DelayBasedBweTrendlineExperimentTest, CapacityDropOneStreamWrap) {
238 CapacityDropTestHelper(1, true, 600, 0); 229 CapacityDropTestHelper(1, true, 600, 0);
239 } 230 }
240 231
241 } // namespace webrtc 232 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698