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

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

Issue 2924603002: Added implementation of four functions in the BBR congestion controller. (Closed)
Patch Set: Created 3 years, 6 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 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

Powered by Google App Engine
This is Rietveld 408576698