• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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("AppDomainVerifyAgentServiceFuzzTest") {
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_agent_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  ]
60  external_deps = [
61    "ability_base:base",
62    "ability_base:want",
63    "ability_base:zuri",
64    "ability_runtime:ability_manager",
65    "bundle_framework:appexecfwk_core",
66    "c_utils:utils",
67    "curl:curl_shared",
68    "eventhandler:libeventhandler",
69    "ffrt:libffrt",
70    "hicollie:libhicollie",
71    "hilog:libhilog",
72    "hisysevent:libhisysevent",
73    "ipc:ipc_core",
74    "json:nlohmann_json_static",
75    "netmanager_base:net_conn_manager_if",
76    "netstack:http_client",
77    "os_account:os_account_innerkits",
78    "preferences:native_preferences",
79    "safwk:system_ability_fwk",
80    "samgr:samgr_proxy",
81  ]
82}
83