1# Copyright (c) 2024 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 14#####################hydra-fuzz################### 15import("//build/config/features.gni") 16import("//build/ohos.gni") 17import("//build/test.gni") 18import("//foundation/bundlemanager/app_domain_verify/app_domain_verify.gni") 19module_output_path = "app_domain_verify/app_domain_verify" 20 21##############################fuzztest########################################## 22ohos_fuzztest("AppDomainVerifyMgrServiceFuzzTest") { 23 module_out_path = module_output_path 24 fuzz_config_file = "." 25 include_dirs = [ 26 "${app_domain_verify_client_path}/include", 27 "${app_domain_verify_service_path}/include", 28 "${app_domain_verify_service_path}/include/agent/core", 29 "${app_domain_verify_service_path}/include/agent/zidl", 30 "${app_domain_verify_service_path}/include/agent/bms", 31 "${app_domain_verify_service_path}/include/manager/rdb", 32 "${app_domain_verify_service_path}/include/manager/core", 33 "${app_domain_verify_service_path}/include/manager/constant", 34 "${app_domain_verify_service_path}/include/manager/zidl", 35 "${app_domain_verify_service_path}/include/manager/permission", 36 "${app_domain_verify_service_path}/include/manager/deferred_link", 37 "${app_domain_verify_common_path}/include", 38 "${app_domain_verify_frameworks_common_path}/include", 39 "${app_domain_verify_frameworks_common_path}/include/utils", 40 "${app_domain_verify_frameworks_extension_path}/include", 41 "${app_domain_verify_frameworks_common_path}/include/dfx", 42 ] 43 cflags = [ 44 "-g", 45 "-O0", 46 "-Wno-unused-variable", 47 "-fno-omit-frame-pointer", 48 ] 49 sources = [ "app_domain_verify_mgr_service_fuzz_test.cpp" ] 50 defines = [ "API_EXPORT=__attribute__((visibility (\"default\")))" ] 51 deps = [ 52 "${app_domain_verify_client_path}:app_domain_verify_agent_client", 53 "${app_domain_verify_client_path}:app_domain_verify_mgr_client", 54 "${app_domain_verify_common_path}:app_domain_verify_common", 55 "${app_domain_verify_frameworks_common_path}:app_domain_verify_frameworks_common", 56 "${app_domain_verify_frameworks_extension_path}:app_domain_verify_extension_framework", 57 "${app_domain_verify_frameworks_verifier_path}:app_domain_verify_agent_verifier", 58 "${app_domain_verify_service_path}:app_domain_verify_agent_service", 59 "${app_domain_verify_service_path}:app_domain_verify_mgr_service", 60 ] 61 external_deps = [ 62 "ability_base:base", 63 "ability_base:want", 64 "ability_base:zuri", 65 "ability_runtime:ability_manager", 66 "bundle_framework:appexecfwk_core", 67 "c_utils:utils", 68 "curl:curl_shared", 69 "eventhandler:libeventhandler", 70 "ffrt:libffrt", 71 "hicollie:libhicollie", 72 "hilog:libhilog", 73 "hisysevent:libhisysevent", 74 "ipc:ipc_core", 75 "json:nlohmann_json_static", 76 "netmanager_base:net_conn_manager_if", 77 "netstack:http_client", 78 "os_account:os_account_innerkits", 79 "preferences:native_preferences", 80 "safwk:system_ability_fwk", 81 "samgr:samgr_proxy", 82 ] 83} 84