1// Copyright 2020 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_team: "trendy_team_automotive",
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20cc_defaults {
21    name: "evs_fuzz_default",
22
23    defaults: ["android.automotive.evs.manager_defaults"],
24
25    static_libs: [
26        "libevsmanager_static",
27        "libgmock",
28        "libgtest",
29    ],
30
31    shared_libs: [
32        "android.hardware.automotive.evs@1.0",
33        "android.hardware.automotive.evs@1.1",
34        "libbase",
35        "libcamera_metadata",
36        "libcutils",
37        "libhardware",
38        "libhidlbase",
39        "libprocessgroup",
40        "libstatslog",
41        "libsync",
42        "libui",
43        "libutils",
44    ],
45
46    cflags: [
47        "-Wno-unused-parameter",
48    ],
49
50    fuzz_config: {
51        cc: [
52            "aae-engprod-fuzz@google.com",
53            "changyeon@google.com",
54        ],
55        // Android > Automotive > Embedded > Test Bugs
56        componentid: 162915,
57        // aae-fuzz-bugs
58        hotlists: ["1986127"],
59        libfuzzer_options: [
60            "timeout=120",
61        ],
62    },
63}
64
65cc_fuzz {
66    name: "evs_halcamera_fuzzer",
67    srcs: [
68        "HalCameraFuzzer.cpp",
69    ],
70    defaults: ["evs_fuzz_default"],
71}
72
73cc_fuzz {
74    name: "evs_virtual_camera_fuzzer",
75    srcs: [
76        "VirtualCameraFuzzer.cpp",
77    ],
78    defaults: ["evs_fuzz_default"],
79    fuzz_config: {
80        libfuzzer_options: [
81            "max_len=4096",
82        ],
83    },
84}
85
86cc_fuzz {
87    name: "evs_haldisplay_fuzzer",
88    srcs: [
89        "HalDisplayFuzzer.cpp",
90    ],
91    defaults: ["evs_fuzz_default"],
92}
93