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 24 matching lines...) Expand all Loading... |
35 }; | 35 }; |
36 | 36 |
37 void PacketInjectionTest::InjectIncorrectPacket(CodecType codec_type, | 37 void PacketInjectionTest::InjectIncorrectPacket(CodecType codec_type, |
38 uint8_t payload_type, | 38 uint8_t payload_type, |
39 const uint8_t* packet, | 39 const uint8_t* packet, |
40 size_t length) { | 40 size_t length) { |
41 CreateSenderCall(Call::Config(&event_log_)); | 41 CreateSenderCall(Call::Config(&event_log_)); |
42 CreateReceiverCall(Call::Config(&event_log_)); | 42 CreateReceiverCall(Call::Config(&event_log_)); |
43 | 43 |
44 test::NullTransport null_transport; | 44 test::NullTransport null_transport; |
45 CreateSendConfig(1, 0, &null_transport); | 45 CreateSendConfig(1, 0, 0, &null_transport); |
46 CreateMatchingReceiveConfigs(&null_transport); | 46 CreateMatchingReceiveConfigs(&null_transport); |
47 video_receive_configs_[0].decoders[0].payload_type = payload_type; | 47 video_receive_configs_[0].decoders[0].payload_type = payload_type; |
48 switch (codec_type) { | 48 switch (codec_type) { |
49 case CodecType::kVp8: | 49 case CodecType::kVp8: |
50 video_receive_configs_[0].decoders[0].payload_name = "VP8"; | 50 video_receive_configs_[0].decoders[0].payload_name = "VP8"; |
51 break; | 51 break; |
52 case CodecType::kH264: | 52 case CodecType::kH264: |
53 video_receive_configs_[0].decoders[0].payload_name = "H264"; | 53 video_receive_configs_[0].decoders[0].payload_name = "H264"; |
54 break; | 54 break; |
55 } | 55 } |
(...skipping 28 matching lines...) Expand all Loading... |
84 0xED, | 84 0xED, |
85 0x58, | 85 0x58, |
86 0xCB, | 86 0xCB, |
87 0xED, | 87 0xED, |
88 0xDF}; | 88 0xDF}; |
89 | 89 |
90 InjectIncorrectPacket(CodecType::kH264, 101, kPacket, sizeof(kPacket)); | 90 InjectIncorrectPacket(CodecType::kH264, 101, kPacket, sizeof(kPacket)); |
91 } | 91 } |
92 | 92 |
93 } // namespace webrtc | 93 } // namespace webrtc |
OLD | NEW |