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") 17module_output_path = "resource_schedule_service/soc_perf" 18 19##############################fuzztest########################################## 20config("module_private_config") { 21 visibility = [ ":*" ] 22 23 include_dirs = [ 24 "//foundation/resourceschedule/resource_schedule_service/soc_perf/include/server", 25 "//foundation/resourceschedule/resource_schedule_service/soc_perf/include/core", 26 "//foundation/resourceschedule/resource_schedule_service/soc_perf/include", 27 ] 28} 29 30ohos_fuzztest("LoadConfigXmlFileFuzzTest") { 31 module_out_path = module_output_path 32 fuzz_config_file = "//foundation/resourceschedule/resource_schedule_service/soc_perf/test/fuzztest/loadconfigxmlfile_fuzzer" 33 34 configs = [ ":module_private_config" ] 35 include_dirs = [] 36 cflags = [ 37 "-g", 38 "-O0", 39 "-Wno-unused-variable", 40 "-fno-omit-frame-pointer", 41 ] 42 sources = [ "loadconfigxmlfile_fuzzer.cpp" ] 43 44 deps = [ 45 "//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog", 46 "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core", 47 "//foundation/resourceschedule/resource_schedule_service/soc_perf:socperf_server", 48 "//foundation/systemabilitymgr/safwk/interfaces/innerkits/safwk:system_ability_fwk", 49 "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy", 50 "//third_party/libxml2:xml2", 51 ] 52 external_deps = [ 53 "c_utils:utils", 54 "eventhandler:libeventhandler", 55 ] 56} 57 58############################################################################### 59group("fuzztest") { 60 testonly = true 61 deps = [] 62 deps += [ 63 # deps file 64 ":LoadConfigXmlFileFuzzTest", 65 ] 66} 67############################################################################### 68