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