| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #ifndef WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_PACKET_H_ | 11 #ifndef WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_PACKET_H_ |
| 12 #define WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_PACKET_H_ | 12 #define WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_PACKET_H_ |
| 13 | 13 |
| 14 #include <list> | 14 #include <list> |
| 15 #include <map> | 15 #include <map> |
| 16 #include <utility> |
| 16 #include <vector> | 17 #include <vector> |
| 17 | 18 |
| 18 #include "webrtc/common_types.h" | 19 #include "webrtc/common_types.h" |
| 19 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" | 20 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
| 20 #include "webrtc/modules/remote_bitrate_estimator/include/remote_bitrate_estimat
or.h" | 21 #include "webrtc/modules/remote_bitrate_estimator/include/remote_bitrate_estimat
or.h" |
| 21 | 22 |
| 22 namespace webrtc { | 23 namespace webrtc { |
| 23 namespace testing { | 24 namespace testing { |
| 24 namespace bwe { | 25 namespace bwe { |
| 25 | 26 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 latest_send_time_ms_(latest_send_time_ms) {} | 102 latest_send_time_ms_(latest_send_time_ms) {} |
| 102 virtual ~FeedbackPacket() {} | 103 virtual ~FeedbackPacket() {} |
| 103 | 104 |
| 104 virtual Packet::Type GetPacketType() const { return kFeedback; } | 105 virtual Packet::Type GetPacketType() const { return kFeedback; } |
| 105 int64_t latest_send_time_ms() const { return latest_send_time_ms_; } | 106 int64_t latest_send_time_ms() const { return latest_send_time_ms_; } |
| 106 | 107 |
| 107 private: | 108 private: |
| 108 int64_t latest_send_time_ms_; // Time stamp for the latest sent FbPacket. | 109 int64_t latest_send_time_ms_; // Time stamp for the latest sent FbPacket. |
| 109 }; | 110 }; |
| 110 | 111 |
| 112 class BbrBweFeedback : public FeedbackPacket { |
| 113 public: |
| 114 BbrBweFeedback( |
| 115 int flow_id, |
| 116 int64_t send_time_us, |
| 117 int64_t latest_send_time_ms, |
| 118 const std::vector<std::pair<uint64_t, int64_t>>& packet_feedback_vector); |
| 119 virtual ~BbrBweFeedback() {} |
| 120 |
| 121 const std::vector<std::pair<uint64_t, int64_t>>& packet_feedback_vector() |
| 122 const { |
| 123 return packet_feedback_vector_; |
| 124 } |
| 125 |
| 126 private: |
| 127 const std::vector<std::pair<uint64_t, int64_t>> packet_feedback_vector_; |
| 128 }; |
| 129 |
| 111 class RembFeedback : public FeedbackPacket { | 130 class RembFeedback : public FeedbackPacket { |
| 112 public: | 131 public: |
| 113 RembFeedback(int flow_id, | 132 RembFeedback(int flow_id, |
| 114 int64_t send_time_us, | 133 int64_t send_time_us, |
| 115 int64_t latest_send_time_ms, | 134 int64_t latest_send_time_ms, |
| 116 uint32_t estimated_bps, | 135 uint32_t estimated_bps, |
| 117 RTCPReportBlock report_block); | 136 RTCPReportBlock report_block); |
| 118 virtual ~RembFeedback() {} | 137 virtual ~RembFeedback() {} |
| 119 | 138 |
| 120 uint32_t estimated_bps() const { return estimated_bps_; } | 139 uint32_t estimated_bps() const { return estimated_bps_; } |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 }; | 213 }; |
| 195 | 214 |
| 196 typedef std::list<Packet*> Packets; | 215 typedef std::list<Packet*> Packets; |
| 197 typedef std::list<Packet*>::iterator PacketsIt; | 216 typedef std::list<Packet*>::iterator PacketsIt; |
| 198 typedef std::list<Packet*>::const_iterator PacketsConstIt; | 217 typedef std::list<Packet*>::const_iterator PacketsConstIt; |
| 199 | 218 |
| 200 } // namespace bwe | 219 } // namespace bwe |
| 201 } // namespace testing | 220 } // namespace testing |
| 202 } // namespace webrtc | 221 } // namespace webrtc |
| 203 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_PACKET_H_ | 222 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_PACKET_H_ |
| OLD | NEW |