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