# Copyright (C) 2021 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//base/telephony/call_manager/call_manager_aafwk.gni") import("//build/ohos.gni") ohos_executable("tel_call_manager_ui_test") { install_enable = true sources = [ "bluetooth_call_test.cpp", "call_manager_callback_test.cpp", "common_event_subscriber_test.cpp", "ui_client_test.cpp", ] include_dirs = [ "//base/telephony/call_manager/services/audio/include", "//foundation/graphic/graphic_2d/frameworks/surface/include", "//drivers/peripheral/camera/interfaces/metadata/include", "//utils/system/safwk/native/include", "//drivers/hdf_core/framework/include/utils", "//drivers/hdf_core/adapter/uhdf2/utils/include", "//drivers/hdf_core/adapter/uhdf2/include/hdi", "//drivers/peripheral/display/interfaces/include", "//drivers/peripheral/camera/interfaces/include", "//drivers/peripheral/camera/interfaces/include/server", "//drivers/peripheral/camera/interfaces/include/callback/device", "//drivers/peripheral/camera/interfaces/include/callback/operator", "//drivers/peripheral/camera/interfaces/include/callback/host", "/commonlibrary/c_utils/base/include", ] configs = [ "//base/telephony/core_service/utils:telephony_log_config" ] deps = [ "${ability_runtime_path}/frameworks/native/ability/native:abilitykit_native", "//drivers/peripheral/camera/interfaces/metadata:metadata", "//foundation/graphic/graphic_2d:libsurface", ] external_deps = [ "ability_base:want", "access_token:libaccesstoken_sdk", "access_token:libnativetoken", "access_token:libtoken_setproc", "c_utils:utils", "call_manager:tel_call_manager_api", "common_event_service:cesfwk_innerkits", "core_service:tel_core_service_api", "eventhandler:libeventhandler", "ipc:ipc_core", "multimedia_audio_framework:audio_client", "multimedia_audio_framework:audio_renderer", "multimedia_camera_framework:camera_framework", "safwk:system_ability_fwk", "samgr:samgr_proxy", ] defines = [ "TELEPHONY_LOG_TAG = \"CallManagerUiTest\"", "LOG_DOMAIN = 0xD000F00", ] if (is_standard_system) { external_deps += [ "hiviewdfx_hilog_native:libhilog" ] } else { external_deps += [ "hilog:libhilog" ] } part_name = "call_manager" subsystem_name = "telephony" }