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

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

Issue 2489323002: Add a new overuse estimator for the delay based BWE behind experiment. (Closed)
Patch Set: Rebase Created 4 years, 1 month 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 CapacityDropTestHelper(1, false, 300, 30000); 188 CapacityDropTestHelper(1, false, 300, 30000);
189 } 189 }
190 190
191 TEST_F(DelayBasedBweExperimentTest, CapacityDropNegOffsetChange) { 191 TEST_F(DelayBasedBweExperimentTest, CapacityDropNegOffsetChange) {
192 CapacityDropTestHelper(1, false, 300, -30000); 192 CapacityDropTestHelper(1, false, 300, -30000);
193 } 193 }
194 194
195 TEST_F(DelayBasedBweExperimentTest, CapacityDropOneStreamWrap) { 195 TEST_F(DelayBasedBweExperimentTest, CapacityDropOneStreamWrap) {
196 CapacityDropTestHelper(1, true, 333, 0); 196 CapacityDropTestHelper(1, true, 333, 0);
197 } 197 }
198
199 class DelayBasedBweTrendlineExperimentTest : public DelayBasedBweTest {
200 public:
201 DelayBasedBweTrendlineExperimentTest()
202 : override_field_trials_("WebRTC-BweTrendlineFilter/Enabled-15,0.9,4/") {}
203
204 protected:
205 void SetUp() override {
206 bitrate_estimator_.reset(new DelayBasedBwe(&clock_));
207 }
208
209 test::ScopedFieldTrials override_field_trials_;
210 };
211
212 TEST_F(DelayBasedBweTrendlineExperimentTest, RateIncreaseRtpTimestamps) {
213 RateIncreaseRtpTimestampsTestHelper(1240);
214 }
215
216 TEST_F(DelayBasedBweTrendlineExperimentTest, CapacityDropOneStream) {
217 CapacityDropTestHelper(1, false, 600, 0);
218 }
219
220 TEST_F(DelayBasedBweTrendlineExperimentTest, CapacityDropPosOffsetChange) {
221 CapacityDropTestHelper(1, false, 600, 30000);
222 }
223
224 TEST_F(DelayBasedBweTrendlineExperimentTest, CapacityDropNegOffsetChange) {
225 CapacityDropTestHelper(1, false, 1267, -30000);
226 }
227
228 TEST_F(DelayBasedBweTrendlineExperimentTest, CapacityDropOneStreamWrap) {
229 CapacityDropTestHelper(1, true, 600, 0);
230 }
231
198 } // namespace webrtc 232 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/congestion_controller/delay_based_bwe.cc ('k') | webrtc/modules/congestion_controller/trendline_estimator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698