xref: /aosp_15_r20/tools/security/fuzzing/orphans/hashlink/Android.bp (revision d9ecfb0f4d734c9ce41cde8ac4d585b094fd4222)
1// Copyright 2021, The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package {
16    default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19rust_fuzz {
20    name: "hashlink_linkedhashmap_fuzzer",
21    srcs: ["hashlink_linkedhashmap_fuzzer.rs"],
22    rustlibs: [
23        "libarbitrary",
24        "libhashlink",
25    ],
26    fuzz_config: {
27        fuzz_on_haiku_device: true,
28        fuzz_on_haiku_host: true,
29    },
30}
31
32rust_fuzz {
33    name: "hashlink_linkedhashset_fuzzer",
34    srcs: ["hashlink_linkedhashset_fuzzer.rs"],
35    rustlibs: [
36        "libarbitrary",
37        "libhashlink",
38    ],
39    fuzz_config: {
40        fuzz_on_haiku_device: true,
41        fuzz_on_haiku_host: true,
42    },
43}
44
45rust_fuzz {
46    name: "hashlink_lrucache_fuzzer",
47    srcs: ["hashlink_lrucache_fuzzer.rs"],
48    rustlibs: [
49        "libarbitrary",
50        "libhashlink",
51    ],
52    fuzz_config: {
53        fuzz_on_haiku_device: true,
54        fuzz_on_haiku_host: true,
55    },
56}
57