Index: webrtc/video/end_to_end_tests.cc |
diff --git a/webrtc/video/end_to_end_tests.cc b/webrtc/video/end_to_end_tests.cc |
index 52ff43e11d37a353482d60bc3d1600c4111d30c2..faec7e45dfe5b9768307302c33952385d4b2c8e6 100644 |
--- a/webrtc/video/end_to_end_tests.cc |
+++ b/webrtc/video/end_to_end_tests.cc |
@@ -2548,12 +2548,13 @@ TEST_F(EndToEndTest, ReportsSetEncoderRates) { |
RTC_DCHECK_EQ(1u, encoder_config->number_of_streams); |
} |
- int32_t SetRates(uint32_t new_target_bitrate, uint32_t framerate) override { |
+ int32_t SetRateAllocation(const BitrateAllocation& rate_allocation, |
+ uint32_t framerate) override { |
// Make sure not to trigger on any default zero bitrates. |
- if (new_target_bitrate == 0) |
+ if (rate_allocation.get_sum_bps() == 0) |
return 0; |
rtc::CritScope lock(&crit_); |
- bitrate_kbps_ = new_target_bitrate; |
+ bitrate_kbps_ = rate_allocation.get_sum_kbps(); |
observation_complete_.Set(); |
return 0; |
} |