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

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: Fold normal and redundant fuzzer functions Created 4 years, 11 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..98ffe5e56381a83fd32209c23ed896f0a4d176bf 100644
--- a/webrtc/test/fuzzers/audio_decoder_fuzzer.h
+++ b/webrtc/test/fuzzers/audio_decoder_fuzzer.h
@@ -19,13 +19,29 @@ 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 FuzzAudioDecoderRedundant(const uint8_t* data,
pbos-webrtc 2016/01/27 15:20:03 Remove this one?
hlundin-webrtc 2016/02/08 14:08:45 D'oh! Done.
+ 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