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