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 14import("//base/powermgr/thermal_manager/thermalmgr.gni") 15import("//build/config/features.gni") 16import("//build/test.gni") 17 18module_output_path = "${thermalmgr_native_part_name}/thermal_native" 19 20deps_ex = [ 21 "ability_base:base", 22 "ability_base:want", 23 "bundle_framework:appexecfwk_base", 24 "eventhandler:libeventhandler", 25 "ipc:ipc_core", 26 "hiviewdfx_hilog_native:libhilog", 27 "safwk:system_ability_fwk", 28 "samgr:samgr_proxy", 29 "appspawn:appspawn_socket_client", 30 "c_utils:utils", 31] 32 33##############################fuzztest########################################## 34ohos_fuzztest("ThermalFuzzTest") { 35 module_out_path = module_output_path 36 fuzz_config_file = 37 "//base/powermgr/thermal_manager/test/fuzztest/thermal_fuzzer" 38 39 include_dirs = [ 40 "./", 41 "${thermal_innerkits}/native/include", 42 "${utils_path}/native/include", 43 ] 44 45 cflags = [ 46 "-g", 47 "-O0", 48 "-Wno-unused-variable", 49 "-fno-omit-frame-pointer", 50 ] 51 sources = [ "./thermal_fuzzer_test.cpp" ] 52 deps = [ 53 "${thermal_innerkits}:thermalsrv_client", 54 "${thermal_service_zidl}:thermalmgr_proxy", 55 "${thermal_service_zidl}:thermalmgr_stub", 56 ] 57 external_deps = deps_ex 58} 59 60############################################################################### 61group("fuzztest") { 62 testonly = true 63 deps = [] 64 65 deps += [ 66 # deps file 67 ":ThermalFuzzTest", 68 ] 69} 70############################################################################### 71