Chromium Code Reviews| Index: webrtc/test/fuzzers/rtp_packet_fuzzer.cc |
| diff --git a/webrtc/test/fuzzers/audio_decoder_isac_incoming_packet_fuzzer.cc b/webrtc/test/fuzzers/rtp_packet_fuzzer.cc |
| similarity index 60% |
| copy from webrtc/test/fuzzers/audio_decoder_isac_incoming_packet_fuzzer.cc |
| copy to webrtc/test/fuzzers/rtp_packet_fuzzer.cc |
| index 7a239f03610ec27ffc8ba29c8dcb1b08cc3b3ada..a4dc1076489a4b527c24fbaf98cd0a567b7bc4fc 100644 |
| --- a/webrtc/test/fuzzers/audio_decoder_isac_incoming_packet_fuzzer.cc |
| +++ b/webrtc/test/fuzzers/rtp_packet_fuzzer.cc |
| @@ -7,13 +7,24 @@ |
| * in the file PATENTS. All contributing project authors may |
| * be found in the AUTHORS file in the root of the source tree. |
| */ |
| - |
| -#include "webrtc/modules/audio_coding/codecs/isac/main/include/audio_decoder_isac.h" |
| -#include "webrtc/test/fuzzers/audio_decoder_fuzzer.h" |
| +#include "webrtc/base/checks.h" |
|
pbos-webrtc
2016/04/20 09:41:24
No checks used in this file, shouldn't be needed
danilchap
2016/04/20 09:57:14
Done.
|
| +#include "webrtc/modules/rtp_rtcp/source/rtp_packet_received.h" |
| namespace webrtc { |
| + |
| void FuzzOneInput(const uint8_t* data, size_t size) { |
| - AudioDecoderIsac dec(nullptr); |
| - FuzzAudioDecoderIncomingPacket(data, size, &dec); |
| + RtpPacketReceived packet; |
| + |
| + packet.Parse(data, size); |
| + |
| + // Call packet accessors because they have extra checks. |
| + packet.Marker(); |
| + packet.PayloadType(); |
| + packet.SequenceNumber(); |
| + packet.Timestamp(); |
| + packet.Ssrc(); |
| + packet.Csrcs(); |
| } |
| + |
| } // namespace webrtc |
| + |