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

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

Issue 2982233002: Added implementations for entering/exiting STARTUP, DRAIN, PROBE_BW, PROBE_RTT modes, also updated M (Closed)
Patch Set: Unittest fix 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/congestion_window.h
diff --git a/webrtc/modules/remote_bitrate_estimator/test/estimators/congestion_window.h b/webrtc/modules/remote_bitrate_estimator/test/estimators/congestion_window.h
index 4fc1a125481e562a48dc9f32fdd005c3b9bfe078..b9b2300d1934c55b80db60234aa97172fe070362 100644
--- a/webrtc/modules/remote_bitrate_estimator/test/estimators/congestion_window.h
+++ b/webrtc/modules/remote_bitrate_estimator/test/estimators/congestion_window.h
@@ -14,19 +14,25 @@
#include "webrtc/modules/remote_bitrate_estimator/test/estimators/bbr.h"
+#include "webrtc/rtc_base/optional.h"
+
namespace webrtc {
namespace testing {
namespace bwe {
class CongestionWindow {
public:
+ // Size of congestion window while in PROBE_RTT mode, suggested by BBR's
+ // source code of QUIC's implementation.
+ static const int kMinimumCongestionWindowBytes = 4000;
+
CongestionWindow();
~CongestionWindow();
int GetCongestionWindow(BbrBweSender::Mode mode,
int64_t bandwidth_estimate,
- int64_t min_rtt,
+ rtc::Optional<int64_t> min_rtt,
float gain);
int GetTargetCongestionWindow(int64_t bandwidth_estimate,
- int64_t min_rtt,
+ rtc::Optional<int64_t> min_rtt,
float gain);
// Packet sent from sender, meaning it is inflight until we receive it and we
// should add packet's size to data_inflight.

Powered by Google App Engine
This is Rietveld 408576698