1# Copyright (c) 2023 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("TelephonyStateRegistryFuzzTest") { 22 module_output_path = "state_registry/state_registry" 23 module_out_path = module_output_path 24 fuzz_config_file = "$SUBSYSTEM_DIR/state_registry/test/fuzztest/telephonystateregistry_fuzzer" 25 26 include_dirs = [ 27 "$SUBSYSTEM_DIR/state_registry/interfaces/innerkits/observer", 28 "$SUBSYSTEM_DIR/state_registry/services/include", 29 "$SUBSYSTEM_DIR/state_registry/test/fuzztest/common_fuzzer", 30 ] 31 32 deps = [ 33 "$SUBSYSTEM_DIR/state_registry:tel_state_registry", 34 "$SUBSYSTEM_DIR/state_registry/frameworks/native/observer:tel_state_registry_api", 35 ] 36 37 external_deps = [ 38 "ability_base:want", 39 "access_token:libaccesstoken_sdk", 40 "access_token:libnativetoken", 41 "access_token:libtoken_setproc", 42 "c_utils:utils", 43 "call_manager:tel_call_manager_api", 44 "common_event_service:cesfwk_innerkits", 45 "core_service:libtel_common", 46 "core_service:tel_core_service_api", 47 "hilog:libhilog", 48 "init:libbegetutil", 49 "ipc:ipc_single", 50 "safwk:system_ability_fwk", 51 "samgr:samgr_proxy", 52 ] 53 54 cflags = [ 55 "-g", 56 "-O0", 57 "-Wno-unused-variable", 58 "-fno-omit-frame-pointer", 59 ] 60 sources = [ 61 "$SUBSYSTEM_DIR/state_registry/test/fuzztest/common_fuzzer/addstateregistrytoken_fuzzer.cpp", 62 "telephonystateregistry_fuzzer.cpp", 63 ] 64} 65 66############################################################################### 67group("fuzztest") { 68 testonly = true 69 deps = [] 70 deps += [ 71 # deps file 72 ":TelephonyStateRegistryFuzzTest", 73 ] 74} 75############################################################################### 76