| OLD | NEW |
| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 56 |
| 57 } // namespace | 57 } // namespace |
| 58 | 58 |
| 59 TEST(FlexfecReceiveStreamConfigTest, IsCompleteAndEnabled) { | 59 TEST(FlexfecReceiveStreamConfigTest, IsCompleteAndEnabled) { |
| 60 MockTransport rtcp_send_transport; | 60 MockTransport rtcp_send_transport; |
| 61 FlexfecReceiveStream::Config config(&rtcp_send_transport); | 61 FlexfecReceiveStream::Config config(&rtcp_send_transport); |
| 62 | 62 |
| 63 config.local_ssrc = 18374743; | 63 config.local_ssrc = 18374743; |
| 64 config.rtcp_mode = RtcpMode::kCompound; | 64 config.rtcp_mode = RtcpMode::kCompound; |
| 65 config.transport_cc = true; | 65 config.transport_cc = true; |
| 66 #if 0 |
| 66 config.rtp_header_extensions.emplace_back(TransportSequenceNumber::kUri, 7); | 67 config.rtp_header_extensions.emplace_back(TransportSequenceNumber::kUri, 7); |
| 68 #endif |
| 67 EXPECT_FALSE(config.IsCompleteAndEnabled()); | 69 EXPECT_FALSE(config.IsCompleteAndEnabled()); |
| 68 | 70 |
| 69 config.payload_type = 123; | 71 config.payload_type = 123; |
| 70 EXPECT_FALSE(config.IsCompleteAndEnabled()); | 72 EXPECT_FALSE(config.IsCompleteAndEnabled()); |
| 71 | 73 |
| 72 config.remote_ssrc = 238423838; | 74 config.remote_ssrc = 238423838; |
| 73 EXPECT_FALSE(config.IsCompleteAndEnabled()); | 75 EXPECT_FALSE(config.IsCompleteAndEnabled()); |
| 74 | 76 |
| 75 config.protected_media_ssrcs.push_back(138989393); | 77 config.protected_media_ssrcs.push_back(138989393); |
| 76 EXPECT_TRUE(config.IsCompleteAndEnabled()); | 78 EXPECT_TRUE(config.IsCompleteAndEnabled()); |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 EXPECT_CALL(recovered_packet_receiver, | 150 EXPECT_CALL(recovered_packet_receiver, |
| 149 OnRecoveredPacket(_, kRtpHeaderSize + kPayloadLength[1])); | 151 OnRecoveredPacket(_, kRtpHeaderSize + kPayloadLength[1])); |
| 150 | 152 |
| 151 receive_stream.OnRtpPacket(ParsePacket(kFlexfecPacket)); | 153 receive_stream.OnRtpPacket(ParsePacket(kFlexfecPacket)); |
| 152 | 154 |
| 153 // Tear-down | 155 // Tear-down |
| 154 EXPECT_CALL(process_thread_, DeRegisterModule(_)).Times(1); | 156 EXPECT_CALL(process_thread_, DeRegisterModule(_)).Times(1); |
| 155 } | 157 } |
| 156 | 158 |
| 157 } // namespace webrtc | 159 } // namespace webrtc |
| OLD | NEW |