1# Copyright (c) 2022 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") 17 18##############################fuzztest########################################## 19module_output_path = "device_usage_statistics/deviceusagestatisticstest" 20 21config("module_private_config") { 22 include_dirs = [ 23 "//foundation/resourceschedule/device_usage_statistics/interfaces/innerkits/include", 24 "//foundation/resourceschedule/device_usage_statistics/services/common/include", 25 "//foundation/resourceschedule/device_usage_statistics/services/packageusage/include", 26 "//foundation/resourceschedule/device_usage_statistics/services/packagegroup/include", 27 "//foundation/resourceschedule/device_usage_statistics/interfaces/kits/bundlestats/napi/include", 28 ] 29} 30 31ohos_fuzztest("BundleActiveOnRemoteRequestFuzzTest") { 32 module_out_path = module_output_path 33 fuzz_config_file = "//foundation/resourceschedule/device_usage_statistics/test/fuzztest/bundleactiveonremoterequest_fuzzer" 34 configs = [ ":module_private_config" ] 35 cflags = [ 36 "-g", 37 "-O0", 38 "-Wno-unused-variable", 39 "-fno-omit-frame-pointer", 40 ] 41 sources = [ "bundleactiveonremoterequest_fuzzer.cpp" ] 42 43 public_deps = [ 44 "//foundation/resourceschedule/device_usage_statistics:usagestatservice", 45 ] 46 external_deps = [ 47 "ability_base:want", 48 "ability_runtime:app_manager", 49 "ability_runtime:wantagent_innerkits", 50 "access_token:libaccesstoken_sdk", 51 "bundle_framework:appexecfwk_base", 52 "bundle_framework:appexecfwk_core", 53 "c_utils:utils", 54 "common_event_service:cesfwk_innerkits", 55 "eventhandler:libeventhandler", 56 "hiviewdfx_hilog_native:libhilog", 57 "init:libbegetutil", 58 "ipc:ipc_core", 59 "power_manager:powermgr_client", 60 "relational_store:native_rdb", 61 "safwk:system_ability_fwk", 62 "samgr:samgr_proxy", 63 "time_service:time_client", 64 ] 65} 66 67# defines = [] 68# if (bgtaskmgr_enable) { 69# external_deps += [ "background_task_mgr:bgtaskmgr_innerkits" ] 70# defines += [ "BGTASKMGR_ENABLE" ] 71# } 72 73############################################################################### 74group("fuzztest") { 75 testonly = true 76 deps = [] 77 deps += [ 78 # deps file 79 ":BundleActiveOnRemoteRequestFuzzTest", 80 ] 81} 82############################################################################### 83