Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(704)

Unified Diff: webrtc/video/video_send_stream_tests.cc

Issue 1813763005: Updated structures and functions for setting the max bitrate limit to take rtc::Optional<int> Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« webrtc/call/call.cc ('K') | « webrtc/video/video_loopback.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video/video_send_stream_tests.cc
diff --git a/webrtc/video/video_send_stream_tests.cc b/webrtc/video/video_send_stream_tests.cc
index de5f4b0f28bea0910289c78a402346f14745f32a..37717fdefcbb0bd0eb70acb5b424f9b7926bafd8 100644
--- a/webrtc/video/video_send_stream_tests.cc
+++ b/webrtc/video/video_send_stream_tests.cc
@@ -1794,7 +1794,8 @@ TEST_F(VideoSendStreamTest,
Call::Config config;
config.bitrate_config.min_bitrate_bps = kMinBitrateKbps * 1000;
config.bitrate_config.start_bitrate_bps = kStartBitrateKbps * 1000;
- config.bitrate_config.max_bitrate_bps = kMaxBitrateKbps * 1000;
+ config.bitrate_config.max_bitrate_bps =
+ rtc::Optional<int>(kMaxBitrateKbps * 1000);
return config;
}
@@ -1826,7 +1827,8 @@ TEST_F(VideoSendStreamTest,
<< "Timed out while waiting encoder to be configured.";
Call::Config::BitrateConfig bitrate_config;
bitrate_config.start_bitrate_bps = kIncreasedStartBitrateKbps * 1000;
- bitrate_config.max_bitrate_bps = kIncreasedMaxBitrateKbps * 1000;
+ bitrate_config.max_bitrate_bps =
+ rtc::Optional<int>(kIncreasedMaxBitrateKbps * 1000);
call_->SetBitrateConfig(bitrate_config);
EXPECT_TRUE(Wait())
<< "Timed out while waiting encoder to be configured.";
« webrtc/call/call.cc ('K') | « webrtc/video/video_loopback.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698