• 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")
18import("//build/test.gni")
19
20##############################fuzztest##########################################
21ohos_fuzztest("SetAudioDeviceFuzzTest") {
22  module_output_path = "call_manager/SetAudioDeviceFuzzTest"
23  module_out_path = module_output_path
24  fuzz_config_file =
25      "//base/telephony/call_manager/test/fuzztest/setaudiodevice_fuzzer"
26
27  include_dirs = [
28    "//base/telephony/call_manager/interfaces/innerkits",
29    "//base/telephony/call_manager/services/audio/include",
30    "//base/telephony/call_manager/services/audio/include/audio_state",
31    "//base/telephony/call_manager/services/video/include",
32    "//base/telephony/call_manager/services/bluetooth/include",
33    "//base/telephony/call_manager/services/call/include",
34    "//base/telephony/call_manager/services/call_manager_service/include",
35    "//base/telephony/call_manager/services/call_setting/include",
36    "//base/telephony/call_manager/services/telephony_interaction/include",
37    "//base/telephony/call_manager/services/call_report/include",
38    "//base/telephony/call_manager/services/video/include",
39    "//base/telephony/call_manager/services/call/call_state_observer/include",
40    "//base/telephony/call_manager/test/fuzztest/common_fuzzer",
41    "//base/telephony/call_manager/frameworks/native/include",
42    "//base/telephony/call_manager/frameworks/native/include",
43    "//base/telephony/core_service/interfaces/innerkits/include",
44  ]
45
46  configs = [ "//base/telephony/core_service/utils:telephony_log_config" ]
47
48  deps = [ "//base/telephony/call_manager:tel_call_manager" ]
49
50  external_deps = [
51    "ability_runtime:ability_manager",
52    "access_token:libaccesstoken_sdk",
53    "access_token:libnativetoken",
54    "access_token:libtoken_setproc",
55    "c_utils:utils",
56    "common_event_service:cesfwk_innerkits",
57    "core_service:libtel_common",
58    "data_share:datashare_consumer",
59    "init:libbegetutil",
60    "ipc:ipc_core",
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    "//base/telephony/call_manager/test/fuzztest/common_fuzzer/addcalltoken_fuzzer.cpp",
75    "setaudiodevice_fuzzer.cpp",
76  ]
77  if (is_standard_system) {
78    external_deps += [ "hiviewdfx_hilog_native:libhilog" ]
79  } else {
80    external_deps += [ "hilog:libhilog" ]
81  }
82}
83
84###############################################################################
85group("fuzztest") {
86  testonly = true
87  deps = []
88  deps += [
89    # deps file
90    ":SetAudioDeviceFuzzTest",
91  ]
92}
93###############################################################################
94