• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2025 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/ability/form_fwk/form_fwk.gni")
19
20##############################fuzztest##########################################
21ohos_fuzztest("FormShareTaskMgrFuzzTest") {
22  module_out_path = form_fuzz_test_path
23
24  fuzz_config_file = "${form_fwk_path}/test/fuzztest/formsharetaskmgr_fuzzer"
25
26  include_dirs = [
27    "${form_fwk_path}/interfaces/kits/native/include",
28    "${form_fwk_path}/services/include",
29  ]
30  cflags = [
31    "-g",
32    "-O0",
33    "-Wno-unused-variable",
34    "-fno-omit-frame-pointer",
35  ]
36  sources = [
37    "formsharetaskmgr_fuzzer.cpp",
38    "${form_fwk_path}/services/src/form_mgr/form_mgr_queue.cpp",
39    "${form_fwk_path}/services/src/feature/form_share/form_share_task_mgr.cpp",
40  ]
41
42  deps = [
43    "${form_fwk_path}:fms_target",
44    "${form_fwk_path}:fmskit_native",
45  ]
46
47  external_deps = [
48    "ability_base:base",
49    "ability_base:configuration",
50    "ability_base:want",
51    "ability_base:zuri",
52    "ability_runtime:ability_context_native",
53    "ability_runtime:ability_deps_wrapper",
54    "ability_runtime:ability_manager",
55    "ability_runtime:abilitykit_native",
56    "ability_runtime:app_manager",
57    "ability_runtime:appkit_native",
58    "ability_runtime:mission_info",
59    "ability_runtime:wantagent_innerkits",
60    "access_token:libaccesstoken_sdk",
61    "access_token:libtokenid_sdk",
62    "bundle_framework:appexecfwk_base",
63    "bundle_framework:appexecfwk_core",
64    "c_utils:utils",
65    "common_event_service:cesfwk_core",
66    "common_event_service:cesfwk_innerkits",
67    "data_share:datashare_common",
68    "data_share:datashare_consumer",
69    "eventhandler:libeventhandler",
70    "faultloggerd:libbacktrace_local",
71    "faultloggerd:libdfx_dumpcatcher",
72    "ffrt:libffrt",
73    "form_fwk:form_manager",
74    "hicollie:libhicollie",
75    "hilog:libhilog",
76    "hisysevent:libhisysevent",
77    "hitrace:hitrace_meter",
78    "init:libbegetutil",
79    "ipc:ipc_core",
80    "kv_store:distributeddata_inner",
81    "libxml2:libxml2",
82    "netmanager_base:net_conn_manager_if",
83    "os_account:os_account_innerkits",
84    "relational_store:native_rdb",
85    "resource_management:global_resmgr",
86    "safwk:system_ability_fwk",
87    "samgr:samgr_proxy",
88    "time_service:time_client",
89  ]
90}
91
92###############################################################################
93group("fuzztest") {
94  testonly = true
95  deps = []
96  deps += [
97    # deps file
98    ":FormShareTaskMgrFuzzTest",
99  ]
100}
101###############################################################################
102