# Copyright (c) 2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. #####################hydra-fuzz################### import("//build/config/features.gni") import("//build/test.gni") ##############################fuzztest########################################## module_output_path = "device_usage_statistics/deviceusagestatisticstest" config("module_private_config") { include_dirs = [ "//foundation/resourceschedule/device_usage_statistics/interfaces/innerkits/include", "//foundation/resourceschedule/device_usage_statistics/services/common/include", "//foundation/resourceschedule/device_usage_statistics/services/packageusage/include", "//foundation/resourceschedule/device_usage_statistics/services/packagegroup/include", "//foundation/resourceschedule/device_usage_statistics/interfaces/kits/bundlestats/napi/include", ] } ohos_fuzztest("BundleActiveOnRemoteRequestFuzzTest") { module_out_path = module_output_path fuzz_config_file = "//foundation/resourceschedule/device_usage_statistics/test/fuzztest/bundleactiveonremoterequest_fuzzer" configs = [ ":module_private_config" ] cflags = [ "-g", "-O0", "-Wno-unused-variable", "-fno-omit-frame-pointer", ] sources = [ "bundleactiveonremoterequest_fuzzer.cpp" ] public_deps = [ "//foundation/resourceschedule/device_usage_statistics:usagestatservice", ] external_deps = [ "ability_base:want", "ability_runtime:app_manager", "ability_runtime:wantagent_innerkits", "access_token:libaccesstoken_sdk", "bundle_framework:appexecfwk_base", "bundle_framework:appexecfwk_core", "c_utils:utils", "common_event_service:cesfwk_innerkits", "eventhandler:libeventhandler", "hiviewdfx_hilog_native:libhilog", "init:libbegetutil", "ipc:ipc_core", "power_manager:powermgr_client", "relational_store:native_rdb", "safwk:system_ability_fwk", "samgr:samgr_proxy", "time_service:time_client", ] } # defines = [] # if (bgtaskmgr_enable) { # external_deps += [ "background_task_mgr:bgtaskmgr_innerkits" ] # defines += [ "BGTASKMGR_ENABLE" ] # } ############################################################################### group("fuzztest") { testonly = true deps = [] deps += [ # deps file ":BundleActiveOnRemoteRequestFuzzTest", ] } ###############################################################################