xref: /aosp_15_r20/external/zlib/contrib/tests/fuzzers/BUILD.gn (revision 86ee64e75fa5f8bce2c8c356138035642429cd05)
1# Copyright 2017 The Chromium Authors
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5import("//testing/libfuzzer/fuzzer_test.gni")
6
7# root BUILD depends on this target. Needed for package discovery
8group("fuzzers") {
9}
10
11fuzzer_test("zlib_uncompress_fuzzer") {
12  sources = [ "uncompress_fuzzer.cc" ]
13  deps = [ "../../../:zlib" ]
14}
15
16fuzzer_test("zlib_inflate_fuzzer") {
17  sources = [ "inflate_fuzzer.cc" ]
18  deps = [ "../../../:zlib" ]
19}
20
21fuzzer_test("zlib_inflate_with_header_fuzzer") {
22  sources = [ "inflate_with_header_fuzzer.cc" ]
23  deps = [ "../../../:zlib" ]
24}
25
26fuzzer_test("zlib_streaming_inflate_fuzzer") {
27  sources = [ "streaming_inflate_fuzzer.cc" ]
28  deps = [ "../../../:zlib" ]
29  libfuzzer_options = [ "max_len=256000" ]
30}
31
32fuzzer_test("zlib_deflate_set_dictionary_fuzzer") {
33  sources = [ "deflate_set_dictionary_fuzzer.cc" ]
34  deps = [ "../../../:zlib" ]
35}
36
37fuzzer_test("zlib_deflate_fuzzer") {
38  sources = [ "deflate_fuzzer.cc" ]
39  deps = [ "../../../:zlib" ]
40}
41