| Index: webrtc/modules/congestion_controller/probe_controller_unittest.cc
|
| diff --git a/webrtc/modules/congestion_controller/probe_controller_unittest.cc b/webrtc/modules/congestion_controller/probe_controller_unittest.cc
|
| index fd6ecc137fb75373647738079aed41014c61d8b1..19a9039adafa111aee4591281b978f09ce80d915 100644
|
| --- a/webrtc/modules/congestion_controller/probe_controller_unittest.cc
|
| +++ b/webrtc/modules/congestion_controller/probe_controller_unittest.cc
|
| @@ -79,6 +79,21 @@ TEST_F(ProbeControllerTest, InitiatesProbingOnMaxBitrateIncrease) {
|
| kMaxBitrateBps + 100);
|
| }
|
|
|
| +TEST_F(ProbeControllerTest, InitiatesProbingOnMaxBitrateIncreaseAtMaxBitrate) {
|
| + EXPECT_CALL(pacer_, CreateProbeCluster(_)).Times(AtLeast(2));
|
| + probe_controller_->SetBitrates(kMinBitrateBps, kStartBitrateBps,
|
| + kMaxBitrateBps);
|
| + // Long enough to time out exponential probing.
|
| + clock_.AdvanceTimeMilliseconds(kExponentialProbingTimeoutMs);
|
| + probe_controller_->SetEstimatedBitrate(kStartBitrateBps);
|
| + probe_controller_->Process();
|
| +
|
| + probe_controller_->SetEstimatedBitrate(kMaxBitrateBps);
|
| + EXPECT_CALL(pacer_, CreateProbeCluster(kMaxBitrateBps + 100));
|
| + probe_controller_->SetBitrates(kMinBitrateBps, kStartBitrateBps,
|
| + kMaxBitrateBps + 100);
|
| +}
|
| +
|
| TEST_F(ProbeControllerTest, TestExponentialProbing) {
|
| probe_controller_->SetBitrates(kMinBitrateBps, kStartBitrateBps,
|
| kMaxBitrateBps);
|
|
|