Chromium Code Reviews| 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 |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..208b4f3cd15ae2e312517c8f2780f830aba71dac |
| --- /dev/null |
| +++ b/webrtc/modules/remote_bitrate_estimator/test/estimators/congestion_window.h |
| @@ -0,0 +1,48 @@ |
| +/* |
| + * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. |
| + * |
| + * Use of this source code is governed by a BSD-style license |
| + * that can be found in the LICENSE file in the root of the source |
| + * tree. An additional intellectual property rights grant can be found |
| + * in the file PATENTS. All contributing project authors may |
| + * be found in the AUTHORS file in the root of the source tree. |
| + * |
| + */ |
| + |
| +#ifndef WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_ESTIMATORS_CONGESTION_WINDOW_H_ |
| +#define WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_ESTIMATORS_CONGESTION_WINDOW_H_ |
| + |
| +#include <climits> |
| +#include <list> |
| +#include <map> |
| +#include <memory> |
| +#include <utility> |
| +#include <vector> |
| + |
| +#include "webrtc/logging/rtc_event_log/mock/mock_rtc_event_log.h" |
| +#include "webrtc/modules/remote_bitrate_estimator/include/send_time_history.h" |
| +#include "webrtc/modules/remote_bitrate_estimator/test/bwe.h" |
| + |
| +namespace webrtc { |
| +namespace testing { |
| +namespace bwe { |
| +class CongestionWindow { |
| + public: |
| + void set_gain(float gain); |
| + int64_t data_inflight(); |
| + int64_t GetCongestionWindow(); |
| + // Packet sent from sender,meaning it is inflight |
|
philipel
2017/06/01 15:06:53
whitespace
philipel
2017/06/01 15:06:53
I don't quite understand this comment.
gnish2
2017/06/01 15:12:44
Done.
gnish2
2017/06/01 15:12:44
Done.
|
| + // until we receive it. |
| + void PacketSent(); |
| + // Ack was received by sender,meaning |
|
philipel
2017/06/01 15:06:53
whitespace
gnish2
2017/06/01 15:12:44
Done.
|
| + // packet is no longer inflight. |
| + void AckReceived(); |
| + // Returnes whether or not data inflight has been under |
| + // fixed value for past x rounds and y ms. |
| + bool DataInflightDecreased(); |
| +}; |
| +} // namespace bwe |
| +} // namespace testing |
| +} // namespace webrtc |
| + |
| +#endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_ESTIMATORS_CONGESTION_WINDOW_H_ |