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/test.gni") 17import("//foundation/resourceschedule/background_task_mgr/bgtaskmgr.gni") 18module_output_path = "background_task_mgr/background_task_mgr" 19 20##############################fuzztest########################################## 21ohos_fuzztest("BgTaskSubscriberStubOnRemoteFuzzTest") { 22 module_out_path = module_output_path 23 fuzz_config_file = 24 "${bgtaskmgr_test_path}/fuzztest/bgtasksubscriberstubonremote_fuzzer" 25 26 include_dirs = [ 27 "../common", 28 "${target_gen_dir}", 29 ] 30 31 cflags = [ 32 "-g", 33 "-O0", 34 "-Wno-unused-variable", 35 "-fno-omit-frame-pointer", 36 "-Dprivate=public", 37 "-Dprotected=public", 38 ] 39 sources = [ 40 "../common/fuzztest_helper.cpp", 41 "bgtasksubscriberstubonremote_fuzzer.cpp", 42 ] 43 44 deps = [ 45 "${bgtaskmgr_interfaces_path}/innerkits:background_task_mgr_proxy", 46 "${bgtaskmgr_interfaces_path}/innerkits:background_task_mgr_stub", 47 "${bgtaskmgr_interfaces_path}/innerkits:bgtaskmgr_innerkits", 48 "${bgtaskmgr_services_path}:bgtaskmgr_service_static", 49 ] 50 51 external_deps = [ 52 "ability_base:base", 53 "ability_base:want", 54 "ability_base:zuri", 55 "ability_runtime:ability_manager", 56 "ability_runtime:app_manager", 57 "ability_runtime:wantagent_innerkits", 58 "access_token:libaccesstoken_sdk", 59 "access_token:libnativetoken_shared", 60 "access_token:libtoken_setproc", 61 "access_token:libtokenid_sdk", 62 "bundle_framework:appexecfwk_base", 63 "bundle_framework:appexecfwk_core", 64 "c_utils:utils", 65 "common_event_service:cesfwk_innerkits", 66 "eventhandler:libeventhandler", 67 "hilog:libhilog", 68 "hisysevent:libhisysevent", 69 "hitrace:libhitracechain", 70 "init:libbegetutil", 71 "ipc:ipc_single", 72 "resource_management:global_resmgr", 73 "safwk:system_ability_fwk", 74 "samgr:samgr_proxy", 75 ] 76} 77 78############################################################################### 79group("fuzztest") { 80 testonly = true 81 deps = [] 82 deps += [ 83 # deps file 84 ":BgTaskSubscriberStubOnRemoteFuzzTest", 85 ] 86} 87############################################################################### 88