1# Copyright (C) 2021 - 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
14import("//build/ohos.gni")
15CALL_MANAGER_PATH = "../../.."
16
17ohos_executable("tel_call_manager_ui_test") {
18  sanitize = {
19    cfi = true
20    cfi_cross_dso = true
21    debug = false
22  }
23  branch_protector_ret = "pac_ret"
24  install_enable = true
25  sources = [
26    "bluetooth_call_test.cpp",
27    "call_manager_callback_test.cpp",
28    "common_event_subscriber_test.cpp",
29    "ui_client_test.cpp",
30  ]
31
32  include_dirs = [ "${CALL_MANAGER_PATH}/services/audio/include" ]
33
34  deps = [ "${CALL_MANAGER_PATH}/frameworks/native:tel_call_manager_api" ]
35
36  external_deps = [
37    "ability_base:want",
38    "ability_runtime:abilitykit_native",
39    "access_token:libaccesstoken_sdk",
40    "access_token:libnativetoken",
41    "access_token:libtoken_setproc",
42    "audio_framework:audio_client",
43    "audio_framework:audio_renderer",
44    "c_utils:utils",
45    "common_event_service:cesfwk_innerkits",
46    "core_service:libtel_common",
47    "core_service:tel_core_service_api",
48    "eventhandler:libeventhandler",
49    "graphic_surface:surface",
50    "hilog:libhilog",
51    "ipc:ipc_single",
52    "player_framework:system_sound_client",
53    "safwk:system_ability_fwk",
54    "samgr:samgr_proxy",
55  ]
56
57  defines = [
58    "TELEPHONY_LOG_TAG = \"CallManagerUiTest\"",
59    "LOG_DOMAIN = 0xD000F00",
60  ]
61
62  part_name = "call_manager"
63  subsystem_name = "telephony"
64}
65