• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 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
14#####################hydra-fuzz###################
15import("//build/config/features.gni")
16import("//build/test.gni")
17import("//foundation/resourceschedule/background_task_mgr/bgtaskmgr.gni")
18module_output_path = "background_task_mgr/background_task_mgr"
19
20##############################fuzztest##########################################
21ohos_fuzztest("BgTaskSubscriberFuzzTest") {
22  module_out_path = module_output_path
23  fuzz_config_file = "${bgtaskmgr_test_path}/fuzztest/bgtasksubscriber_fuzzer"
24
25  include_dirs = [ "../common" ]
26  cflags = [
27    "-g",
28    "-O0",
29    "-Wno-unused-variable",
30    "-fno-omit-frame-pointer",
31  ]
32  sources = [
33    "../common/fuzztest_helper.cpp",
34    "bgtaskSubscriber_fuzzer.cpp",
35  ]
36
37  deps = [ "${bgtaskmgr_services_path}:bgtaskmgr_service_static" ]
38
39  external_deps = [
40    "ability_base:base",
41    "ability_base:want",
42    "ability_base:zuri",
43    "ability_runtime:ability_manager",
44    "ability_runtime:app_manager",
45    "ability_runtime:wantagent_innerkits",
46    "access_token:libaccesstoken_sdk",
47    "access_token:libnativetoken",
48    "access_token:libtoken_setproc",
49    "access_token:libtokenid_sdk",
50    "bundle_framework:appexecfwk_base",
51    "bundle_framework:appexecfwk_core",
52    "c_utils:utils",
53    "common_event_service:cesfwk_innerkits",
54    "eventhandler:libeventhandler",
55    "hilog:libhilog",
56    "hisysevent:libhisysevent",
57    "init:libbegetutil",
58    "ipc:ipc_single",
59    "resource_management:global_resmgr",
60    "safwk:system_ability_fwk",
61    "samgr:samgr_proxy",
62  ]
63}
64
65###############################################################################
66group("fuzztest") {
67  testonly = true
68  deps = []
69  deps += [
70    # deps file
71    ":BgTaskSubscriberFuzzTest",
72  ]
73}
74###############################################################################
75