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_SENDER_H_ | 11 #ifndef WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_PACKET_SENDER_H_ |
12 #define WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_PACKET_SENDER_H_ | 12 #define WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_PACKET_SENDER_H_ |
13 | 13 |
14 #include <list> | 14 #include <list> |
15 #include <limits> | 15 #include <limits> |
16 #include <memory> | 16 #include <memory> |
17 #include <set> | 17 #include <set> |
18 #include <string> | 18 #include <string> |
19 | 19 |
| 20 #include "webrtc/base/constructormagic.h" |
20 #include "webrtc/modules/include/module.h" | 21 #include "webrtc/modules/include/module.h" |
21 #include "webrtc/modules/remote_bitrate_estimator/test/bwe.h" | 22 #include "webrtc/modules/remote_bitrate_estimator/test/bwe.h" |
22 #include "webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.h" | 23 #include "webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.h" |
23 #include "webrtc/rtc_base/constructormagic.h" | |
24 | 24 |
25 namespace webrtc { | 25 namespace webrtc { |
26 namespace testing { | 26 namespace testing { |
27 namespace bwe { | 27 namespace bwe { |
28 | 28 |
29 class MetricRecorder; | 29 class MetricRecorder; |
30 | 30 |
31 class PacketSender : public PacketProcessor { | 31 class PacketSender : public PacketProcessor { |
32 public: | 32 public: |
33 PacketSender(PacketProcessorListener* listener, int flow_id) | 33 PacketSender(PacketProcessorListener* listener, int flow_id) |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 int total_sent_bytes_; | 188 int total_sent_bytes_; |
189 int send_limit_bytes_; // Initialized by default as kNoLimit. | 189 int send_limit_bytes_; // Initialized by default as kNoLimit. |
190 int64_t last_generated_packets_ms_; | 190 int64_t last_generated_packets_ms_; |
191 size_t num_recent_sent_packets_; | 191 size_t num_recent_sent_packets_; |
192 uint32_t bitrate_kbps_; | 192 uint32_t bitrate_kbps_; |
193 }; | 193 }; |
194 } // namespace bwe | 194 } // namespace bwe |
195 } // namespace testing | 195 } // namespace testing |
196 } // namespace webrtc | 196 } // namespace webrtc |
197 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_PACKET_SENDER_H_ | 197 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_PACKET_SENDER_H_ |
OLD | NEW |