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 14import("//build/config/features.gni") 15import("//build/test.gni") 16import("../../../thermalmgr.gni") 17 18module_output_path = "thermal_manager/thermal_manager" 19 20##############################fuzztest########################################## 21ohos_fuzztest("ThermalTempCallbackFuzzTest") { 22 module_out_path = module_output_path 23 fuzz_config_file = 24 "${thermal_manager_path}/test/fuzztest/thermaltempcallback_fuzzer" 25 26 include_dirs = [ 27 "./", 28 "${thermal_inner_api}/native/include", 29 "${utils_path}/native/include", 30 "../thermal_utils", 31 ] 32 33 configs = [ "${utils_path}:coverage_flags" ] 34 35 cflags = [ 36 "-g", 37 "-O0", 38 "-Wno-unused-variable", 39 "-fno-omit-frame-pointer", 40 ] 41 sources = [ 42 "../thermal_utils/thermal_fuzzer_test.cpp", 43 "./thermaltempcallback_fuzzer_test.cpp", 44 ] 45 deps = [ 46 "${thermal_manager_path}/services:thermalservice", 47 "${thermal_service_zidl}:thermalmgr_proxy", 48 "${thermal_service_zidl}:thermalmgr_stub", 49 "${utils_path}:thermal_utils", 50 ] 51 52 external_deps = [ 53 "c_utils:utils", 54 "drivers_interface_thermal:libthermal_proxy_1.1", 55 "hdf_core:libhdi", 56 "hdf_core:libpub_utils", 57 "hilog:libhilog", 58 "ipc:ipc_core", 59 "libxml2:libxml2", 60 "safwk:system_ability_fwk", 61 "samgr:samgr_proxy", 62 ] 63} 64