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