| Index: webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_abs_send_time_unittest.cc
|
| diff --git a/webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_abs_send_time_unittest.cc b/webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_abs_send_time_unittest.cc
|
| index 611a18d9079dc88771be38d6dbadddd9892b2be8..fcfb8f4f83bc85b1c5a127868de6c32147ece850 100644
|
| --- a/webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_abs_send_time_unittest.cc
|
| +++ b/webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_abs_send_time_unittest.cc
|
| @@ -20,7 +20,7 @@ class RemoteBitrateEstimatorAbsSendTimeTest :
|
| RemoteBitrateEstimatorAbsSendTimeTest() {}
|
| virtual void SetUp() {
|
| bitrate_estimator_.reset(new RemoteBitrateEstimatorAbsSendTime(
|
| - bitrate_observer_.get()));
|
| + bitrate_observer_.get(), &clock_));
|
| }
|
| protected:
|
| RTC_DISALLOW_COPY_AND_ASSIGN(RemoteBitrateEstimatorAbsSendTimeTest);
|
| @@ -39,31 +39,39 @@ TEST_F(RemoteBitrateEstimatorAbsSendTimeTest, RateIncreaseRtpTimestamps) {
|
| }
|
|
|
| TEST_F(RemoteBitrateEstimatorAbsSendTimeTest, CapacityDropOneStream) {
|
| - CapacityDropTestHelper(1, false, 667);
|
| + CapacityDropTestHelper(1, false, 633, 0);
|
| +}
|
| +
|
| +TEST_F(RemoteBitrateEstimatorAbsSendTimeTest, CapacityDropPosOffsetChange) {
|
| + CapacityDropTestHelper(1, false, 267, 30000);
|
| +}
|
| +
|
| +TEST_F(RemoteBitrateEstimatorAbsSendTimeTest, CapacityDropNegOffsetChange) {
|
| + CapacityDropTestHelper(1, false, 267, -30000);
|
| }
|
|
|
| TEST_F(RemoteBitrateEstimatorAbsSendTimeTest, CapacityDropOneStreamWrap) {
|
| - CapacityDropTestHelper(1, true, 667);
|
| + CapacityDropTestHelper(1, true, 633, 0);
|
| }
|
|
|
| TEST_F(RemoteBitrateEstimatorAbsSendTimeTest, CapacityDropTwoStreamsWrap) {
|
| - CapacityDropTestHelper(2, true, 633);
|
| + CapacityDropTestHelper(2, true, 633, 0);
|
| }
|
|
|
| TEST_F(RemoteBitrateEstimatorAbsSendTimeTest, CapacityDropThreeStreamsWrap) {
|
| - CapacityDropTestHelper(3, true, 633);
|
| + CapacityDropTestHelper(3, true, 633, 0);
|
| }
|
|
|
| TEST_F(RemoteBitrateEstimatorAbsSendTimeTest, CapacityDropThirteenStreamsWrap) {
|
| - CapacityDropTestHelper(13, true, 667);
|
| + CapacityDropTestHelper(13, true, 667, 0);
|
| }
|
|
|
| TEST_F(RemoteBitrateEstimatorAbsSendTimeTest, CapacityDropNineteenStreamsWrap) {
|
| - CapacityDropTestHelper(19, true, 667);
|
| + CapacityDropTestHelper(19, true, 667, 0);
|
| }
|
|
|
| TEST_F(RemoteBitrateEstimatorAbsSendTimeTest, CapacityDropThirtyStreamsWrap) {
|
| - CapacityDropTestHelper(30, true, 667);
|
| + CapacityDropTestHelper(30, true, 667, 0);
|
| }
|
|
|
| TEST_F(RemoteBitrateEstimatorAbsSendTimeTest, TestTimestampGrouping) {
|
|
|