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 |