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

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

Issue 2029593002: Update RateStatistics to handle too-little-data case. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Addressed comment Created 4 years, 6 months 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 17 matching lines...) Expand all
28 28
29 TEST_F(RemoteBitrateEstimatorAbsSendTimeTest, InitialBehavior) { 29 TEST_F(RemoteBitrateEstimatorAbsSendTimeTest, InitialBehavior) {
30 InitialBehaviorTestHelper(674840); 30 InitialBehaviorTestHelper(674840);
31 } 31 }
32 32
33 TEST_F(RemoteBitrateEstimatorAbsSendTimeTest, RateIncreaseReordering) { 33 TEST_F(RemoteBitrateEstimatorAbsSendTimeTest, RateIncreaseReordering) {
34 RateIncreaseReorderingTestHelper(674840); 34 RateIncreaseReorderingTestHelper(674840);
35 } 35 }
36 36
37 TEST_F(RemoteBitrateEstimatorAbsSendTimeTest, RateIncreaseRtpTimestamps) { 37 TEST_F(RemoteBitrateEstimatorAbsSendTimeTest, RateIncreaseRtpTimestamps) {
38 RateIncreaseRtpTimestampsTestHelper(1229); 38 RateIncreaseRtpTimestampsTestHelper(1237);
39 } 39 }
40 40
41 TEST_F(RemoteBitrateEstimatorAbsSendTimeTest, CapacityDropOneStream) { 41 TEST_F(RemoteBitrateEstimatorAbsSendTimeTest, CapacityDropOneStream) {
42 CapacityDropTestHelper(1, false, 667); 42 CapacityDropTestHelper(1, false, 667);
43 } 43 }
44 44
45 TEST_F(RemoteBitrateEstimatorAbsSendTimeTest, CapacityDropOneStreamWrap) { 45 TEST_F(RemoteBitrateEstimatorAbsSendTimeTest, CapacityDropOneStreamWrap) {
46 CapacityDropTestHelper(1, true, 667); 46 CapacityDropTestHelper(1, true, 667);
47 } 47 }
48 48
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 } 278 }
279 279
280 // Wait long enough so that we can call Process again. 280 // Wait long enough so that we can call Process again.
281 clock_.AdvanceTimeMilliseconds(1000); 281 clock_.AdvanceTimeMilliseconds(1000);
282 282
283 bitrate_estimator_->Process(); 283 bitrate_estimator_->Process();
284 EXPECT_TRUE(bitrate_observer_->updated()); 284 EXPECT_TRUE(bitrate_observer_->updated());
285 EXPECT_NEAR(bitrate_observer_->latest_bitrate(), 800000u, 10000); 285 EXPECT_NEAR(bitrate_observer_->latest_bitrate(), 800000u, 10000);
286 } 286 }
287 } // namespace webrtc 287 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698