• 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("//base/telephony/core_service/telephony.gni")
16import("//build/config/features.gni")
17import("//build/ohos.gni")
18SOURCE_DIR = "//base/telephony/cellular_call"
19
20import("//build/test.gni")
21
22##############################fuzztest##########################################
23ohos_fuzztest("SeparateConferenceFuzzTest") {
24  module_output_path = "cellular_call/SeparateConferenceFuzzTest"
25  module_out_path = module_output_path
26  fuzz_config_file =
27      "//base/telephony/cellular_call/test/fuzztest/separateconference_fuzzer"
28
29  include_dirs = [
30    "//base/telephony/cellular_call/services/common/include",
31    "//base/telephony/cellular_call/services/manager/include",
32    "//base/telephony/cellular_call/test/fuzztest/common_fuzzer",
33    "//base/telephony/call_manager/interfaces/innerkits",
34    "//base/telephony/call_manager/services/telephony_interaction/include",
35    "//base/telephony/cellular_call/test/fuzztest/common_fuzzer",
36    "$SOURCE_DIR/interfaces/innerkits/ims",
37    "$SOURCE_DIR/services/common/include",
38    "$SOURCE_DIR/services/manager/include",
39    "$SOURCE_DIR/services/control/include",
40    "$SOURCE_DIR/services/connection/include",
41    "//third_party/libphonenumber/cpp/src",
42    "//third_party/libphonenumber/cpp/src/phonenumbers",
43  ]
44
45  configs = [ "//base/telephony/core_service/utils:telephony_log_config" ]
46
47  deps = [ "//base/telephony/cellular_call:tel_cellular_call" ]
48
49  external_deps = [
50    "ability_base:want",
51    "access_token:libaccesstoken_sdk",
52    "access_token:libnativetoken",
53    "access_token:libtoken_setproc",
54    "bundle_framework:appexecfwk_core",
55    "c_utils:utils",
56    "call_manager:tel_call_manager_api",
57    "common_event_service:cesfwk_innerkits",
58    "core_service:libtel_common",
59    "core_service:tel_core_service_api",
60    "drivers_interface_ril:hril_innerkits",
61    "eventhandler:libeventhandler",
62    "hisysevent_native:libhisysevent",
63    "hitrace_native:hitrace_meter",
64    "init:libbegetutil",
65    "ipc:ipc_core",
66    "resource_management:global_resmgr",
67    "safwk:system_ability_fwk",
68    "samgr:samgr_proxy",
69  ]
70  defines += [
71    "TELEPHONY_LOG_TAG = \"CellularCallFuzzTest\"",
72    "LOG_DOMAIN = 0xD000F00",
73  ]
74  if (is_standard_system) {
75    external_deps += [ "hiviewdfx_hilog_native:libhilog" ]
76  } else {
77    external_deps += [ "hilog:libhilog" ]
78  }
79
80  cflags = [
81    "-g",
82    "-O0",
83    "-Wno-unused-variable",
84    "-fno-omit-frame-pointer",
85  ]
86  sources = [
87    "//base/telephony/cellular_call/test/fuzztest/common_fuzzer/addcellularcalltoken_fuzzer.cpp",
88    "separateconference_fuzzer.cpp",
89  ]
90}
91
92###############################################################################
93group("fuzztest") {
94  testonly = true
95  deps = []
96  deps += [
97    # deps file
98    ":SeparateConferenceFuzzTest",
99  ]
100}
101###############################################################################
102