1 /* 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 3 * 4 * Use of this source code is governed by a BSD-style license 5 * that can be found in the LICENSE file in the root of the source 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 11 #ifndef WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_ESTIMATORS_TCP_H_ 12 #define WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_ESTIMATORS_TCP_H_ 13 14 #include <vector> 15 16 #include "webrtc/modules/remote_bitrate_estimator/test/bwe.h" 17 18 namespace webrtc { 19 namespace testing { 20 namespace bwe { 21 class TcpBweReceiver : public BweReceiver { 22 public: 23 explicit TcpBweReceiver(int flow_id); 24 virtual ~TcpBweReceiver(); 25 26 void ReceivePacket(int64_t arrival_time_ms, 27 const MediaPacket& media_packet) override; 28 FeedbackPacket* GetFeedback(int64_t now_ms) override; 29 30 private: 31 int64_t last_feedback_ms_; 32 int64_t latest_owd_ms_; 33 std::vector<uint16_t> acks_; 34 }; 35 } // namespace bwe 36 } // namespace testing 37 } // namespace webrtc 38 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_ESTIMATORS_TCP_H_ 39