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

Unified Diff: webrtc/modules/pacing/alr_detector_unittest.cc

Issue 2650393002: Improve bitrate probing for the audio-only case. (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 side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/pacing/alr_detector_unittest.cc
diff --git a/webrtc/modules/pacing/alr_detector_unittest.cc b/webrtc/modules/pacing/alr_detector_unittest.cc
index c6165915d0a85c065cb7046894f1b63d4aeeb598..3c912772235a13b94b705de1f1cb2e2855e50089 100644
--- a/webrtc/modules/pacing/alr_detector_unittest.cc
+++ b/webrtc/modules/pacing/alr_detector_unittest.cc
@@ -61,12 +61,12 @@ TEST_F(AlrDetectorTest, AlrDetection) {
SimulateOutgoingTraffic(500, 20);
EXPECT_TRUE(alr_detector_.GetApplicationLimitedRegionStartTime());
- // Verify that we remain in ALR state while usage is still below 50%.
- SimulateOutgoingTraffic(500, 40);
+ // Verify that we remain in ALR state while usage is still below 70%.
+ SimulateOutgoingTraffic(500, 69);
EXPECT_TRUE(alr_detector_.GetApplicationLimitedRegionStartTime());
- // Verify that ALR ends when usage is above 50%.
- SimulateOutgoingTraffic(500, 60);
+ // Verify that ALR ends when usage is above 70%.
+ SimulateOutgoingTraffic(500, 75);
EXPECT_FALSE(alr_detector_.GetApplicationLimitedRegionStartTime());
}
@@ -85,8 +85,8 @@ TEST_F(AlrDetectorTest, ShortSpike) {
SimulateOutgoingTraffic(200, 20);
EXPECT_TRUE(alr_detector_.GetApplicationLimitedRegionStartTime());
- // ALR ends when usage is above 50%.
- SimulateOutgoingTraffic(500, 60);
+ // ALR ends when usage is above 70%.
+ SimulateOutgoingTraffic(500, 75);
EXPECT_FALSE(alr_detector_.GetApplicationLimitedRegionStartTime());
}

Powered by Google App Engine
This is Rietveld 408576698