| 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 void PacketInjectionTest::InjectIncorrectPacket(CodecType codec_type, |  35 void PacketInjectionTest::InjectIncorrectPacket(CodecType codec_type, | 
|  36                                                 uint8_t payload_type, |  36                                                 uint8_t payload_type, | 
|  37                                                 const uint8_t* packet, |  37                                                 const uint8_t* packet, | 
|  38                                                 size_t length) { |  38                                                 size_t length) { | 
|  39   CreateSenderCall(Call::Config()); |  39   CreateSenderCall(Call::Config()); | 
|  40   CreateReceiverCall(Call::Config()); |  40   CreateReceiverCall(Call::Config()); | 
|  41  |  41  | 
|  42   test::NullTransport null_transport; |  42   test::NullTransport null_transport; | 
|  43   CreateSendConfig(1, &null_transport); |  43   CreateSendConfig(1, &null_transport); | 
|  44   CreateMatchingReceiveConfigs(&null_transport); |  44   CreateMatchingReceiveConfigs(&null_transport); | 
|  45   receive_configs_[0].decoders[0].payload_type = payload_type; |  45   video_receive_configs_[0].decoders[0].payload_type = payload_type; | 
|  46   switch (codec_type) { |  46   switch (codec_type) { | 
|  47     case CodecType::kVp8: |  47     case CodecType::kVp8: | 
|  48       receive_configs_[0].decoders[0].payload_name = "VP8"; |  48       video_receive_configs_[0].decoders[0].payload_name = "VP8"; | 
|  49       break; |  49       break; | 
|  50     case CodecType::kH264: |  50     case CodecType::kH264: | 
|  51       receive_configs_[0].decoders[0].payload_name = "H264"; |  51       video_receive_configs_[0].decoders[0].payload_name = "H264"; | 
|  52       break; |  52       break; | 
|  53   } |  53   } | 
|  54   CreateStreams(); |  54   CreateStreams(); | 
|  55  |  55  | 
|  56   RTPHeader header; |  56   RTPHeader header; | 
|  57   EXPECT_TRUE(rtp_header_parser_->Parse(packet, length, &header)); |  57   EXPECT_TRUE(rtp_header_parser_->Parse(packet, length, &header)); | 
|  58   EXPECT_EQ(kSendSsrcs[0], header.ssrc) |  58   EXPECT_EQ(kSendSsrcs[0], header.ssrc) | 
|  59       << "Packet should have configured SSRC to not be dropped early."; |  59       << "Packet should have configured SSRC to not be dropped early."; | 
|  60   EXPECT_EQ(payload_type, header.payloadType); |  60   EXPECT_EQ(payload_type, header.payloadType); | 
|  61   Start(); |  61   Start(); | 
| (...skipping 20 matching lines...) Expand all  Loading... | 
|  82                              0xED, |  82                              0xED, | 
|  83                              0x58, |  83                              0x58, | 
|  84                              0xCB, |  84                              0xCB, | 
|  85                              0xED, |  85                              0xED, | 
|  86                              0xDF}; |  86                              0xDF}; | 
|  87  |  87  | 
|  88   InjectIncorrectPacket(CodecType::kH264, 101, kPacket, sizeof(kPacket)); |  88   InjectIncorrectPacket(CodecType::kH264, 101, kPacket, sizeof(kPacket)); | 
|  89 } |  89 } | 
|  90  |  90  | 
|  91 }  // namespace webrtc |  91 }  // namespace webrtc | 
| OLD | NEW |