Index: webrtc/media/engine/webrtcvideoengine2_unittest.cc |
diff --git a/webrtc/media/engine/webrtcvideoengine2_unittest.cc b/webrtc/media/engine/webrtcvideoengine2_unittest.cc |
index ef77e9e927b9608ea66d32df0230bb44089d509f..e7e06a7e45c0e6ea8ae29b63810fc54eda743cfa 100644 |
--- a/webrtc/media/engine/webrtcvideoengine2_unittest.cc |
+++ b/webrtc/media/engine/webrtcvideoengine2_unittest.cc |
@@ -1176,12 +1176,13 @@ class WebRtcVideoChannel2Test : public WebRtcVideoEngine2Test { |
webrtc::RtpParameters parameters = |
channel_->GetRtpSendParameters(last_ssrc_); |
EXPECT_EQ(1UL, parameters.encodings.size()); |
- parameters.encodings[0].max_bitrate_bps = stream_max; |
+ parameters.encodings[0].max_bitrate_bps = rtc::Optional<int>(stream_max); |
EXPECT_TRUE(channel_->SetRtpSendParameters(last_ssrc_, parameters)); |
// Read back the parameteres and verify they have the correct value |
parameters = channel_->GetRtpSendParameters(last_ssrc_); |
EXPECT_EQ(1UL, parameters.encodings.size()); |
- EXPECT_EQ(stream_max, parameters.encodings[0].max_bitrate_bps); |
+ EXPECT_EQ(rtc::Optional<int>(stream_max), |
+ parameters.encodings[0].max_bitrate_bps); |
// Verify that the new value propagated down to the encoder |
EXPECT_EQ(expected_encoder_bitrate, GetMaxEncoderBitrate()); |
} |