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