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

Unified Diff: webrtc/test/fuzzers/audio_decoder_isac_incoming_packet_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_isac_incoming_packet_fuzzer.cc
diff --git a/webrtc/modules/audio_coding/codecs/isac/main/source/audio_decoder_isac.cc b/webrtc/test/fuzzers/audio_decoder_isac_incoming_packet_fuzzer.cc
similarity index 64%
copy from webrtc/modules/audio_coding/codecs/isac/main/source/audio_decoder_isac.cc
copy to webrtc/test/fuzzers/audio_decoder_isac_incoming_packet_fuzzer.cc
index 8e0603e99ecd2ecdc06d52e8452cddf33f55caf6..7a239f03610ec27ffc8ba29c8dcb1b08cc3b3ada 100644
--- a/webrtc/modules/audio_coding/codecs/isac/main/source/audio_decoder_isac.cc
+++ b/webrtc/test/fuzzers/audio_decoder_isac_incoming_packet_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
@@ -9,12 +9,11 @@
*/
#include "webrtc/modules/audio_coding/codecs/isac/main/include/audio_decoder_isac.h"
-
-#include "webrtc/modules/audio_coding/codecs/isac/audio_decoder_isac_t_impl.h"
+#include "webrtc/test/fuzzers/audio_decoder_fuzzer.h"
namespace webrtc {
-
-// Explicit instantiation:
-template class AudioDecoderIsacT<IsacFloat>;
-
+void FuzzOneInput(const uint8_t* data, size_t size) {
+ AudioDecoderIsac dec(nullptr);
+ FuzzAudioDecoderIncomingPacket(data, size, &dec);
+}
} // namespace webrtc

Powered by Google App Engine
This is Rietveld 408576698