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

Side by Side Diff: webrtc/call/flexfec_receive_stream_unittest.cc

Issue 2826263004: Move responsibility for RTP header extensions on video receive. (Closed)
Patch Set: Created 3 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2016 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 } // namespace 51 } // namespace
52 52
53 TEST(FlexfecReceiveStreamConfigTest, IsCompleteAndEnabled) { 53 TEST(FlexfecReceiveStreamConfigTest, IsCompleteAndEnabled) {
54 MockTransport rtcp_send_transport; 54 MockTransport rtcp_send_transport;
55 FlexfecReceiveStream::Config config(&rtcp_send_transport); 55 FlexfecReceiveStream::Config config(&rtcp_send_transport);
56 56
57 config.local_ssrc = 18374743; 57 config.local_ssrc = 18374743;
58 config.rtcp_mode = RtcpMode::kCompound; 58 config.rtcp_mode = RtcpMode::kCompound;
59 config.transport_cc = true; 59 config.transport_cc = true;
60 #if 0
60 config.rtp_header_extensions.emplace_back(TransportSequenceNumber::kUri, 7); 61 config.rtp_header_extensions.emplace_back(TransportSequenceNumber::kUri, 7);
62 #endif
61 EXPECT_FALSE(config.IsCompleteAndEnabled()); 63 EXPECT_FALSE(config.IsCompleteAndEnabled());
62 64
63 config.payload_type = 123; 65 config.payload_type = 123;
64 EXPECT_FALSE(config.IsCompleteAndEnabled()); 66 EXPECT_FALSE(config.IsCompleteAndEnabled());
65 67
66 config.remote_ssrc = 238423838; 68 config.remote_ssrc = 238423838;
67 EXPECT_FALSE(config.IsCompleteAndEnabled()); 69 EXPECT_FALSE(config.IsCompleteAndEnabled());
68 70
69 config.protected_media_ssrcs.push_back(138989393); 71 config.protected_media_ssrcs.push_back(138989393);
70 EXPECT_TRUE(config.IsCompleteAndEnabled()); 72 EXPECT_TRUE(config.IsCompleteAndEnabled());
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 144
143 // Call back after being started. 145 // Call back after being started.
144 receive_stream.Start(); 146 receive_stream.Start();
145 EXPECT_CALL( 147 EXPECT_CALL(
146 recovered_packet_receiver, 148 recovered_packet_receiver,
147 OnRecoveredPacket(::testing::_, kRtpHeaderSize + kPayloadLength[1])); 149 OnRecoveredPacket(::testing::_, kRtpHeaderSize + kPayloadLength[1]));
148 receive_stream.OnRtpPacket(ParsePacket(kFlexfecPacket)); 150 receive_stream.OnRtpPacket(ParsePacket(kFlexfecPacket));
149 } 151 }
150 152
151 } // namespace webrtc 153 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698