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

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

Issue 2990163002: Almost full implementation of BBR's core. (Closed)
Patch Set: fixed patch failure Created 3 years, 4 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/max_bandwidth_filter.h
diff --git a/webrtc/modules/remote_bitrate_estimator/test/estimators/max_bandwidth_filter.h b/webrtc/modules/remote_bitrate_estimator/test/estimators/max_bandwidth_filter.h
index 6bb320f55acfacb64ae447dd17ad38253f44bccf..15d06760a60627e733a13aac4e887107f891a4cf 100644
--- a/webrtc/modules/remote_bitrate_estimator/test/estimators/max_bandwidth_filter.h
+++ b/webrtc/modules/remote_bitrate_estimator/test/estimators/max_bandwidth_filter.h
@@ -28,13 +28,15 @@ namespace testing {
namespace bwe {
class MaxBandwidthFilter {
public:
- MaxBandwidthFilter();
+ // Number of rounds for bandwidth estimate to expire.
+ static const size_t kBandwidthWindowFilterSize = 10;
+ MaxBandwidthFilter();
~MaxBandwidthFilter();
int64_t max_bandwidth_estimate_bps() { return max_bandwidth_estimate_bps_; }
// Adds bandwidth sample to the bandwidth filter.
- void AddBandwidthSample(int64_t sample, int64_t round, size_t filter_size);
+ void AddBandwidthSample(int64_t sample, int64_t round);
// Checks if bandwidth has grown by certain multiplier for past x rounds,
// to decide whether or full bandwidth was reached.

Powered by Google App Engine
This is Rietveld 408576698