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