diff options
author | Henrik Lundin <henrik.lundin@webrtc.org> | 2015-12-08 11:27:27 +0100 |
---|---|---|
committer | Henrik Lundin <henrik.lundin@webrtc.org> | 2015-12-08 10:27:34 +0000 |
commit | fe32a76d6001d17c34ab597026fd1e16e5c3b9ea (patch) | |
tree | e729af7cd14a97a190265dde2070e372d66a1e53 /webrtc/test/fuzzers/BUILD.gn | |
parent | ffea13c42cc3ebc118b6261be688f88974cc7ab5 (diff) | |
download | webrtc-fe32a76d6001d17c34ab597026fd1e16e5c3b9ea.tar.gz |
Create fuzzer tests for audio decoders
This change adds fuzzer tests for iLBC, iSAC fix and float, and
Opus. The fuzzer function takes a random input vector and splits it
into a number of payloads. The lengths of the payloads is also
determined by the random vector. The payloads are decoded with the
decoders.
BUG=webrtc:5306
R=kjellander@webrtc.org, pbos@webrtc.org
Review URL: https://codereview.webrtc.org/1499093002 .
Cr-Commit-Position: refs/heads/master@{#10932}
Diffstat (limited to 'webrtc/test/fuzzers/BUILD.gn')
-rw-r--r-- | webrtc/test/fuzzers/BUILD.gn | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/webrtc/test/fuzzers/BUILD.gn b/webrtc/test/fuzzers/BUILD.gn index 4cf6a5ce91..07eea2795e 100644 --- a/webrtc/test/fuzzers/BUILD.gn +++ b/webrtc/test/fuzzers/BUILD.gn @@ -10,6 +10,7 @@ import("//build/config/features.gni") import("//testing/test.gni") static_library("webrtc_fuzzer_main") { + public_configs = [ "../..:common_inherited_config" ] sources = [ "webrtc_fuzzer_main.cc", ] @@ -50,3 +51,53 @@ test("vp8_qp_parser_fuzzer") { configs -= [ "//build/config/clang:find_bad_constructs" ] } } + +source_set("audio_decoder_fuzzer") { + sources = [ + "audio_decoder_fuzzer.cc", + "audio_decoder_fuzzer.h", + ] + deps = [ + ":webrtc_fuzzer_main", + ] +} + +test("audio_decoder_ilbc_fuzzer") { + sources = [ + "audio_decoder_ilbc_fuzzer.cc", + ] + deps = [ + ":audio_decoder_fuzzer", + "../../modules/audio_coding:ilbc", + ] +} + +test("audio_decoder_isac_fuzzer") { + sources = [ + "audio_decoder_isac_fuzzer.cc", + ] + deps = [ + ":audio_decoder_fuzzer", + "../../modules/audio_coding:isac", + ] +} + +test("audio_decoder_isacfix_fuzzer") { + sources = [ + "audio_decoder_isacfix_fuzzer.cc", + ] + deps = [ + ":audio_decoder_fuzzer", + "../../modules/audio_coding:isac_fix", + ] +} + +test("audio_decoder_opus_fuzzer") { + sources = [ + "audio_decoder_opus_fuzzer.cc", + ] + deps = [ + ":audio_decoder_fuzzer", + "../../modules/audio_coding:webrtc_opus", + ] +} |