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

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

Issue 2686273002: Rename flexfec AddAndProcessReceivedPacket --> OnRtpPacket. (Closed)
Patch Set: Update flexfec fuzzer. Created 3 years, 10 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « webrtc/call/flexfec_receive_stream_impl.cc ('k') | webrtc/modules/rtp_rtcp/include/flexfec_receiver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698