Index: webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_unittest_helper.cc |
diff --git a/webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_unittest_helper.cc b/webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_unittest_helper.cc |
index 2ea52ca0ac3d9fe97e742fcc519b34840cbfaaca..ad502f7c80f9ea4ce23c8330f080363e7aa05ae4 100644 |
--- a/webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_unittest_helper.cc |
+++ b/webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_unittest_helper.cc |
@@ -513,7 +513,8 @@ void RemoteBitrateEstimatorTest::CapacityDropTestHelper( |
EXPECT_EQ(0u, latest_bps); |
} |
-void RemoteBitrateEstimatorTest::TestTimestampGroupingTestHelper() { |
+void RemoteBitrateEstimatorTest::TestTimestampGroupingTestHelper( |
+ uint32_t bitrate_bps) { |
const int kFramerate = 50; // 50 fps to avoid rounding errors. |
const int kFrameIntervalMs = 1000 / kFramerate; |
const uint32_t kFrameIntervalAbsSendTime = AbsSendTime(1, kFramerate); |
@@ -561,7 +562,7 @@ void RemoteBitrateEstimatorTest::TestTimestampGroupingTestHelper() { |
} |
EXPECT_TRUE(bitrate_observer_->updated()); |
// Should have reduced the estimate. |
- EXPECT_EQ(378720u, bitrate_observer_->latest_bitrate()); |
+ EXPECT_EQ(bitrate_bps, bitrate_observer_->latest_bitrate()); |
} |
void RemoteBitrateEstimatorTest::TestGetStatsHelper() { |