1# Copyright (C) 2021-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 14import("//base/telephony/call_manager/call_manager_aafwk.gni") 15import("//build/test.gni") 16 17ohos_unittest("tel_call_manager_gtest") { 18 install_enable = true 19 subsystem_name = "telephony" 20 part_name = "call_manager" 21 test_module = "tel_call_manager_gtest" 22 module_out_path = part_name + "/" + test_module 23 24 sources = [ 25 "//base/telephony/call_manager/frameworks/native/src/call_manager_service_proxy.cpp", 26 "src/call_manager_gtest.cpp", 27 ] 28 29 include_dirs = [ 30 "//base/telephony/call_manager/services/bluetooth/include", 31 "//base/telephony/call_manager/services/call_manager_service/include", 32 "//base/telephony/call_manager/test/unittest/call_manager_gtest/include", 33 "//base/telephony/call_manager/utils/include", 34 "//base/telephony/call_manager/services/call_report/include", 35 "//base/telephony/call_manager/services/call/include", 36 "//base/telephony/call_manager/services/call_setting/include", 37 "//base/telephony/call_manager/services/telephony_interaction/include", 38 "//base/telephony/call_manager/services/call/call_state_observer/include", 39 "//base/telephony/call_manager/frameworks/native/include", 40 "//base/telephony/call_manager/interfaces/innerkits", 41 ] 42 43 configs = [ "//base/telephony/core_service/utils:telephony_log_config" ] 44 45 deps = [ 46 "${ability_runtime_inner_api_path}/ability_manager:ability_manager", 47 "${ability_runtime_path}/frameworks/native/ability/native:abilitykit_native", 48 "//base/telephony/call_manager:tel_call_manager", 49 "//base/telephony/call_manager/frameworks/native:tel_call_manager_api", 50 "//foundation/communication/bluetooth/frameworks/inner:btframework", 51 "//third_party/googletest:gtest_main", 52 ] 53 54 external_deps = [ 55 "ability_base:want", 56 "access_token:libaccesstoken_sdk", 57 "access_token:libnativetoken", 58 "access_token:libtoken_setproc", 59 "c_utils:utils", 60 "common_event_service:cesfwk_innerkits", 61 "core_service:tel_core_service_api", 62 "data_share:datashare_consumer", 63 "eventhandler:libeventhandler", 64 "init:libbegetutil", 65 "ipc:ipc_core", 66 "safwk:system_ability_fwk", 67 "samgr:samgr_proxy", 68 ] 69 70 defines = [ 71 "TELEPHONY_LOG_TAG = \"CallManagerGtest\"", 72 "LOG_DOMAIN = 0xD000F00", 73 ] 74 75 if (device_name == "rk3568") { 76 defines += [ "CALL_MANAGER_IMS_LITE_UNSUPPORT" ] 77 } 78 79 if (is_standard_system) { 80 external_deps += [ "hiviewdfx_hilog_native:libhilog" ] 81 } else { 82 external_deps += [ "hilog:libhilog" ] 83 } 84} 85