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 #include <memory> | 11 #include <memory> |
12 | 12 |
| 13 #include "webrtc/test/call_test.h" |
13 #include "webrtc/test/gtest.h" | 14 #include "webrtc/test/gtest.h" |
14 | |
15 #include "webrtc/test/call_test.h" | |
16 #include "webrtc/test/null_transport.h" | 15 #include "webrtc/test/null_transport.h" |
17 | 16 |
18 namespace webrtc { | 17 namespace webrtc { |
19 | 18 |
20 class PacketInjectionTest : public test::CallTest { | 19 class PacketInjectionTest : public test::CallTest { |
21 protected: | 20 protected: |
22 enum class CodecType { | 21 enum class CodecType { |
23 kVp8, | 22 kVp8, |
24 kH264, | 23 kH264, |
25 }; | 24 }; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 0xED, | 83 0xED, |
85 0x58, | 84 0x58, |
86 0xCB, | 85 0xCB, |
87 0xED, | 86 0xED, |
88 0xDF}; | 87 0xDF}; |
89 | 88 |
90 InjectIncorrectPacket(CodecType::kH264, 101, kPacket, sizeof(kPacket)); | 89 InjectIncorrectPacket(CodecType::kH264, 101, kPacket, sizeof(kPacket)); |
91 } | 90 } |
92 | 91 |
93 } // namespace webrtc | 92 } // namespace webrtc |
OLD | NEW |