OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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_TEST_FAKE_NETWORK_PIPE_H_ | 11 #ifndef WEBRTC_TEST_FAKE_NETWORK_PIPE_H_ |
12 #define WEBRTC_TEST_FAKE_NETWORK_PIPE_H_ | 12 #define WEBRTC_TEST_FAKE_NETWORK_PIPE_H_ |
13 | 13 |
14 #include <memory> | 14 #include <memory> |
15 #include <set> | 15 #include <set> |
16 #include <string.h> | 16 #include <string.h> |
17 #include <queue> | 17 #include <queue> |
18 | 18 |
19 #include "webrtc/base/constructormagic.h" | 19 #include "webrtc/base/constructormagic.h" |
20 #include "webrtc/base/criticalsection.h" | 20 #include "webrtc/base/criticalsection.h" |
21 #include "webrtc/base/random.h" | 21 #include "webrtc/base/random.h" |
22 #include "webrtc/typedefs.h" | 22 #include "webrtc/typedefs.h" |
23 | 23 |
24 namespace webrtc { | 24 namespace webrtc { |
25 | 25 |
26 class Clock; | 26 class Clock; |
27 class CriticalSectionWrapper; | |
28 class PacketReceiver; | 27 class PacketReceiver; |
29 | 28 |
30 class NetworkPacket { | 29 class NetworkPacket { |
31 public: | 30 public: |
32 NetworkPacket(const uint8_t* data, | 31 NetworkPacket(const uint8_t* data, |
33 size_t length, | 32 size_t length, |
34 int64_t send_time, | 33 int64_t send_time, |
35 int64_t arrival_time) | 34 int64_t arrival_time) |
36 : data_(new uint8_t[length]), | 35 : data_(new uint8_t[length]), |
37 data_length_(length), | 36 data_length_(length), |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 int64_t next_process_time_; | 146 int64_t next_process_time_; |
148 | 147 |
149 int64_t last_log_time_; | 148 int64_t last_log_time_; |
150 | 149 |
151 RTC_DISALLOW_COPY_AND_ASSIGN(FakeNetworkPipe); | 150 RTC_DISALLOW_COPY_AND_ASSIGN(FakeNetworkPipe); |
152 }; | 151 }; |
153 | 152 |
154 } // namespace webrtc | 153 } // namespace webrtc |
155 | 154 |
156 #endif // WEBRTC_TEST_FAKE_NETWORK_PIPE_H_ | 155 #endif // WEBRTC_TEST_FAKE_NETWORK_PIPE_H_ |
OLD | NEW |