• 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("SetPausePictureFuzzTest") {
22  module_output_path = "call_manager/SetPausePictureFuzzTest"
23  module_out_path = module_output_path
24  fuzz_config_file =
25      "//base/telephony/call_manager/test/fuzztest/setpausepicture_fuzzer"
26  include_dirs = [
27    "//base/telephony/call_manager/interfaces/innerkits",
28    "//base/telephony/call_manager/services/audio/include",
29    "//base/telephony/call_manager/services/audio/include/audio_state",
30    "//base/telephony/call_manager/services/video/include",
31    "//base/telephony/call_manager/services/bluetooth/include",
32    "//base/telephony/call_manager/services/call/include",
33    "//base/telephony/call_manager/services/call_manager_service/include",
34    "//base/telephony/call_manager/services/call_setting/include",
35    "//base/telephony/call_manager/services/telephony_interaction/include",
36    "//base/telephony/call_manager/services/call_report/include",
37    "//base/telephony/call_manager/services/video/include",
38    "//base/telephony/call_manager/services/call/call_state_observer/include",
39    "//base/telephony/call_manager/test/fuzztest/common_fuzzer",
40    "//base/telephony/call_manager/frameworks/native/include",
41    "//base/telephony/call_manager/frameworks/native/include",
42    "//base/telephony/core_service/interfaces/innerkits/include",
43  ]
44
45  configs = [ "//base/telephony/core_service/utils:telephony_log_config" ]
46
47  deps = [ "//base/telephony/call_manager:tel_call_manager" ]
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:libtel_common",
56    "data_share:datashare_consumer",
57    "init:libbegetutil",
58    "ipc:ipc_core",
59    "samgr:samgr_proxy",
60  ]
61  defines += [
62    "TELEPHONY_LOG_TAG = \"CallManagerFuzzTest\"",
63    "LOG_DOMAIN = 0xD000F00",
64  ]
65  cflags = [
66    "-g",
67    "-O0",
68    "-Wno-unused-variable",
69    "-fno-omit-frame-pointer",
70  ]
71  sources = [
72    "//base/telephony/call_manager/test/fuzztest/common_fuzzer/addcalltoken_fuzzer.cpp",
73    "setpausepicture_fuzzer.cpp",
74  ]
75  if (is_standard_system) {
76    external_deps += [ "hiviewdfx_hilog_native:libhilog" ]
77  } else {
78    external_deps += [ "hilog:libhilog" ]
79  }
80}
81
82###############################################################################
83group("fuzztest") {
84  testonly = true
85  deps = []
86  deps += [
87    # deps file
88    ":SetPausePictureFuzzTest",
89  ]
90}
91###############################################################################
92