# 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("//build/test.gni") ohos_unittest("tel_call_manager_gtest") { install_enable = true subsystem_name = "telephony" part_name = "call_manager" test_module = "tel_call_manager_gtest" module_out_path = part_name + "/" + test_module sources = [ "//base/telephony/call_manager/frameworks/native/src/call_manager_service_proxy.cpp", "src/call_manager_gtest.cpp", ] include_dirs = [ "//base/telephony/call_manager/test/unittest/call_manager_gtest/include", "//base/telephony/call_manager/utils/include", "//base/telephony/call_manager/frameworks/native/include", "//base/telephony/call_manager/interfaces/innerkits", ] configs = [ "//base/telephony/core_service/utils:telephony_log_config" ] deps = [ "//third_party/googletest:gtest_main", "//utils/native/base:utils", ] external_deps = [ "ability_base:want", "ces_standard:cesfwk_innerkits", "core_service:tel_core_service_api", "eventhandler:libeventhandler", "ipc:ipc_core", "safwk:system_ability_fwk", "samgr_standard:samgr_proxy", ] defines = [ "TELEPHONY_LOG_TAG = \"CallManagerGtest\"", "LOG_DOMAIN = 0xD002B01", ] if ("${product_name}" == "rk3568" || "${product_name}" == "DAYU") { defines += [ "TEL_TEST_UNSUPPORT" ] } if (is_standard_system) { external_deps += [ "hiviewdfx_hilog_native:libhilog" ] } else { external_deps += [ "hilog:libhilog" ] } }