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

Side by Side Diff: webrtc/modules/remote_bitrate_estimator/test/estimators/min_rtt_filter.h

Issue 2924603002: Added implementation of four functions in the BBR congestion controller. (Closed)
Patch Set: f removed. Created 3 years, 5 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) 2017 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2017 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 11
12 #ifndef WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_ESTIMATORS_MIN_RTT_FILTER_H _ 12 #ifndef WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_ESTIMATORS_MIN_RTT_FILTER_H _
13 #define WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_ESTIMATORS_MIN_RTT_FILTER_H _ 13 #define WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_ESTIMATORS_MIN_RTT_FILTER_H _
14 14
15 #include <climits>
16 #include <map>
17 #include <memory>
18 #include <utility>
19 #include <vector>
20
21 #include "webrtc/logging/rtc_event_log/mock/mock_rtc_event_log.h"
22 #include "webrtc/modules/remote_bitrate_estimator/include/send_time_history.h"
23 #include "webrtc/modules/remote_bitrate_estimator/test/bwe.h"
24
25 namespace webrtc { 15 namespace webrtc {
26 namespace testing { 16 namespace testing {
27 namespace bwe { 17 namespace bwe {
28 class MinRttFilter { 18 class MinRttFilter {
29 public: 19 public:
30 MinRttFilter(); 20 MinRttFilter();
31 ~MinRttFilter(); 21 ~MinRttFilter();
32 int64_t min_rtt(); 22 int64_t min_rtt();
33 void UpdateMinRtt(int64_t min_rtt); 23 void UpdateMinRtt(int64_t min_rtt);
34 24
35 // Checks whether or last discovered min_rtt value 25 // Checks whether or not last discovered min_rtt value is older than x
36 // is older than x seconds. 26 // seconds.
37 bool MinRttExpired(int64_t now); 27 bool MinRttExpired(int64_t now);
38 void set_min_rtt_discovery_time(int64_t discovery_time); 28 void set_min_rtt_discovery_time(int64_t discovery_time);
39 }; 29 };
40 } // namespace bwe 30 } // namespace bwe
41 } // namespace testing 31 } // namespace testing
42 } // namespace webrtc 32 } // namespace webrtc
43 33
44 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_ESTIMATORS_MIN_RTT_FILTE R_H_ 34 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_ESTIMATORS_MIN_RTT_FILTE R_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698