Corbin Souffrant | 84f5c0f | 2020-06-26 00:42:43 -0700 | [diff] [blame] | 1 | // |
| 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 | |
| 17 | cc_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 Hong | f856a98 | 2020-10-30 14:51:17 -0700 | [diff] [blame] | 29 | target: { |
| 30 | darwin: { |
| 31 | enabled: false, |
| 32 | } |
| 33 | } |
Corbin Souffrant | 84f5c0f | 2020-06-26 00:42:43 -0700 | [diff] [blame] | 34 | } |
| 35 | |
| 36 | cc_fuzz { |
| 37 | name: "binder_binderFuzz", |
| 38 | defaults: ["binder_fuzz_defaults"], |
| 39 | srcs: ["BinderFuzz.cpp"], |
| 40 | } |
| 41 | |
| 42 | cc_fuzz { |
| 43 | name: "binder_bpBinderFuzz", |
| 44 | defaults: ["binder_fuzz_defaults"], |
| 45 | host_supported: false, |
| 46 | srcs: ["BpBinderFuzz.cpp"], |
| 47 | } |
| 48 | |
| 49 | cc_fuzz { |
| 50 | name: "binder_persistableBundleFuzz", |
| 51 | defaults: ["binder_fuzz_defaults"], |
| 52 | srcs: ["PersistableBundleFuzz.cpp"], |
| 53 | } |
| 54 | |
| 55 | cc_fuzz { |
| 56 | name: "binder_stabilityFuzz", |
| 57 | defaults: ["binder_fuzz_defaults"], |
| 58 | srcs: ["StabilityFuzz.cpp"], |
| 59 | } |
| 60 | |
| 61 | cc_fuzz { |
| 62 | name: "binder_statusFuzz", |
| 63 | defaults: ["binder_fuzz_defaults"], |
| 64 | srcs: ["StatusFuzz.cpp"], |
| 65 | } |
| 66 | |
| 67 | cc_fuzz { |
| 68 | name: "binder_textOutputFuzz", |
| 69 | defaults: ["binder_fuzz_defaults"], |
| 70 | srcs: ["TextOutputFuzz.cpp"], |
| 71 | } |
Michael Ensing | 4d90d80 | 2020-07-19 16:32:43 -0700 | [diff] [blame] | 72 | |
| 73 | cc_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 | |
| 82 | cc_fuzz { |
| 83 | name: "binder_memoryDealerFuzz", |
| 84 | defaults: ["binder_fuzz_defaults"], |
| 85 | srcs: ["MemoryDealerFuzz.cpp"], |
| 86 | } |