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("UpdateDisconnectMachineFuzzTest") { 22 module_output_path = "cellular_data/UpdateDisconnectMachineFuzzTest" 23 module_out_path = module_output_path 24 fuzz_config_file = "//base/telephony/cellular_data/test/fuzztest/updatedisconnectmachine_fuzzer" 25 include_dirs = [ 26 "//base/telephony/cellular_data/services/include", 27 "//base/telephony/cellular_data/services/include/apn_manager", 28 "//base/telephony/cellular_data/services/include/common", 29 "//base/telephony/cellular_data/services/include/state_machine", 30 "//base/telephony/cellular_data/services/include/utils", 31 "//base/telephony/cellular_data/test/fuzztest/common_fuzzer", 32 "//base/telephony/data_storage/pdp_profile/include", 33 ] 34 35 configs = [ "//base/telephony/core_service/utils:telephony_log_config" ] 36 37 deps = [ "//base/telephony/cellular_data:tel_cellular_data" ] 38 39 external_deps = [ 40 "ability_runtime:ability_manager", 41 "ability_runtime:data_ability_helper", 42 "access_token:libaccesstoken_sdk", 43 "access_token:libnativetoken", 44 "access_token:libtoken_setproc", 45 "bundle_framework:appexecfwk_core", 46 "c_utils:utils", 47 "cellular_data:tel_cellular_data_api", 48 "common_event_service:cesfwk_innerkits", 49 "core_service:libtel_common", 50 "core_service:tel_core_service_api", 51 "eventhandler:libeventhandler", 52 "init:libbegetutil", 53 "netmanager_base:net_conn_manager_if", 54 "netmanager_base:net_policy_manager_if", 55 "netmanager_base:net_stats_manager_if", 56 "relational_store:native_rdb", 57 ] 58 59 defines += [ 60 "TELEPHONY_LOG_TAG = \"CellularDataFuzzTest\"", 61 "LOG_DOMAIN = 0xD000F00", 62 ] 63 64 cflags = [ 65 "-g", 66 "-O0", 67 "-Wno-unused-variable", 68 "-fno-omit-frame-pointer", 69 ] 70 71 sources = [ 72 "//base/telephony/cellular_data/test/fuzztest/common_fuzzer/adddatatoken_fuzzer.cpp", 73 "//base/telephony/cellular_data/test/fuzztest/common_fuzzer/statemachine_fuzzer.cpp", 74 "updatedisconnectmachine_fuzzer.cpp", 75 ] 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 ":UpdateDisconnectMachineFuzzTest", 91 ] 92} 93############################################################################### 94