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

Side by Side Diff: webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_abs_send_time_unittest.cc

Issue 2380883003: Add interval estimator to remote bitrate estimator (Closed)
Patch Set: Rebased. 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) 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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698