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 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 virtual ~BweSender() {} | 115 virtual ~BweSender() {} |
116 | 116 |
117 virtual int GetFeedbackIntervalMs() const = 0; | 117 virtual int GetFeedbackIntervalMs() const = 0; |
118 virtual void GiveFeedback(const FeedbackPacket& feedback) = 0; | 118 virtual void GiveFeedback(const FeedbackPacket& feedback) = 0; |
119 virtual void OnPacketsSent(const Packets& packets) = 0; | 119 virtual void OnPacketsSent(const Packets& packets) = 0; |
120 | 120 |
121 protected: | 121 protected: |
122 int bitrate_kbps_; | 122 int bitrate_kbps_; |
123 | 123 |
124 private: | 124 private: |
125 DISALLOW_COPY_AND_ASSIGN(BweSender); | 125 RTC_DISALLOW_COPY_AND_ASSIGN(BweSender); |
126 }; | 126 }; |
127 | 127 |
128 class BweReceiver { | 128 class BweReceiver { |
129 public: | 129 public: |
130 explicit BweReceiver(int flow_id); | 130 explicit BweReceiver(int flow_id); |
131 BweReceiver(int flow_id, int64_t window_size_ms); | 131 BweReceiver(int flow_id, int64_t window_size_ms); |
132 | 132 |
133 virtual ~BweReceiver() {} | 133 virtual ~BweReceiver() {} |
134 | 134 |
135 virtual void ReceivePacket(int64_t arrival_time_ms, | 135 virtual void ReceivePacket(int64_t arrival_time_ms, |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 BitrateObserver* observer, | 185 BitrateObserver* observer, |
186 Clock* clock); | 186 Clock* clock); |
187 | 187 |
188 BweReceiver* CreateBweReceiver(BandwidthEstimatorType type, | 188 BweReceiver* CreateBweReceiver(BandwidthEstimatorType type, |
189 int flow_id, | 189 int flow_id, |
190 bool plot); | 190 bool plot); |
191 } // namespace bwe | 191 } // namespace bwe |
192 } // namespace testing | 192 } // namespace testing |
193 } // namespace webrtc | 193 } // namespace webrtc |
194 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_BWE_H_ | 194 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_BWE_H_ |
OLD | NEW |