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 887e096004294a17a2e8dd908d36243a10aaefe5..5da11aac0a1a684c5ab744b76a6ca20978740711 100644 |
--- a/webrtc/modules/remote_bitrate_estimator/test/estimators/congestion_window.h |
+++ b/webrtc/modules/remote_bitrate_estimator/test/estimators/congestion_window.h |
@@ -12,22 +12,35 @@ |
#ifndef WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_ESTIMATORS_CONGESTION_WINDOW_H_ |
#define WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_ESTIMATORS_CONGESTION_WINDOW_H_ |
+#include "webrtc/modules/remote_bitrate_estimator/test/estimators/bbr.h" |
+ |
namespace webrtc { |
namespace testing { |
namespace bwe { |
class CongestionWindow { |
public: |
- void set_gain(float gain); |
- size_t data_inflight(); |
- int64_t GetCongestionWindow(); |
+ CongestionWindow(); |
+ ~CongestionWindow(); |
+ int GetCongestionWindow(BbrBweSender::Mode mode, |
+ int64_t bandwidth_estimate, |
+ int64_t min_rtt, |
+ float gain, |
terelius
2017/07/12 10:34:51
The difference between gain and multiplier is not
gnish1
2017/07/12 12:23:18
Done.
|
+ size_t bytes_acked, |
+ int multiplier); |
+ int GetTargetCongestionWindow(int64_t bandwidth_estimate, |
+ 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. |
+ void PacketSent(size_t sent_packet_size); |
+ |
+ // Ack was received by sender, meaning packet is no longer inflight. |
+ void AckReceived(size_t received_packet_size); |
- // Packet sent from sender, meaning it is inflight |
- // until we receive it and we should add packet's size to data_inflight. |
- void PacketSent(); |
+ size_t data_inflight() { return data_inflight_; } |
- // Ack was received by sender, meaning |
- // packet is no longer inflight. |
- void AckReceived(); |
+ private: |
+ size_t data_inflight_; |
}; |
} // namespace bwe |
} // namespace testing |