xref: /aosp_15_r20/hardware/interfaces/automotive/can/1.0/default/tests/fuzzer/Android.bp (revision 4d7e907c777eeecc4c5bd7cf640a754fac206ff7)
1/*
2 * Copyright (C) 2022 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at:
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 */
17
18package {
19    default_team: "trendy_team_connectivity_telemetry",
20    // See: http://go/android-license-faq
21    // A large-scale-change added 'default_applicable_licenses' to import
22    // all of the 'license_kinds' from "hardware_interfaces_license"
23    // to get the below license kinds:
24    //   SPDX-license-identifier-Apache-2.0
25    default_applicable_licenses: ["hardware_interfaces_license"],
26}
27
28cc_fuzz {
29    name: "automotiveCanV1.0_fuzzer",
30    vendor: true,
31    defaults: ["android.hardware.automotive.can@defaults"],
32    srcs: [
33        "AutomotiveCanV1_0Fuzzer.cpp",
34        ":automotiveCanV1.0_sources",
35    ],
36    header_libs: [
37        "automotiveCanV1.0_headers",
38        "android.hardware.automotive.can@hidl-utils-lib",
39    ],
40    shared_libs: [
41        "[email protected]",
42        "libhidlbase",
43    ],
44    static_libs: [
45        "android.hardware.automotive.can@libnetdevice",
46        "libnl++",
47    ],
48    fuzz_config: {
49        cc: [
50            "[email protected]",
51            "[email protected]",
52        ],
53        componentid: 533764,
54        hotlists: [
55            "4593311",
56        ],
57        description: "The fuzzer targets the APIs of [email protected]",
58        vector: "local_no_privileges_required",
59        service_privilege: "privileged",
60        users: "multi_user",
61        fuzzed_code_usage: "shipped",
62    },
63}
64