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("CallNotificationFuzzTest") { 22 module_output_path = "call_manager/CallNotificationFuzzTest" 23 module_out_path = module_output_path 24 fuzz_config_file = 25 "//base/telephony/call_manager/test/fuzztest/callnotification_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 "power_manager:powermgr_client", 61 "samgr:samgr_proxy", 62 ] 63 defines += [ 64 "TELEPHONY_LOG_TAG = \"CallManagerFuzzTest\"", 65 "LOG_DOMAIN = 0xD000F00", 66 ] 67 cflags = [ 68 "-g", 69 "-O0", 70 "-Wno-unused-variable", 71 "-fno-omit-frame-pointer", 72 ] 73 sources = [ 74 "//base/telephony/call_manager/test/fuzztest/common_fuzzer/addcalltoken_fuzzer.cpp", 75 "callnotification_fuzzer.cpp", 76 ] 77 if (is_standard_system) { 78 external_deps += [ "hiviewdfx_hilog_native:libhilog" ] 79 } else { 80 external_deps += [ "hilog:libhilog" ] 81 } 82} 83 84############################################################################### 85group("fuzztest") { 86 testonly = true 87 deps = [] 88 deps += [ 89 # deps file 90 ":CallNotificationFuzzTest", 91 ] 92} 93############################################################################### 94