• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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("//build/config/features.gni")
16import("//build/ohos.gni")
17CELLULAR_CALL_PATH = "../../.."
18
19import("//build/test.gni")
20
21##############################fuzztest##########################################
22ohos_fuzztest("GetCallRestrictionFuzzTest") {
23  module_output_path = "cellular_call/cellular_call"
24  module_out_path = module_output_path
25  fuzz_config_file =
26      "${CELLULAR_CALL_PATH}/test/fuzztest/getcallrestriction_fuzzer"
27
28  include_dirs = [
29    "${CELLULAR_CALL_PATH}/test/fuzztest/common_fuzzer",
30    "${CELLULAR_CALL_PATH}/services/common/include",
31    "${CELLULAR_CALL_PATH}/services/manager/include",
32    "${CELLULAR_CALL_PATH}/services/control/include",
33    "${CELLULAR_CALL_PATH}/services/connection/include",
34    "${CELLULAR_CALL_PATH}/services/utils/include",
35  ]
36
37  deps = [
38    "${CELLULAR_CALL_PATH}:tel_cellular_call",
39    "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims:tel_ims_call_api",
40    "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite:tel_satellite_call_api",
41  ]
42
43  external_deps = [
44    "ability_base:want",
45    "access_token:libaccesstoken_sdk",
46    "access_token:libnativetoken_shared",
47    "access_token:libtoken_setproc",
48    "bundle_framework:appexecfwk_core",
49    "c_utils:utils",
50    "call_manager:tel_call_manager_api",
51    "common_event_service:cesfwk_innerkits",
52    "core_service:libtel_common",
53    "core_service:tel_core_service_api",
54    "eventhandler:libeventhandler",
55    "ffrt:libffrt",
56    "graphic_surface:surface",
57    "hilog:libhilog",
58    "hisysevent:libhisysevent",
59    "hitrace:hitrace_meter",
60    "init:libbegetutil",
61    "ipc:ipc_single",
62    "resource_management:global_resmgr",
63    "safwk:system_ability_fwk",
64    "samgr:samgr_proxy",
65    "telephony_data:tel_telephony_data",
66    "libphonenumber:geocoding",
67  ]
68  defines = [
69    "TELEPHONY_LOG_TAG = \"CellularCallFuzzTest\"",
70    "LOG_DOMAIN = 0xD000F00",
71  ]
72
73  cflags = [
74    "-g",
75    "-O0",
76    "-Wno-unused-variable",
77    "-fno-omit-frame-pointer",
78  ]
79  sources = [
80    "${CELLULAR_CALL_PATH}/test/fuzztest/common_fuzzer/addcellularcalltoken_fuzzer.cpp",
81    "getcallrestriction_fuzzer.cpp",
82  ]
83}
84
85###############################################################################
86group("fuzztest") {
87  testonly = true
88  deps = []
89  deps += [
90    # deps file
91    ":GetCallRestrictionFuzzTest",
92  ]
93}
94###############################################################################
95