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

Unified Diff: webrtc/test/fuzzers/audio_decoder_isac_fuzzer.cc

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
Index: webrtc/test/fuzzers/audio_decoder_isac_fuzzer.cc
diff --git a/webrtc/test/fuzzers/audio_decoder_isac_fuzzer.cc b/webrtc/test/fuzzers/audio_decoder_isac_fuzzer.cc
index 984cfda398ce20367cd43a6e00d32120758a7595..ba6e7f0cb8d0b7ab7a05e90f1c39e0dafc60f924 100644
--- a/webrtc/test/fuzzers/audio_decoder_isac_fuzzer.cc
+++ b/webrtc/test/fuzzers/audio_decoder_isac_fuzzer.cc
@@ -17,6 +17,7 @@ void FuzzOneInput(const uint8_t* data, size_t size) {
const int sample_rate_hz = size % 2 == 0 ? 16000 : 32000; // 16 or 32 kHz.
static const size_t kAllocatedOuputSizeSamples = 32000 / 10; // 100 ms.
int16_t output[kAllocatedOuputSizeSamples];
- FuzzAudioDecoder(data, size, &dec, sample_rate_hz, sizeof(output), output);
+ FuzzAudioDecoder(DecoderFunctionType::kNormalDecode, data, size, &dec,
+ sample_rate_hz, sizeof(output), output);
}
} // namespace webrtc

Powered by Google App Engine
This is Rietveld 408576698