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 84fab2cc52529e39cb2482c6cd1a1b1a4f7e7ad4..e4547f9282888adb044f0cf57421542b8feb982b 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 |
@@ -30,7 +30,7 @@ class MaxBandwidthFilter { |
public: |
MaxBandwidthFilter(); |
~MaxBandwidthFilter(); |
- int64_t max_bandwidth_estimate(); |
+ 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 |
@@ -39,8 +39,13 @@ class MaxBandwidthFilter { |
void AddBandwidthSample(int64_t round); |
// Check if bandwidth has grown by certain multiplier for past x rounds, |
- // to decide whether or not delivery rate plateaued. |
- bool DeliveryRateGrows(); |
+ // to decide whether or full bandwidth was reached. |
+ bool FullBandwidthReached(float growth_target, int max_rounds_without_growth); |
+ |
+ private: |
+ int64_t bandwidth_last_round_; |
+ int64_t max_bandwidth_estimate_; |
+ int64_t rounds_without_growth_; |
}; |
} // namespace bwe |
} // namespace testing |