OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2017 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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 size_t feedbacks_num = 1 + (FuzzInput<uint8_t>(data, size) & 0x3f); | 238 size_t feedbacks_num = 1 + (FuzzInput<uint8_t>(data, size) & 0x3f); |
239 TransportFeedbackGenerator feedback_generator(data, size); | 239 TransportFeedbackGenerator feedback_generator(data, size); |
240 | 240 |
241 for (size_t i = 0; i < feedbacks_num; i++) { | 241 for (size_t i = 0; i < feedbacks_num; i++) { |
242 std::vector<PacketFeedback> feedback_vector; | 242 std::vector<PacketFeedback> feedback_vector; |
243 bool may_continue = | 243 bool may_continue = |
244 feedback_generator.GetNextTransportFeedbackVector(&feedback_vector); | 244 feedback_generator.GetNextTransportFeedbackVector(&feedback_vector); |
245 if (!may_continue) { | 245 if (!may_continue) { |
246 return false; | 246 return false; |
247 } | 247 } |
248 tracker->OnPacketFeedbacks(feedback_vector); | 248 tracker->OnNewTransportFeedbacks(feedback_vector); |
249 tracker->Validate(); | 249 tracker->Validate(); |
250 } | 250 } |
251 | 251 |
252 return true; | 252 return true; |
253 } | 253 } |
254 | 254 |
255 } // namespace | 255 } // namespace |
256 | 256 |
257 void FuzzOneInput(const uint8_t* data, size_t size) { | 257 void FuzzOneInput(const uint8_t* data, size_t size) { |
258 std::unique_ptr<TransportFeedbackPacketLossTracker> tracker; | 258 std::unique_ptr<TransportFeedbackPacketLossTracker> tracker; |
(...skipping 11 matching lines...) Expand all Loading... |
270 while (may_continue) { | 270 while (may_continue) { |
271 may_continue = FuzzPacketSendBlock(tracker, &data, &size, &time_ms); | 271 may_continue = FuzzPacketSendBlock(tracker, &data, &size, &time_ms); |
272 if (!may_continue) { | 272 if (!may_continue) { |
273 return; | 273 return; |
274 } | 274 } |
275 may_continue = FuzzTransportFeedbackBlock(tracker, &data, &size); | 275 may_continue = FuzzTransportFeedbackBlock(tracker, &data, &size); |
276 } | 276 } |
277 } | 277 } |
278 | 278 |
279 } // namespace webrtc | 279 } // namespace webrtc |
OLD | NEW |