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

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

Issue 2966403002: Added implementation of three classes in BBR,with unit-tests. (Closed)
Patch Set: Changed names of some variables. 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/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_;
};

Powered by Google App Engine
This is Rietveld 408576698