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_cs_calloperation_test") { 19 subsystem_name = "telephony" 20 part_name = "cellular_call" 21 test_module = "cstest" 22 module_out_path = part_name + "/" + test_module 23 sources = [ 24 "cs_calloperation_test.cpp", 25 "cs_test.cpp", 26 ] 27 28 include_dirs = [ 29 "${CELLULAR_CALL_PATH}/services/common/include", 30 "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite", 31 "${CELLULAR_CALL_PATH}/services/connection/include", 32 "${CELLULAR_CALL_PATH}/services/control/include", 33 "${CELLULAR_CALL_PATH}/services/manager/include", 34 "${CELLULAR_CALL_PATH}/services/utils/include", 35 "//third_party/libphonenumber/cpp/src", 36 "//third_party/libphonenumber/cpp/src/phonenumbers", 37 ] 38 39 deps = [ 40 "${CELLULAR_CALL_PATH}:tel_cellular_call", 41 "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims:tel_ims_call_api", 42 "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite:tel_satellite_call_api", 43 "//third_party/libphonenumber/cpp:phonenumber_standard", 44 ] 45 46 external_deps = [ 47 "ability_base:want", 48 "access_token:libaccesstoken_sdk", 49 "access_token:libnativetoken", 50 "access_token:libtoken_setproc", 51 "c_utils:utils", 52 "call_manager:tel_call_manager_api", 53 "common_event_service:cesfwk_innerkits", 54 "core_service:libtel_common", 55 "core_service:tel_core_service_api", 56 "eventhandler:libeventhandler", 57 "graphic_surface:surface", 58 "hilog:libhilog", 59 "init:libbegetutil", 60 "ipc:ipc_single", 61 "safwk:system_ability_fwk", 62 "samgr:samgr_proxy", 63 "telephony_data:tel_telephony_data", 64 ] 65 defines = [ 66 "TELEPHONY_LOG_TAG = \"CellularCallCsTest\"", 67 "LOG_DOMAIN = 0xD000F00", 68 ] 69} 70 71ohos_unittest("tel_cs1_test") { 72 subsystem_name = "telephony" 73 part_name = "cellular_call" 74 test_module = "cstest" 75 module_out_path = part_name + "/" + test_module 76 sources = [ 77 "cs1_test.cpp", 78 "cs_test.cpp", 79 ] 80 81 include_dirs = [ 82 "${CELLULAR_CALL_PATH}/services/common/include", 83 "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite", 84 "${CELLULAR_CALL_PATH}/services/connection/include", 85 "${CELLULAR_CALL_PATH}/services/control/include", 86 "${CELLULAR_CALL_PATH}/services/manager/include", 87 "${CELLULAR_CALL_PATH}/services/utils/include", 88 "//third_party/libphonenumber/cpp/src", 89 "//third_party/libphonenumber/cpp/src/phonenumbers", 90 ] 91 92 deps = [ 93 "${CELLULAR_CALL_PATH}:tel_cellular_call", 94 "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims:tel_ims_call_api", 95 "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite:tel_satellite_call_api", 96 "//third_party/libphonenumber/cpp:phonenumber_standard", 97 ] 98 99 external_deps = [ 100 "ability_base:want", 101 "access_token:libaccesstoken_sdk", 102 "access_token:libnativetoken", 103 "access_token:libtoken_setproc", 104 "c_utils:utils", 105 "call_manager:tel_call_manager_api", 106 "common_event_service:cesfwk_innerkits", 107 "core_service:libtel_common", 108 "core_service:tel_core_service_api", 109 "eventhandler:libeventhandler", 110 "graphic_surface:surface", 111 "hilog:libhilog", 112 "init:libbegetutil", 113 "ipc:ipc_single", 114 "safwk:system_ability_fwk", 115 "samgr:samgr_proxy", 116 "telephony_data:tel_telephony_data", 117 ] 118 defines = [ 119 "TELEPHONY_LOG_TAG = \"CellularCallCsTest\"", 120 "LOG_DOMAIN = 0xD000F00", 121 ] 122} 123 124ohos_unittest("tel_cs2_test") { 125 subsystem_name = "telephony" 126 part_name = "cellular_call" 127 test_module = "cstest" 128 module_out_path = part_name + "/" + test_module 129 sources = [ 130 "cs2_test.cpp", 131 "cs_test.cpp", 132 ] 133 134 include_dirs = [ 135 "${CELLULAR_CALL_PATH}/services/common/include", 136 "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite", 137 "${CELLULAR_CALL_PATH}/services/connection/include", 138 "${CELLULAR_CALL_PATH}/services/control/include", 139 "${CELLULAR_CALL_PATH}/services/manager/include", 140 "${CELLULAR_CALL_PATH}/services/utils/include", 141 "//third_party/libphonenumber/cpp/src", 142 "//third_party/libphonenumber/cpp/src/phonenumbers", 143 ] 144 145 deps = [ 146 "${CELLULAR_CALL_PATH}:tel_cellular_call", 147 "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims:tel_ims_call_api", 148 "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite:tel_satellite_call_api", 149 "//third_party/libphonenumber/cpp:phonenumber_standard", 150 ] 151 152 external_deps = [ 153 "ability_base:want", 154 "access_token:libaccesstoken_sdk", 155 "access_token:libnativetoken", 156 "access_token:libtoken_setproc", 157 "c_utils:utils", 158 "call_manager:tel_call_manager_api", 159 "common_event_service:cesfwk_innerkits", 160 "core_service:libtel_common", 161 "core_service:tel_core_service_api", 162 "eventhandler:libeventhandler", 163 "graphic_surface:surface", 164 "hilog:libhilog", 165 "init:libbegetutil", 166 "ipc:ipc_single", 167 "safwk:system_ability_fwk", 168 "samgr:samgr_proxy", 169 "telephony_data:tel_telephony_data", 170 ] 171 defines = [ 172 "TELEPHONY_LOG_TAG = \"CellularCallCsTest\"", 173 "LOG_DOMAIN = 0xD000F00", 174 ] 175} 176 177group("unittest") { 178 testonly = true 179 deps = [ 180 ":tel_cs1_test", 181 ":tel_cs2_test", 182 ":tel_cs_calloperation_test", 183 ] 184} 185