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