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 01c367cab79c90edead0ea91278da57b71ce5555..5d40404344978987e97e0f33ee2b1746302d9081 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 |
@@ -12,6 +12,7 @@ |
#ifndef WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_ESTIMATORS_MAX_BANDWIDTH_FILTER_H_ |
#define WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_ESTIMATORS_MAX_BANDWIDTH_FILTER_H_ |
+#include <cstddef> |
#include <cstdint> |
namespace webrtc { |
@@ -24,11 +25,9 @@ class MaxBandwidthFilter { |
~MaxBandwidthFilter(); |
int64_t max_bandwidth_estimate() { return max_bandwidth_estimate_; } |
- // Save bandwidth sample for the current round. |
- // We save bandwidth samples for past 10 rounds to |
- // provide better bandwidth estimate. |
- |
- void AddBandwidthSample(int64_t sample, int64_t round); |
+ // Save bandwidth sample for the current round. We save bandwidth samples for |
+ // past 10 rounds to provide better bandwidth estimate. |
+ void AddBandwidthSample(int64_t sample, int64_t round, size_t filter_size); |
// Check if bandwidth has grown by certain multiplier for past x rounds, |
// to decide whether or not full bandwidth was reached. |
@@ -36,6 +35,7 @@ class MaxBandwidthFilter { |
private: |
int64_t bandwidth_last_round_; |
+ uint64_t round_bandwidth_updated_; |
int64_t max_bandwidth_estimate_; |
int64_t rounds_without_growth_; |
}; |