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/test.gni") 15CELLULAR_CALL_PATH = "../../.." 16 17ohos_unittest("tel_satellite_callback_test") { 18 subsystem_name = "telephony" 19 part_name = "cellular_call" 20 test_module = "satellitetest" 21 module_out_path = part_name + "/" + test_module 22 23 sources = [ "satellite_callback_test.cpp" ] 24 25 include_dirs = [ 26 "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims", 27 "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite", 28 "${CELLULAR_CALL_PATH}/services/common/include", 29 "${CELLULAR_CALL_PATH}/services/connection/include", 30 "${CELLULAR_CALL_PATH}/services/control/include", 31 "${CELLULAR_CALL_PATH}/services/manager/include", 32 "${CELLULAR_CALL_PATH}/services/utils/include", 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 = \"CellularCallSatelliteTest\"", 63 "LOG_DOMAIN = 0xD000F00", 64 ] 65} 66 67ohos_unittest("tel_satellite_test") { 68 subsystem_name = "telephony" 69 part_name = "cellular_call" 70 test_module = "satellitetest" 71 module_out_path = part_name + "/" + test_module 72 73 sources = [ "satellite_test.cpp" ] 74 75 include_dirs = [ 76 "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims", 77 "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite", 78 "${CELLULAR_CALL_PATH}/services/common/include", 79 "${CELLULAR_CALL_PATH}/services/connection/include", 80 "${CELLULAR_CALL_PATH}/services/control/include", 81 "${CELLULAR_CALL_PATH}/services/manager/include", 82 "${CELLULAR_CALL_PATH}/services/utils/include", 83 ] 84 85 deps = [ 86 "${CELLULAR_CALL_PATH}:tel_cellular_call", 87 "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims:tel_ims_call_api", 88 "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite:tel_satellite_call_api", 89 "//third_party/libphonenumber/cpp:phonenumber_standard", 90 ] 91 92 external_deps = [ 93 "ability_base:want", 94 "access_token:libaccesstoken_sdk", 95 "access_token:libnativetoken", 96 "access_token:libtoken_setproc", 97 "c_utils:utils", 98 "call_manager:tel_call_manager_api", 99 "common_event_service:cesfwk_innerkits", 100 "core_service:libtel_common", 101 "core_service:tel_core_service_api", 102 "eventhandler:libeventhandler", 103 "graphic_surface:surface", 104 "hilog:libhilog", 105 "init:libbegetutil", 106 "ipc:ipc_single", 107 "safwk:system_ability_fwk", 108 "samgr:samgr_proxy", 109 "telephony_data:tel_telephony_data", 110 ] 111 defines = [ 112 "TELEPHONY_LOG_TAG = \"CellularCallSatelliteTest\"", 113 "LOG_DOMAIN = 0xD000F00", 114 ] 115} 116 117ohos_unittest("tel_satellite_zero_branch_test") { 118 subsystem_name = "telephony" 119 part_name = "cellular_call" 120 test_module = "satellitetest" 121 module_out_path = part_name + "/" + test_module 122 123 sources = [ "zero_branch_test.cpp" ] 124 125 include_dirs = [ 126 "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims", 127 "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite", 128 "${CELLULAR_CALL_PATH}/services/common/include", 129 "${CELLULAR_CALL_PATH}/services/connection/include", 130 "${CELLULAR_CALL_PATH}/services/control/include", 131 "${CELLULAR_CALL_PATH}/services/manager/include", 132 "${CELLULAR_CALL_PATH}/services/utils/include", 133 ] 134 135 deps = [ 136 "${CELLULAR_CALL_PATH}:tel_cellular_call", 137 "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims:tel_ims_call_api", 138 "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite:tel_satellite_call_api", 139 "//third_party/libphonenumber/cpp:phonenumber_standard", 140 ] 141 142 external_deps = [ 143 "ability_base:want", 144 "access_token:libaccesstoken_sdk", 145 "access_token:libnativetoken", 146 "access_token:libtoken_setproc", 147 "c_utils:utils", 148 "call_manager:tel_call_manager_api", 149 "common_event_service:cesfwk_innerkits", 150 "core_service:libtel_common", 151 "core_service:tel_core_service_api", 152 "eventhandler:libeventhandler", 153 "graphic_surface:surface", 154 "hilog:libhilog", 155 "init:libbegetutil", 156 "ipc:ipc_single", 157 "safwk:system_ability_fwk", 158 "samgr:samgr_proxy", 159 "telephony_data:tel_telephony_data", 160 ] 161 defines = [ 162 "TELEPHONY_LOG_TAG = \"CellularCallSatelliteTest\"", 163 "LOG_DOMAIN = 0xD000F00", 164 ] 165} 166 167group("unittest") { 168 testonly = true 169 deps = [ 170 ":tel_satellite_callback_test", 171 ":tel_satellite_test", 172 ":tel_satellite_zero_branch_test", 173 ] 174} 175