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

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

Issue 2422063002: Use bayesian estimate of acked bitrate. (Closed)
Patch Set: . Created 4 years, 2 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) 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 117
118 TEST_F(DelayBasedBweTest, InitialBehavior) { 118 TEST_F(DelayBasedBweTest, InitialBehavior) {
119 InitialBehaviorTestHelper(674840); 119 InitialBehaviorTestHelper(674840);
120 } 120 }
121 121
122 TEST_F(DelayBasedBweTest, RateIncreaseReordering) { 122 TEST_F(DelayBasedBweTest, RateIncreaseReordering) {
123 RateIncreaseReorderingTestHelper(674840); 123 RateIncreaseReorderingTestHelper(674840);
124 } 124 }
125 125
126 TEST_F(DelayBasedBweTest, RateIncreaseRtpTimestamps) { 126 TEST_F(DelayBasedBweTest, RateIncreaseRtpTimestamps) {
127 RateIncreaseRtpTimestampsTestHelper(1240); 127 RateIncreaseRtpTimestampsTestHelper(1213);
128 } 128 }
129 129
130 TEST_F(DelayBasedBweTest, CapacityDropOneStream) { 130 TEST_F(DelayBasedBweTest, CapacityDropOneStream) {
131 CapacityDropTestHelper(1, false, 633, 0); 131 CapacityDropTestHelper(1, false, 333, 0);
132 } 132 }
133 133
134 TEST_F(DelayBasedBweTest, CapacityDropPosOffsetChange) { 134 TEST_F(DelayBasedBweTest, CapacityDropPosOffsetChange) {
135 CapacityDropTestHelper(1, false, 200, 30000); 135 CapacityDropTestHelper(1, false, 267, 30000);
136 } 136 }
137 137
138 TEST_F(DelayBasedBweTest, CapacityDropNegOffsetChange) { 138 TEST_F(DelayBasedBweTest, CapacityDropNegOffsetChange) {
139 CapacityDropTestHelper(1, false, 733, -30000); 139 CapacityDropTestHelper(1, false, 267, -30000);
140 } 140 }
141 141
142 TEST_F(DelayBasedBweTest, CapacityDropOneStreamWrap) { 142 TEST_F(DelayBasedBweTest, CapacityDropOneStreamWrap) {
143 CapacityDropTestHelper(1, true, 633, 0); 143 CapacityDropTestHelper(1, true, 333, 0);
144 }
145
146 TEST_F(DelayBasedBweTest, CapacityDropTwoStreamsWrap) {
147 CapacityDropTestHelper(2, true, 767, 0);
148 }
149
150 TEST_F(DelayBasedBweTest, CapacityDropThreeStreamsWrap) {
151 CapacityDropTestHelper(3, true, 633, 0);
152 }
153
154 TEST_F(DelayBasedBweTest, CapacityDropThirteenStreamsWrap) {
155 CapacityDropTestHelper(13, true, 733, 0);
156 }
157
158 TEST_F(DelayBasedBweTest, CapacityDropNineteenStreamsWrap) {
159 CapacityDropTestHelper(19, true, 667, 0);
160 }
161
162 TEST_F(DelayBasedBweTest, CapacityDropThirtyStreamsWrap) {
163 CapacityDropTestHelper(30, true, 667, 0);
164 } 144 }
165 145
166 TEST_F(DelayBasedBweTest, TestTimestampGrouping) { 146 TEST_F(DelayBasedBweTest, TestTimestampGrouping) {
167 TestTimestampGroupingTestHelper(); 147 TestTimestampGroupingTestHelper();
168 } 148 }
169 149
170 TEST_F(DelayBasedBweTest, TestShortTimeoutAndWrap) { 150 TEST_F(DelayBasedBweTest, TestShortTimeoutAndWrap) {
171 // Simulate a client leaving and rejoining the call after 35 seconds. This 151 // Simulate a client leaving and rejoining the call after 35 seconds. This
172 // will make abs send time wrap, so if streams aren't timed out properly 152 // will make abs send time wrap, so if streams aren't timed out properly
173 // the next 30 seconds of packets will be out of order. 153 // the next 30 seconds of packets will be out of order.
174 TestWrappingHelper(35); 154 TestWrappingHelper(35);
175 } 155 }
176 156
177 TEST_F(DelayBasedBweTest, TestLongTimeoutAndWrap) { 157 TEST_F(DelayBasedBweTest, TestLongTimeoutAndWrap) {
178 // Simulate a client leaving and rejoining the call after some multiple of 158 // Simulate a client leaving and rejoining the call after some multiple of
179 // 64 seconds later. This will cause a zero difference in abs send times due 159 // 64 seconds later. This will cause a zero difference in abs send times due
180 // to the wrap, but a big difference in arrival time, if streams aren't 160 // to the wrap, but a big difference in arrival time, if streams aren't
181 // properly timed out. 161 // properly timed out.
182 TestWrappingHelper(10 * 64); 162 TestWrappingHelper(10 * 64);
183 } 163 }
184 } // namespace webrtc 164 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698