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

Unified Diff: webrtc/test/fuzzers/audio_decoder_opus_redundant_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: 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_opus_redundant_fuzzer.cc
diff --git a/webrtc/test/fuzzers/audio_decoder_opus_fuzzer.cc b/webrtc/test/fuzzers/audio_decoder_opus_redundant_fuzzer.cc
similarity index 82%
copy from webrtc/test/fuzzers/audio_decoder_opus_fuzzer.cc
copy to webrtc/test/fuzzers/audio_decoder_opus_redundant_fuzzer.cc
index 3d70ec507dfe5606120f6eb88d400e727d369ac9..47f139c2ce5c47f57f92a60e7cb224b1f41f5486 100644
--- a/webrtc/test/fuzzers/audio_decoder_opus_fuzzer.cc
+++ b/webrtc/test/fuzzers/audio_decoder_opus_redundant_fuzzer.cc
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
+ * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
@@ -18,6 +18,7 @@ void FuzzOneInput(const uint8_t* data, size_t size) {
const int kSampleRateHz = 48000;
const size_t kAllocatedOuputSizeSamples = kSampleRateHz / 10; // 100 ms.
int16_t output[kAllocatedOuputSizeSamples];
- FuzzAudioDecoder(data, size, &dec, kSampleRateHz, sizeof(output), output);
+ FuzzAudioDecoderRedundant(data, size, &dec, kSampleRateHz, sizeof(output),
+ output);
}
} // namespace webrtc

Powered by Google App Engine
This is Rietveld 408576698