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

Side by Side Diff: webrtc/modules/remote_bitrate_estimator/test/packet.h

Issue 2924603002: Added implementation of four functions in the BBR congestion controller. (Closed)
Patch Set: f removed. 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 unified diff | Download patch
« no previous file with comments | « webrtc/modules/remote_bitrate_estimator/test/estimators/min_rtt_filter.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 virtual Packet::Type GetPacketType() const { return kFeedback; } 105 virtual Packet::Type GetPacketType() const { return kFeedback; }
106 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_; }
107 107
108 private: 108 private:
109 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.
110 }; 110 };
111 111
112 class BbrBweFeedback : public FeedbackPacket { 112 class BbrBweFeedback : public FeedbackPacket {
113 public: 113 public:
114 BbrBweFeedback( 114 BbrBweFeedback(int flow_id,
115 int flow_id, 115 int64_t send_time_us,
116 int64_t send_time_us, 116 int64_t latest_send_time_ms,
117 int64_t latest_send_time_ms, 117 const std::vector<uint64_t>& packet_feedback_vector);
118 const std::vector<std::pair<uint64_t, int64_t>>& packet_feedback_vector);
119 virtual ~BbrBweFeedback() {} 118 virtual ~BbrBweFeedback() {}
120 119
121 const std::vector<std::pair<uint64_t, int64_t>>& packet_feedback_vector() 120 const std::vector<uint64_t>& packet_feedback_vector() const {
122 const {
123 return packet_feedback_vector_; 121 return packet_feedback_vector_;
124 } 122 }
125 123
126 private: 124 private:
127 const std::vector<std::pair<uint64_t, int64_t>> packet_feedback_vector_; 125 const std::vector<uint64_t> packet_feedback_vector_;
128 }; 126 };
129 127
130 class RembFeedback : public FeedbackPacket { 128 class RembFeedback : public FeedbackPacket {
131 public: 129 public:
132 RembFeedback(int flow_id, 130 RembFeedback(int flow_id,
133 int64_t send_time_us, 131 int64_t send_time_us,
134 int64_t latest_send_time_ms, 132 int64_t latest_send_time_ms,
135 uint32_t estimated_bps, 133 uint32_t estimated_bps,
136 RTCPReportBlock report_block); 134 RTCPReportBlock report_block);
137 virtual ~RembFeedback() {} 135 virtual ~RembFeedback() {}
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 }; 211 };
214 212
215 typedef std::list<Packet*> Packets; 213 typedef std::list<Packet*> Packets;
216 typedef std::list<Packet*>::iterator PacketsIt; 214 typedef std::list<Packet*>::iterator PacketsIt;
217 typedef std::list<Packet*>::const_iterator PacketsConstIt; 215 typedef std::list<Packet*>::const_iterator PacketsConstIt;
218 216
219 } // namespace bwe 217 } // namespace bwe
220 } // namespace testing 218 } // namespace testing
221 } // namespace webrtc 219 } // namespace webrtc
222 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_PACKET_H_ 220 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_PACKET_H_
OLDNEW
« no previous file with comments | « webrtc/modules/remote_bitrate_estimator/test/estimators/min_rtt_filter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698