blob: 5531296edb0aecfd90912a248de1eab1f2627a63 [file] [log] [blame]
Corbin Souffrant84f5c0f2020-06-26 00:42:43 -07001//
2// Copyright (C) 2020 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
17cc_defaults {
18 name: "binder_fuzz_defaults",
19 host_supported: true,
20 cflags: [
21 "-Wall",
22 "-Werror",
23 ],
24 shared_libs: [
25 "libbinder",
26 "libutils",
27 "libbase",
28 ],
Yifan Hongf856a982020-10-30 14:51:17 -070029 target: {
30 darwin: {
31 enabled: false,
32 }
33 }
Corbin Souffrant84f5c0f2020-06-26 00:42:43 -070034}
35
36cc_fuzz {
37 name: "binder_binderFuzz",
38 defaults: ["binder_fuzz_defaults"],
39 srcs: ["BinderFuzz.cpp"],
40}
41
42cc_fuzz {
43 name: "binder_bpBinderFuzz",
44 defaults: ["binder_fuzz_defaults"],
45 host_supported: false,
46 srcs: ["BpBinderFuzz.cpp"],
47}
48
49cc_fuzz {
50 name: "binder_persistableBundleFuzz",
51 defaults: ["binder_fuzz_defaults"],
52 srcs: ["PersistableBundleFuzz.cpp"],
53}
54
55cc_fuzz {
56 name: "binder_stabilityFuzz",
57 defaults: ["binder_fuzz_defaults"],
58 srcs: ["StabilityFuzz.cpp"],
59}
60
61cc_fuzz {
62 name: "binder_statusFuzz",
63 defaults: ["binder_fuzz_defaults"],
64 srcs: ["StatusFuzz.cpp"],
65}
66
67cc_fuzz {
68 name: "binder_textOutputFuzz",
69 defaults: ["binder_fuzz_defaults"],
70 srcs: ["TextOutputFuzz.cpp"],
71}
Michael Ensing4d90d802020-07-19 16:32:43 -070072
73cc_fuzz {
74 name: "binder_bufferedTextOutputFuzz",
75 include_dirs: [
76 "frameworks/native/libs/binder",
77 ],
78 defaults: ["binder_fuzz_defaults"],
79 srcs: ["BufferedTextOutputFuzz.cpp"],
80}
81
82cc_fuzz {
83 name: "binder_memoryDealerFuzz",
84 defaults: ["binder_fuzz_defaults"],
85 srcs: ["MemoryDealerFuzz.cpp"],
86}