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

Unified Diff: webrtc/modules/remote_bitrate_estimator/test/estimators/min_rtt_filter.h

Issue 2966403002: Added implementation of three classes in BBR,with unit-tests. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/remote_bitrate_estimator/test/estimators/min_rtt_filter.h
diff --git a/webrtc/modules/remote_bitrate_estimator/test/estimators/min_rtt_filter.h b/webrtc/modules/remote_bitrate_estimator/test/estimators/min_rtt_filter.h
index f41a4f0dad57ef9426094c4f51305649fa372e87..e74e04f58f83dbde876db6c0617a8aee5e4bda20 100644
--- a/webrtc/modules/remote_bitrate_estimator/test/estimators/min_rtt_filter.h
+++ b/webrtc/modules/remote_bitrate_estimator/test/estimators/min_rtt_filter.h
@@ -12,6 +12,8 @@
#ifndef WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_ESTIMATORS_MIN_RTT_FILTER_H_
#define WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_ESTIMATORS_MIN_RTT_FILTER_H_
+#include <cstdint>
+
namespace webrtc {
namespace testing {
namespace bwe {
@@ -19,13 +21,21 @@ class MinRttFilter {
public:
MinRttFilter();
~MinRttFilter();
- int64_t min_rtt();
+ int64_t min_rtt() { return min_rtt_; }
philipel 2017/07/06 12:15:16 Add newline between line 23 24.
gnish1 2017/07/07 13:43:34 Done.
void UpdateMinRtt(int64_t min_rtt);
+ void set_discovery_time(int64_t discovery_time) {
+ discovery_time_ = discovery_time;
+ }
+ int64_t discovery_time() { return discovery_time_; }
// Checks whether or not last discovered min_rtt value is older than x
// seconds.
bool MinRttExpired(int64_t now);
void set_min_rtt_discovery_time(int64_t discovery_time);
+
+ private:
+ int64_t min_rtt_;
+ int64_t discovery_time_;
};
} // namespace bwe
} // namespace testing

Powered by Google App Engine
This is Rietveld 408576698