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

Side by Side Diff: webrtc/modules/remote_bitrate_estimator/overuse_detector.cc

Issue 1413333002: system_wrappers: rename interface -> include (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased again! Created 5 years, 1 month 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
11 #include "webrtc/modules/remote_bitrate_estimator/overuse_detector.h" 11 #include "webrtc/modules/remote_bitrate_estimator/overuse_detector.h"
12 12
13 #include <algorithm> 13 #include <algorithm>
14 #include <sstream> 14 #include <sstream>
15 #include <math.h> 15 #include <math.h>
16 #include <stdlib.h> 16 #include <stdlib.h>
17 17
18 #include "webrtc/base/checks.h" 18 #include "webrtc/base/checks.h"
19 #include "webrtc/base/common.h" 19 #include "webrtc/base/common.h"
20 #include "webrtc/modules/remote_bitrate_estimator/include/bwe_defines.h" 20 #include "webrtc/modules/remote_bitrate_estimator/include/bwe_defines.h"
21 #include "webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.h" 21 #include "webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.h"
22 #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" 22 #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h"
23 #include "webrtc/system_wrappers/interface/field_trial.h" 23 #include "webrtc/system_wrappers/include/field_trial.h"
24 #include "webrtc/system_wrappers/interface/trace.h" 24 #include "webrtc/system_wrappers/include/trace.h"
25 25
26 namespace webrtc { 26 namespace webrtc {
27 27
28 const char kAdaptiveThresholdExperiment[] = "WebRTC-AdaptiveBweThreshold"; 28 const char kAdaptiveThresholdExperiment[] = "WebRTC-AdaptiveBweThreshold";
29 const char kEnabledPrefix[] = "Enabled"; 29 const char kEnabledPrefix[] = "Enabled";
30 const size_t kEnabledPrefixLength = sizeof(kEnabledPrefix) - 1; 30 const size_t kEnabledPrefixLength = sizeof(kEnabledPrefix) - 1;
31 const size_t kMinExperimentLength = kEnabledPrefixLength + 3; 31 const size_t kMinExperimentLength = kEnabledPrefixLength + 3;
32 32
33 const double kMaxAdaptOffsetMs = 15.0; 33 const double kMaxAdaptOffsetMs = 15.0;
34 const double kOverUsingTimeThreshold = 10; 34 const double kOverUsingTimeThreshold = 10;
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 RTC_DCHECK(in_experiment_); 146 RTC_DCHECK(in_experiment_);
147 double k_up = 0.0; 147 double k_up = 0.0;
148 double k_down = 0.0; 148 double k_down = 0.0;
149 overusing_time_threshold_ = kOverUsingTimeThreshold; 149 overusing_time_threshold_ = kOverUsingTimeThreshold;
150 if (ReadExperimentConstants(&k_up, &k_down)) { 150 if (ReadExperimentConstants(&k_up, &k_down)) {
151 k_up_ = k_up; 151 k_up_ = k_up;
152 k_down_ = k_down; 152 k_down_ = k_down;
153 } 153 }
154 } 154 }
155 } // namespace webrtc 155 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/pacing/paced_sender_unittest.cc ('k') | webrtc/modules/remote_bitrate_estimator/overuse_estimator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698