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

Unified Diff: webrtc/modules/audio_coding/audio_network_adaptor/bitrate_controller.cc

Issue 2717973005: Test field trial group with startswith rather than equals. (Closed)
Patch Set: Added IsEnabled() convenience function Created 3 years, 10 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
Index: webrtc/modules/audio_coding/audio_network_adaptor/bitrate_controller.cc
diff --git a/webrtc/modules/audio_coding/audio_network_adaptor/bitrate_controller.cc b/webrtc/modules/audio_coding/audio_network_adaptor/bitrate_controller.cc
index df0b470116b72f414a6bc3be1a7e4df86caf008d..04f8575223db68df1ef5293c37aaf3e795bd9a52 100644
--- a/webrtc/modules/audio_coding/audio_network_adaptor/bitrate_controller.cc
+++ b/webrtc/modules/audio_coding/audio_network_adaptor/bitrate_controller.cc
@@ -51,8 +51,10 @@ void BitrateController::MakeDecision(
// Current implementation of BitrateController can only work when
// |metrics.target_audio_bitrate_bps| includes overhead is enabled. This is
// currently governed by the following field trial.
- RTC_DCHECK_EQ("Enabled", webrtc::field_trial::FindFullName(
- "WebRTC-SendSideBwe-WithOverhead"));
+ RTC_DCHECK_EQ(
+ 0,
+ webrtc::field_trial::FindFullName("WebRTC-SendSideBwe-WithOverhead")
+ .find("Enabled"));
tommi 2017/02/28 11:52:41 RTC_DCHECK(webrtc::field_trial::IsEnabled("WebRTC-
sprang_webrtc 2017/02/28 12:18:31 Done.
if (config->frame_length_ms)
frame_length_ms_ = *config->frame_length_ms;
int overhead_rate_bps =

Powered by Google App Engine
This is Rietveld 408576698