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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 kMediaSeqNum[0], kMediaSeqNum[1], kFlexfecPktMask[0], kFlexfecPktMask[1], | 131 kMediaSeqNum[0], kMediaSeqNum[1], kFlexfecPktMask[0], kFlexfecPktMask[1], |
132 // FEC payload. | 132 // FEC payload. |
133 kPayloadBits, kPayloadBits, kPayloadBits, kPayloadBits}; | 133 kPayloadBits, kPayloadBits, kPayloadBits, kPayloadBits}; |
134 // clang-format on | 134 // clang-format on |
135 | 135 |
136 testing::StrictMock<MockRecoveredPacketReceiver> recovered_packet_receiver; | 136 testing::StrictMock<MockRecoveredPacketReceiver> recovered_packet_receiver; |
137 FlexfecReceiveStreamImpl receive_stream(config_, &recovered_packet_receiver, | 137 FlexfecReceiveStreamImpl receive_stream(config_, &recovered_packet_receiver, |
138 &rtt_stats_, &process_thread_); | 138 &rtt_stats_, &process_thread_); |
139 | 139 |
140 // Do not call back before being started. | 140 // Do not call back before being started. |
141 receive_stream.AddAndProcessReceivedPacket(ParsePacket(kFlexfecPacket)); | 141 receive_stream.OnRtpPacket(ParsePacket(kFlexfecPacket)); |
142 | 142 |
143 // Call back after being started. | 143 // Call back after being started. |
144 receive_stream.Start(); | 144 receive_stream.Start(); |
145 EXPECT_CALL( | 145 EXPECT_CALL( |
146 recovered_packet_receiver, | 146 recovered_packet_receiver, |
147 OnRecoveredPacket(::testing::_, kRtpHeaderSize + kPayloadLength[1])); | 147 OnRecoveredPacket(::testing::_, kRtpHeaderSize + kPayloadLength[1])); |
148 receive_stream.AddAndProcessReceivedPacket(ParsePacket(kFlexfecPacket)); | 148 receive_stream.OnRtpPacket(ParsePacket(kFlexfecPacket)); |
149 } | 149 } |
150 | 150 |
151 } // namespace webrtc | 151 } // namespace webrtc |
OLD | NEW |