1# Copyright (C) 2021 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/test.gni") 15 16ohos_unittest("tel_call_manager_gtest") { 17 install_enable = true 18 subsystem_name = "telephony" 19 part_name = "call_manager" 20 test_module = "tel_call_manager_gtest" 21 module_out_path = part_name + "/" + test_module 22 23 sources = [ 24 "//base/telephony/call_manager/frameworks/native/src/call_manager_service_proxy.cpp", 25 "src/call_manager_gtest.cpp", 26 ] 27 28 include_dirs = [ 29 "//base/telephony/call_manager/test/unittest/call_manager_gtest/include", 30 "//base/telephony/call_manager/utils/include", 31 "//base/telephony/call_manager/frameworks/native/include", 32 "//base/telephony/call_manager/interfaces/innerkits", 33 ] 34 35 configs = [ "//base/telephony/core_service/utils:telephony_log_config" ] 36 37 deps = [ 38 "//third_party/googletest:gtest_main", 39 "//utils/native/base:utils", 40 ] 41 42 external_deps = [ 43 "ability_base:want", 44 "ces_standard:cesfwk_innerkits", 45 "core_service:tel_core_service_api", 46 "eventhandler:libeventhandler", 47 "ipc:ipc_core", 48 "safwk:system_ability_fwk", 49 "samgr_standard:samgr_proxy", 50 ] 51 52 defines = [ 53 "TELEPHONY_LOG_TAG = \"CallManagerGtest\"", 54 "LOG_DOMAIN = 0xD002B01", 55 ] 56 if ("${product_name}" == "rk3568" || "${product_name}" == "DAYU") { 57 defines += [ "TEL_TEST_UNSUPPORT" ] 58 } 59 60 if (is_standard_system) { 61 external_deps += [ "hiviewdfx_hilog_native:libhilog" ] 62 } else { 63 external_deps += [ "hilog:libhilog" ] 64 } 65} 66