Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: webrtc/video/packet_injection_tests.cc

Issue 1333483002: Wire up PacketTime to ReceiveStreams. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/video/full_stack.cc ('k') | webrtc/video/rampup_tests.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
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();
62 EXPECT_EQ(PacketReceiver::DELIVERY_PACKET_ERROR, 62 EXPECT_EQ(PacketReceiver::DELIVERY_PACKET_ERROR,
63 receiver_call_->Receiver()->DeliverPacket(MediaType::VIDEO, packet, 63 receiver_call_->Receiver()->DeliverPacket(MediaType::VIDEO, packet,
64 length)); 64 length, PacketTime()));
65 Stop(); 65 Stop();
66 66
67 DestroyStreams(); 67 DestroyStreams();
68 } 68 }
69 69
70 TEST_F(PacketInjectionTest, StapAPacketWithTruncatedNalUnits) { 70 TEST_F(PacketInjectionTest, StapAPacketWithTruncatedNalUnits) {
71 const uint8_t kPacket[] = {0x80, 71 const uint8_t kPacket[] = {0x80,
72 0xE5, 72 0xE5,
73 0xE6, 73 0xE6,
74 0x0, 74 0x0,
75 0x0, 75 0x0,
76 0xED, 76 0xED,
77 0x23, 77 0x23,
78 0x4, 78 0x4,
79 0x00, 79 0x00,
80 0xC0, 80 0xC0,
81 0xFF, 81 0xFF,
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
OLDNEW
« no previous file with comments | « webrtc/video/full_stack.cc ('k') | webrtc/video/rampup_tests.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698