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 14#####################hydra-fuzz################### 15import("//build/config/features.gni") 16import("//build/ohos.gni") 17import("//build/test.gni") 18CELLULAR_CALL_PATH = "../../.." 19 20##############################fuzztest########################################## 21ohos_fuzztest("SatelliteCallbackFuzzTest") { 22 module_output_path = "cellular_call/cellular_call" 23 module_out_path = module_output_path 24 fuzz_config_file = 25 "${CELLULAR_CALL_PATH}/test/fuzztest/satellitecallback_fuzzer" 26 27 include_dirs = [ 28 "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite", 29 "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims", 30 "${CELLULAR_CALL_PATH}/test/fuzztest/common_fuzzer", 31 "${CELLULAR_CALL_PATH}/services/common/include", 32 "${CELLULAR_CALL_PATH}/services/manager/include", 33 "${CELLULAR_CALL_PATH}/services/control/include", 34 "${CELLULAR_CALL_PATH}/services/connection/include", 35 ] 36 37 deps = [ 38 "${CELLULAR_CALL_PATH}:tel_cellular_call", 39 "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite:tel_satellite_call_api", 40 ] 41 42 external_deps = [ 43 "ability_base:want", 44 "access_token:libaccesstoken_sdk", 45 "access_token:libnativetoken", 46 "access_token:libtoken_setproc", 47 "bundle_framework:appexecfwk_core", 48 "c_utils:utils", 49 "call_manager:tel_call_manager_api", 50 "common_event_service:cesfwk_innerkits", 51 "core_service:libtel_common", 52 "core_service:tel_core_service_api", 53 "drivers_interface_ril:hril_innerkits", 54 "eventhandler:libeventhandler", 55 "graphic_2d:surface", 56 "hilog:libhilog", 57 "init:libbegetutil", 58 "ipc:ipc_single", 59 "safwk:system_ability_fwk", 60 "samgr:samgr_proxy", 61 "telephony_data:tel_telephony_data", 62 ] 63 64 defines = [ 65 "TELEPHONY_LOG_TAG = \"SatelliteCallbackFuzzTest\"", 66 "LOG_DOMAIN = 0xD000F00", 67 ] 68 69 cflags = [ 70 "-g", 71 "-O0", 72 "-Wno-unused-variable", 73 "-fno-omit-frame-pointer", 74 ] 75 sources = [ 76 "${CELLULAR_CALL_PATH}/test/fuzztest/common_fuzzer/addcellularcalltoken_fuzzer.cpp", 77 "satellitecallback_fuzzer.cpp", 78 ] 79} 80 81############################################################################### 82group("fuzztest") { 83 testonly = true 84 deps = [] 85 deps += [ 86 # deps file 87 ":SatelliteCallbackFuzzTest", 88 ] 89} 90############################################################################### 91