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

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

Issue 2644463009: New simulators to test BWE at low bitrates (15-50kbps range). (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 PacketReceiver receiver(&uplink_, 0, GetParam(), true, true); 171 PacketReceiver receiver(&uplink_, 0, GetParam(), true, true);
172 filter.set_capacity_kbps(200); 172 filter.set_capacity_kbps(200);
173 filter.set_max_delay_ms(500); 173 filter.set_max_delay_ms(500);
174 RunFor(60 * 1000); 174 RunFor(60 * 1000);
175 filter.set_capacity_kbps(30); 175 filter.set_capacity_kbps(30);
176 RunFor(60 * 1000); 176 RunFor(60 * 1000);
177 filter.set_capacity_kbps(200); 177 filter.set_capacity_kbps(200);
178 RunFor(60 * 1000); 178 RunFor(60 * 1000);
179 } 179 }
180 180
181 TEST_P(BweSimulation, PacerChoke50kbps15kbps50kbps) {
182 AdaptiveVideoSource source(0, 30, 300, 0, 0);
183 PacedVideoSender sender(&uplink_, &source, GetParam());
184 ChokeFilter filter(&uplink_, 0);
185 RateCounterFilter counter(&uplink_, 0, "Receiver", bwe_names[GetParam()]);
186 PacketReceiver receiver(&uplink_, 0, GetParam(), true, true);
187 filter.set_capacity_kbps(50);
188 filter.set_max_delay_ms(500);
189 RunFor(60 * 1000);
190 filter.set_capacity_kbps(15);
191 RunFor(60 * 1000);
192 filter.set_capacity_kbps(50);
193 RunFor(60 * 1000);
194 }
195
196 TEST_P(BweSimulation, Choke50kbps15kbps50kbps) {
197 AdaptiveVideoSource source(0, 30, 300, 0, 0);
198 VideoSender sender(&uplink_, &source, GetParam());
199 ChokeFilter filter(&uplink_, 0);
200 RateCounterFilter counter(&uplink_, 0, "Receiver", bwe_names[GetParam()]);
201 PacketReceiver receiver(&uplink_, 0, GetParam(), true, true);
202 filter.set_capacity_kbps(50);
203 filter.set_max_delay_ms(500);
204 RunFor(60 * 1000);
205 filter.set_capacity_kbps(15);
206 RunFor(60 * 1000);
207 filter.set_capacity_kbps(50);
208 RunFor(60 * 1000);
209 }
210
181 TEST_P(BweSimulation, GoogleWifiTrace3Mbps) { 211 TEST_P(BweSimulation, GoogleWifiTrace3Mbps) {
182 AdaptiveVideoSource source(0, 30, 300, 0, 0); 212 AdaptiveVideoSource source(0, 30, 300, 0, 0);
183 VideoSender sender(&uplink_, &source, GetParam()); 213 VideoSender sender(&uplink_, &source, GetParam());
184 RateCounterFilter counter1(&uplink_, 0, "sender_output", 214 RateCounterFilter counter1(&uplink_, 0, "sender_output",
185 bwe_names[GetParam()]); 215 bwe_names[GetParam()]);
186 TraceBasedDeliveryFilter filter(&uplink_, 0, "link_capacity"); 216 TraceBasedDeliveryFilter filter(&uplink_, 0, "link_capacity");
187 filter.set_max_delay_ms(500); 217 filter.set_max_delay_ms(500);
188 RateCounterFilter counter2(&uplink_, 0, "Receiver", bwe_names[GetParam()]); 218 RateCounterFilter counter2(&uplink_, 0, "Receiver", bwe_names[GetParam()]);
189 PacketReceiver receiver(&uplink_, 0, GetParam(), true, true); 219 PacketReceiver receiver(&uplink_, 0, GetParam(), true, true);
190 ASSERT_TRUE(filter.Init(test::ResourcePath("google-wifi-3mbps", "rx"))); 220 ASSERT_TRUE(filter.Init(test::ResourcePath("google-wifi-3mbps", "rx")));
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 RunChoke(GetParam(), capacities_kbps); 485 RunChoke(GetParam(), capacities_kbps);
456 486
457 BweTest gcc_test(false); 487 BweTest gcc_test(false);
458 gcc_test.RunChoke(kSendSideEstimator, capacities_kbps); 488 gcc_test.RunChoke(kSendSideEstimator, capacities_kbps);
459 } 489 }
460 490
461 } // namespace bwe 491 } // namespace bwe
462 } // namespace testing 492 } // namespace testing
463 } // namespace webrtc 493 } // namespace webrtc
464 494
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698