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

Side by Side Diff: webrtc/modules/bitrate_controller/send_side_bandwidth_estimation.cc

Issue 2717973005: Test field trial group with startswith rather than equals. (Closed)
Patch Set: const char*, two more IsEnabled Created 3 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 bwe_incoming_(0), 66 bwe_incoming_(0),
67 delay_based_bitrate_bps_(0), 67 delay_based_bitrate_bps_(0),
68 time_last_decrease_ms_(0), 68 time_last_decrease_ms_(0),
69 first_report_time_ms_(-1), 69 first_report_time_ms_(-1),
70 initially_lost_packets_(0), 70 initially_lost_packets_(0),
71 bitrate_at_2_seconds_kbps_(0), 71 bitrate_at_2_seconds_kbps_(0),
72 uma_update_state_(kNoUpdate), 72 uma_update_state_(kNoUpdate),
73 rampup_uma_stats_updated_(kNumUmaRampupMetrics, false), 73 rampup_uma_stats_updated_(kNumUmaRampupMetrics, false),
74 event_log_(event_log), 74 event_log_(event_log),
75 last_rtc_event_log_ms_(-1), 75 last_rtc_event_log_ms_(-1),
76 in_timeout_experiment_(webrtc::field_trial::FindFullName( 76 in_timeout_experiment_(
77 "WebRTC-FeedbackTimeout") == "Enabled") { 77 webrtc::field_trial::IsEnabled("WebRTC-FeedbackTimeout")) {
78 RTC_DCHECK(event_log); 78 RTC_DCHECK(event_log);
79 } 79 }
80 80
81 SendSideBandwidthEstimation::~SendSideBandwidthEstimation() {} 81 SendSideBandwidthEstimation::~SendSideBandwidthEstimation() {}
82 82
83 void SendSideBandwidthEstimation::SetBitrates(int send_bitrate, 83 void SendSideBandwidthEstimation::SetBitrates(int send_bitrate,
84 int min_bitrate, 84 int min_bitrate,
85 int max_bitrate) { 85 int max_bitrate) {
86 if (send_bitrate > 0) 86 if (send_bitrate > 0)
87 SetSendBitrate(send_bitrate); 87 SetSendBitrate(send_bitrate);
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 LOG(LS_WARNING) << "Estimated available bandwidth " << bitrate / 1000 336 LOG(LS_WARNING) << "Estimated available bandwidth " << bitrate / 1000
337 << " kbps is below configured min bitrate " 337 << " kbps is below configured min bitrate "
338 << min_bitrate_configured_ / 1000 << " kbps."; 338 << min_bitrate_configured_ / 1000 << " kbps.";
339 last_low_bitrate_log_ms_ = now_ms; 339 last_low_bitrate_log_ms_ = now_ms;
340 } 340 }
341 bitrate = min_bitrate_configured_; 341 bitrate = min_bitrate_configured_;
342 } 342 }
343 return bitrate; 343 return bitrate;
344 } 344 }
345 } // namespace webrtc 345 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698