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

Unified Diff: webrtc/test/fuzzers/audio_decoder_fuzzer.h

Issue 1607173003: Fuzzer tests for AudioDecoder's DecodeRedundant and IncomingPacket (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Remove FuzzAudioDecoderRedundant from h-file Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/test/fuzzers/BUILD.gn ('k') | webrtc/test/fuzzers/audio_decoder_fuzzer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/test/fuzzers/audio_decoder_fuzzer.h
diff --git a/webrtc/test/fuzzers/audio_decoder_fuzzer.h b/webrtc/test/fuzzers/audio_decoder_fuzzer.h
index cdd857430080dc105bbbdfd959da43856324b91e..29179eb9f98b01a29bfd6bbec1ff243e5ec48acf 100644
--- a/webrtc/test/fuzzers/audio_decoder_fuzzer.h
+++ b/webrtc/test/fuzzers/audio_decoder_fuzzer.h
@@ -19,13 +19,22 @@ namespace webrtc {
class AudioDecoder;
-void FuzzAudioDecoder(const uint8_t* data,
+enum class DecoderFunctionType {
+ kNormalDecode,
+ kRedundantDecode,
+};
+
+void FuzzAudioDecoder(DecoderFunctionType decode_type,
+ const uint8_t* data,
size_t size,
AudioDecoder* decoder,
int sample_rate_hz,
size_t max_decoded_bytes,
int16_t* decoded);
+void FuzzAudioDecoderIncomingPacket(const uint8_t* data,
+ size_t size,
+ AudioDecoder* decoder);
} // namespace webrtc
#endif // WEBRTC_TEST_FUZZERS_AUDIO_DECODER_FUZZER_H_
« no previous file with comments | « webrtc/test/fuzzers/BUILD.gn ('k') | webrtc/test/fuzzers/audio_decoder_fuzzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698