| 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 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 const uint8_t payload[kPayloadLen] = {0}; | 59 const uint8_t payload[kPayloadLen] = {0}; |
| 60 WebRtcRTPHeader rtp_info; | 60 WebRtcRTPHeader rtp_info; |
| 61 memset(&rtp_info, 0, sizeof(rtp_info)); | 61 memset(&rtp_info, 0, sizeof(rtp_info)); |
| 62 rtp_info.frameType = frame_type; | 62 rtp_info.frameType = frame_type; |
| 63 rtp_info.header.timestamp = timestamp; | 63 rtp_info.header.timestamp = timestamp; |
| 64 rtp_info.header.sequenceNumber = seq_no; | 64 rtp_info.header.sequenceNumber = seq_no; |
| 65 rtp_info.header.markerBit = marker_bit; | 65 rtp_info.header.markerBit = marker_bit; |
| 66 rtp_info.header.payloadType = video_codec_.plType; | 66 rtp_info.header.payloadType = video_codec_.plType; |
| 67 rtp_info.type.Video.codec = kRtpVideoVp8; | 67 rtp_info.type.Video.codec = kRtpVideoVp8; |
| 68 rtp_info.type.Video.codecHeader.VP8.InitRTPVideoHeaderVP8(); | 68 rtp_info.type.Video.codecHeader.VP8.InitRTPVideoHeaderVP8(); |
| 69 rtp_info.type.Video.is_first_packet_in_frame = first; | 69 rtp_info.type.Video.isFirstPacket = first; |
| 70 | 70 |
| 71 ASSERT_EQ(VCM_OK, vcm_->IncomingPacket(payload, kPayloadLen, rtp_info)); | 71 ASSERT_EQ(VCM_OK, vcm_->IncomingPacket(payload, kPayloadLen, rtp_info)); |
| 72 } | 72 } |
| 73 | 73 |
| 74 std::unique_ptr<VideoCodingModule> vcm_; | 74 std::unique_ptr<VideoCodingModule> vcm_; |
| 75 VideoCodec video_codec_; | 75 VideoCodec video_codec_; |
| 76 MockVCMFrameTypeCallback frame_type_callback_; | 76 MockVCMFrameTypeCallback frame_type_callback_; |
| 77 MockPacketRequestCallback request_callback_; | 77 MockPacketRequestCallback request_callback_; |
| 78 NiceMock<MockVideoDecoder> decoder_; | 78 NiceMock<MockVideoDecoder> decoder_; |
| 79 NiceMock<MockVideoDecoder> decoderCopy_; | 79 NiceMock<MockVideoDecoder> decoderCopy_; |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 | 219 |
| 220 clock_->AdvanceTimeMilliseconds(23); | 220 clock_->AdvanceTimeMilliseconds(23); |
| 221 InsertPacket(3000, 4, false, false, kVideoFrameDelta); | 221 InsertPacket(3000, 4, false, false, kVideoFrameDelta); |
| 222 | 222 |
| 223 InsertPacket(9000, 9, true, false, kVideoFrameDelta); | 223 InsertPacket(9000, 9, true, false, kVideoFrameDelta); |
| 224 InsertPacket(9000, 10, false, false, kVideoFrameDelta); | 224 InsertPacket(9000, 10, false, false, kVideoFrameDelta); |
| 225 InsertPacket(9000, 11, false, true, kVideoFrameDelta); | 225 InsertPacket(9000, 11, false, true, kVideoFrameDelta); |
| 226 EXPECT_EQ(VCM_OK, vcm_->Decode(33)); // Decode timestamp 9000 complete. | 226 EXPECT_EQ(VCM_OK, vcm_->Decode(33)); // Decode timestamp 9000 complete. |
| 227 } | 227 } |
| 228 } // namespace webrtc | 228 } // namespace webrtc |
| OLD | NEW |