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 492f55d6ec8bf1863a0bb0f903d2f1f40f32d9fe..fde2ce29aa223b786a8cba313e8bf50813bc848d 100644 |
--- a/webrtc/video/end_to_end_tests.cc |
+++ b/webrtc/video/end_to_end_tests.cc |
@@ -2550,12 +2550,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; |
} |