1# Copyright (c) 2022-2023 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//build/config/features.gni") 15import("//build/test.gni") 16import("../../../device_status.gni") 17 18module_output_path = "${device_status_fuzz_output_path}" 19 20deps_ex = [ 21 "ability_runtime:app_manager", 22 "ability_base:base", 23 "ability_base:want", 24 "bundle_framework:appexecfwk_base", 25 "eventhandler:libeventhandler", 26 "ipc:ipc_single", 27 "hilog:libhilog", 28 "safwk:system_ability_fwk", 29 "samgr:samgr_proxy", 30 "c_utils:utils", 31 "image_framework:image_native", 32] 33 34ohos_fuzztest("DeviceStatusClientFuzzTest") { 35 module_out_path = module_output_path 36 fuzz_config_file = "../devicestatusclient_fuzzer" 37 38 include_dirs = [ 39 "./", 40 "${device_status_interfaces_path}/innerkits/include", 41 ] 42 43 cflags = [ 44 "-g", 45 "-O0", 46 "-Wno-unused-variable", 47 "-fno-omit-frame-pointer", 48 ] 49 sources = [ "./devicestatusclient_fuzzer.cpp" ] 50 51 configs = [ "${device_status_utils_path}:devicestatus_utils_config" ] 52 53 deps = [ 54 "${device_status_frameworks_path}/js/napi:stationary", 55 "${device_status_frameworks_path}/native/src:deviceagent", 56 "${device_status_interfaces_path}/innerkits:devicestatus_client", 57 ] 58 59 external_deps = deps_ex 60} 61 62group("fuzztest") { 63 testonly = true 64 deps = [] 65 deps += [ ":DeviceStatusClientFuzzTest" ] 66} 67