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") 19 20##############################fuzztest########################################## 21ohos_fuzztest("BluetoothDialCallFuzzTest") { 22 module_output_path = "call_manager/BluetoothDialCallFuzzTest" 23 module_out_path = module_output_path 24 fuzz_config_file = 25 "//base/telephony/call_manager/test/fuzztest/bluetoothdialcall_fuzzer" 26 include_dirs = [ 27 "//base/telephony/call_manager/interfaces/innerkits", 28 "//base/telephony/call_manager/services/audio/include", 29 "//base/telephony/call_manager/services/audio/include/audio_state", 30 "//base/telephony/call_manager/services/video/include", 31 "//base/telephony/call_manager/services/bluetooth/include", 32 "//base/telephony/call_manager/services/call/include", 33 "//base/telephony/call_manager/services/call_manager_service/include", 34 "//base/telephony/call_manager/services/call_setting/include", 35 "//base/telephony/call_manager/services/telephony_interaction/include", 36 "//base/telephony/call_manager/services/call_report/include", 37 "//base/telephony/call_manager/services/video/include", 38 "//base/telephony/call_manager/services/call/call_state_observer/include", 39 "//base/telephony/call_manager/test/fuzztest/common_fuzzer", 40 "//base/telephony/call_manager/frameworks/native/include", 41 "//base/telephony/call_manager/frameworks/native/include", 42 "//base/telephony/core_service/interfaces/innerkits/include", 43 ] 44 45 configs = [ "//base/telephony/core_service/utils:telephony_log_config" ] 46 47 deps = [ "//base/telephony/call_manager:tel_call_manager" ] 48 49 external_deps = [ 50 "ability_runtime:ability_manager", 51 "access_token:libaccesstoken_sdk", 52 "access_token:libnativetoken", 53 "access_token:libtoken_setproc", 54 "c_utils:utils", 55 "common_event_service:cesfwk_innerkits", 56 "core_service:libtel_common", 57 "data_share:datashare_consumer", 58 "init:libbegetutil", 59 "ipc:ipc_core", 60 "samgr:samgr_proxy", 61 ] 62 defines += [ 63 "TELEPHONY_LOG_TAG = \"CallManagerFuzzTest\"", 64 "LOG_DOMAIN = 0xD000F00", 65 ] 66 cflags = [ 67 "-g", 68 "-O0", 69 "-Wno-unused-variable", 70 "-fno-omit-frame-pointer", 71 ] 72 sources = [ 73 "//base/telephony/call_manager/test/fuzztest/common_fuzzer/addcalltoken_fuzzer.cpp", 74 "bluetoothdialcall_fuzzer.cpp", 75 ] 76 if (is_standard_system) { 77 external_deps += [ "hiviewdfx_hilog_native:libhilog" ] 78 } else { 79 external_deps += [ "hilog:libhilog" ] 80 } 81} 82 83############################################################################### 84group("fuzztest") { 85 testonly = true 86 deps = [] 87 deps += [ 88 # deps file 89 ":BluetoothDialCallFuzzTest", 90 ] 91} 92############################################################################### 93