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 5ee994a929cec93d61a489396750680fe82954bb..0d8bd19e5edb0d23b0cc595d1429afff51a6233a 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() { |