• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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###################
15import("//build/config/features.gni")
16import("//build/ohos.gni")
17import("//build/test.gni")
18
19##############################fuzztest##########################################
20CALL_MANAGER_PATH = "../../.."
21ohos_fuzztest("TelephonyInteractionFuzzTest") {
22  module_output_path = "call_manager/call_manager"
23  module_out_path = module_output_path
24  fuzz_config_file =
25      "${CALL_MANAGER_PATH}/test/fuzztest/telephonyinteraction_fuzzer"
26  include_dirs = [
27    "${CALL_MANAGER_PATH}/frameworks/js/napi/include/",
28    "${CALL_MANAGER_PATH}/frameworks/native/include/",
29    "${CALL_MANAGER_PATH}/test/fuzztest/common_fuzzer",
30    "${CALL_MANAGER_PATH}/services/audio/include",
31    "${CALL_MANAGER_PATH}/services/audio/include/audio_state",
32    "${CALL_MANAGER_PATH}/services/video/include",
33    "${CALL_MANAGER_PATH}/services/bluetooth/include",
34    "${CALL_MANAGER_PATH}/services/call/include",
35    "${CALL_MANAGER_PATH}/services/call_manager_service/include",
36    "${CALL_MANAGER_PATH}/services/call_setting/include",
37    "${CALL_MANAGER_PATH}/services/telephony_interaction/include",
38    "${CALL_MANAGER_PATH}/services/call_report/include",
39    "${CALL_MANAGER_PATH}/services/video/include",
40    "${CALL_MANAGER_PATH}/services/call/call_state_observer/include",
41  ]
42
43  deps = [
44    "${CALL_MANAGER_PATH}:tel_call_manager",
45    "${CALL_MANAGER_PATH}/frameworks/native:tel_call_manager_api",
46  ]
47
48  external_deps = [
49    "ability_runtime:ability_manager",
50    "access_token:libaccesstoken_sdk",
51    "access_token:libnativetoken",
52    "access_token:libtoken_setproc",
53    "c_utils:utils",
54    "common_event_service:cesfwk_innerkits",
55    "core_service:tel_core_service_api",
56    "data_share:datashare_consumer",
57    "graphic_surface:surface",
58    "hilog:libhilog",
59    "init:libbegetutil",
60    "ipc:ipc_single",
61    "samgr:samgr_proxy",
62  ]
63  defines = [
64    "TELEPHONY_LOG_TAG = \"CallManagerFuzzTest\"",
65    "LOG_DOMAIN = 0xD000F00",
66  ]
67  cflags = [
68    "-g",
69    "-O0",
70    "-Wno-unused-variable",
71    "-fno-omit-frame-pointer",
72  ]
73  sources = [
74    "${CALL_MANAGER_PATH}/test/fuzztest/common_fuzzer/addcalltoken_fuzzer.cpp",
75    "telephonyinteraction_fuzzer.cpp",
76  ]
77}
78
79###############################################################################
80group("fuzztest") {
81  testonly = true
82  deps = []
83  deps += [
84    # deps file
85    ":TelephonyInteractionFuzzTest",
86  ]
87}
88###############################################################################
89