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