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("//build/ohos.gni") 15import("//build/test.gni") 16CELLULAR_CALL_PATH = "../../.." 17 18ohos_unittest("tel_cellular_call_cs_test") { 19 subsystem_name = "telephony" 20 part_name = "cellular_call" 21 test_module = "tel_cellular_call_cs_test" 22 module_out_path = part_name + "/" + test_module 23 sources = [ "cs_test.cpp" ] 24 25 include_dirs = [ 26 "${CELLULAR_CALL_PATH}/services/common/include", 27 "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite", 28 "${CELLULAR_CALL_PATH}/services/connection/include", 29 "${CELLULAR_CALL_PATH}/services/control/include", 30 "${CELLULAR_CALL_PATH}/services/manager/include", 31 "//third_party/libphonenumber/cpp/src", 32 "//third_party/libphonenumber/cpp/src/phonenumbers", 33 ] 34 35 deps = [ 36 "${CELLULAR_CALL_PATH}:tel_cellular_call", 37 "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims:tel_ims_call_api", 38 "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite:tel_satellite_call_api", 39 "//third_party/libphonenumber/cpp:phonenumber_standard", 40 ] 41 42 external_deps = [ 43 "ability_base:want", 44 "access_token:libaccesstoken_sdk", 45 "access_token:libnativetoken", 46 "access_token:libtoken_setproc", 47 "c_utils:utils", 48 "call_manager:tel_call_manager_api", 49 "common_event_service:cesfwk_innerkits", 50 "core_service:libtel_common", 51 "core_service:tel_core_service_api", 52 "eventhandler:libeventhandler", 53 "graphic_surface:surface", 54 "hilog:libhilog", 55 "init:libbegetutil", 56 "ipc:ipc_single", 57 "safwk:system_ability_fwk", 58 "samgr:samgr_proxy", 59 "telephony_data:tel_telephony_data", 60 ] 61 defines = [ 62 "TELEPHONY_LOG_TAG = \"CellularCallCsTest\"", 63 "LOG_DOMAIN = 0xD000F00", 64 ] 65} 66 67group("unittest") { 68 testonly = true 69 deps = [ ":tel_cellular_call_cs_test" ] 70} 71