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_MODULES_RTP_RTCP_SOURCE_FEC_TEST_HELPER_H_ | 11 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_FEC_TEST_HELPER_H_ |
12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_FEC_TEST_HELPER_H_ | 12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_FEC_TEST_HELPER_H_ |
13 | 13 |
14 #include <memory> | 14 #include <memory> |
15 | 15 |
| 16 #include "webrtc/base/basictypes.h" |
| 17 #include "webrtc/base/random.h" |
16 #include "webrtc/modules/include/module_common_types.h" | 18 #include "webrtc/modules/include/module_common_types.h" |
17 #include "webrtc/modules/rtp_rtcp/source/forward_error_correction.h" | 19 #include "webrtc/modules/rtp_rtcp/source/forward_error_correction.h" |
18 #include "webrtc/rtc_base/basictypes.h" | |
19 #include "webrtc/rtc_base/random.h" | |
20 | 20 |
21 namespace webrtc { | 21 namespace webrtc { |
22 namespace test { | 22 namespace test { |
23 namespace fec { | 23 namespace fec { |
24 | 24 |
25 struct AugmentedPacket : public ForwardErrorCorrection::Packet { | 25 struct AugmentedPacket : public ForwardErrorCorrection::Packet { |
26 WebRtcRTPHeader header; | 26 WebRtcRTPHeader header; |
27 }; | 27 }; |
28 | 28 |
29 // TODO(brandtr): Consider merging MediaPacketGenerator and | 29 // TODO(brandtr): Consider merging MediaPacketGenerator and |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 static void SetRedHeader(uint8_t payload_type, | 125 static void SetRedHeader(uint8_t payload_type, |
126 size_t header_length, | 126 size_t header_length, |
127 AugmentedPacket* red_packet); | 127 AugmentedPacket* red_packet); |
128 }; | 128 }; |
129 | 129 |
130 } // namespace fec | 130 } // namespace fec |
131 } // namespace test | 131 } // namespace test |
132 } // namespace webrtc | 132 } // namespace webrtc |
133 | 133 |
134 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_FEC_TEST_HELPER_H_ | 134 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_FEC_TEST_HELPER_H_ |
OLD | NEW |