| Index: webrtc/modules/remote_bitrate_estimator/bwe_simulations.cc
|
| diff --git a/webrtc/modules/remote_bitrate_estimator/bwe_simulations.cc b/webrtc/modules/remote_bitrate_estimator/bwe_simulations.cc
|
| index b671a13dbd1d9de5937864f260406b2ff777840d..485f7522a0ef54d29c401b19fe55e013361d17b9 100644
|
| --- a/webrtc/modules/remote_bitrate_estimator/bwe_simulations.cc
|
| +++ b/webrtc/modules/remote_bitrate_estimator/bwe_simulations.cc
|
| @@ -178,6 +178,36 @@ TEST_P(BweSimulation, Choke200kbps30kbps200kbps) {
|
| RunFor(60 * 1000);
|
| }
|
|
|
| +TEST_P(BweSimulation, PacerChoke50kbps15kbps50kbps) {
|
| + AdaptiveVideoSource source(0, 30, 300, 0, 0);
|
| + PacedVideoSender sender(&uplink_, &source, GetParam());
|
| + ChokeFilter filter(&uplink_, 0);
|
| + RateCounterFilter counter(&uplink_, 0, "Receiver", bwe_names[GetParam()]);
|
| + PacketReceiver receiver(&uplink_, 0, GetParam(), true, true);
|
| + filter.set_capacity_kbps(50);
|
| + filter.set_max_delay_ms(500);
|
| + RunFor(60 * 1000);
|
| + filter.set_capacity_kbps(15);
|
| + RunFor(60 * 1000);
|
| + filter.set_capacity_kbps(50);
|
| + RunFor(60 * 1000);
|
| +}
|
| +
|
| +TEST_P(BweSimulation, Choke50kbps15kbps50kbps) {
|
| + AdaptiveVideoSource source(0, 30, 300, 0, 0);
|
| + VideoSender sender(&uplink_, &source, GetParam());
|
| + ChokeFilter filter(&uplink_, 0);
|
| + RateCounterFilter counter(&uplink_, 0, "Receiver", bwe_names[GetParam()]);
|
| + PacketReceiver receiver(&uplink_, 0, GetParam(), true, true);
|
| + filter.set_capacity_kbps(50);
|
| + filter.set_max_delay_ms(500);
|
| + RunFor(60 * 1000);
|
| + filter.set_capacity_kbps(15);
|
| + RunFor(60 * 1000);
|
| + filter.set_capacity_kbps(50);
|
| + RunFor(60 * 1000);
|
| +}
|
| +
|
| TEST_P(BweSimulation, GoogleWifiTrace3Mbps) {
|
| AdaptiveVideoSource source(0, 30, 300, 0, 0);
|
| VideoSender sender(&uplink_, &source, GetParam());
|
|
|