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("PdpContextListUpdatedFuzzTest") { 22 module_output_path = "ril_adapter/PdpContextListUpdatedFuzzTest" 23 module_out_path = module_output_path 24 fuzz_config_file = 25 "//base/telephony/ril_adapter/test/fuzztest/pdpcontextlistupdated_fuzzer" 26 include_dirs = [ "//base/telephony/ril_adapter/services/hril/include" ] 27 28 configs = [ "//base/telephony/ril_adapter/utils:utils_config" ] 29 30 deps = [ 31 "//base/telephony/ril_adapter/interfaces/innerkits:hril_innerkits", 32 "//base/telephony/ril_adapter/services/hril:hril", 33 "//drivers/hdf_core/adapter/uhdf2/host:libhdf_host", 34 "//drivers/hdf_core/adapter/uhdf2/ipc:libhdf_ipc_adapter", 35 "//drivers/hdf_core/adapter/uhdf2/utils:libhdf_utils", 36 ] 37 38 external_deps = [ 39 "drivers_interface_power:libpower_proxy_1.0", 40 "drivers_interface_ril:ril_idl_headers", 41 "ipc:ipc_core", 42 "samgr:samgr_proxy", 43 ] 44 defines += [ 45 "TELEPHONY_LOG_TAG = \"RilAdapterFuzzTest\"", 46 "LOG_DOMAIN = 0xD000F00", 47 ] 48 cflags = [ 49 "-g", 50 "-O0", 51 "-Wno-unused-variable", 52 "-fno-omit-frame-pointer", 53 ] 54 sources = [ "pdpcontextlistupdated_fuzzer.cpp" ] 55 if (is_standard_system) { 56 external_deps += [ "hiviewdfx_hilog_native:libhilog" ] 57 } else { 58 external_deps += [ "hilog:libhilog" ] 59 } 60} 61 62############################################################################### 63group("fuzztest") { 64 testonly = true 65 deps = [] 66 deps += [ 67 # deps file 68 ":PdpContextListUpdatedFuzzTest", 69 ] 70} 71############################################################################### 72