• 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_ims_callback_proxy_test") {
18  subsystem_name = "telephony"
19  part_name = "cellular_call"
20  test_module = "imstest"
21  module_out_path = part_name + "/" + part_name + "/" + test_module
22
23  sources = [
24    "ims_callback_proxy_test.cpp",
25  ]
26
27  include_dirs = [
28    "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims",
29    "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite",
30    "${CELLULAR_CALL_PATH}/services/common/include",
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  ]
36
37  deps = [
38    "${CELLULAR_CALL_PATH}:tel_cellular_call",
39    "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims:tel_ims_call_api",
40    "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite:tel_satellite_call_api",
41  ]
42
43  external_deps = [
44    "ability_base:want",
45    "access_token:libaccesstoken_sdk",
46    "access_token:libnativetoken_shared",
47    "access_token:libtoken_setproc",
48    "c_utils:utils",
49    "call_manager:tel_call_manager_api",
50    "common_event_service:cesfwk_innerkits",
51    "core_service:libtel_common",
52    "core_service:tel_core_service_api",
53    "data_share:datashare_common",
54    "data_share:datashare_consumer",
55    "eventhandler:libeventhandler",
56    "ffrt:libffrt",
57    "graphic_surface:surface",
58    "hilog:libhilog",
59    "init:libbegetutil",
60    "ipc:ipc_single",
61    "safwk:system_ability_fwk",
62    "safwk:system_ability_fwk",
63    "samgr:samgr_proxy",
64    "samgr:samgr_proxy",
65    "telephony_data:tel_telephony_data",
66  ]
67  defines = [
68    "TELEPHONY_LOG_TAG = \"CellularCallImsTest\"",
69    "LOG_DOMAIN = 0xD000F00",
70  ]
71}
72
73ohos_unittest("cellular_call_ims_callback_stub_test") {
74  subsystem_name = "telephony"
75  part_name = "cellular_call"
76  test_module = "imstest"
77  module_out_path = part_name + "/" + part_name + "/" + test_module
78
79  sources = [
80    "ims_callback_stub_test.cpp",
81  ]
82
83  include_dirs = [
84    "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims",
85    "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite",
86    "${CELLULAR_CALL_PATH}/services/common/include",
87    "${CELLULAR_CALL_PATH}/services/connection/include",
88    "${CELLULAR_CALL_PATH}/services/control/include",
89    "${CELLULAR_CALL_PATH}/services/manager/include",
90    "${CELLULAR_CALL_PATH}/services/utils/include",
91  ]
92
93  deps = [
94    "${CELLULAR_CALL_PATH}:tel_cellular_call",
95    "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims:tel_ims_call_api",
96    "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite:tel_satellite_call_api",
97  ]
98
99  external_deps = [
100    "ability_base:want",
101    "access_token:libaccesstoken_sdk",
102    "access_token:libnativetoken_shared",
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    "data_share:datashare_common",
110    "data_share:datashare_consumer",
111    "eventhandler:libeventhandler",
112    "ffrt:libffrt",
113    "graphic_surface:surface",
114    "hilog:libhilog",
115    "init:libbegetutil",
116    "ipc:ipc_single",
117    "safwk:system_ability_fwk",
118    "safwk:system_ability_fwk",
119    "samgr:samgr_proxy",
120    "samgr:samgr_proxy",
121    "telephony_data:tel_telephony_data",
122  ]
123  defines = [
124    "TELEPHONY_LOG_TAG = \"CellularCallImsTest\"",
125    "LOG_DOMAIN = 0xD000F00",
126  ]
127}
128
129ohos_unittest("cellular_call_ims1_test") {
130  subsystem_name = "telephony"
131  part_name = "cellular_call"
132  test_module = "imstest"
133  module_out_path = part_name + "/" + part_name + "/" + test_module
134
135  sources = [
136    "ims1_test.cpp",
137  ]
138
139  include_dirs = [
140    "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims",
141    "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite",
142    "${CELLULAR_CALL_PATH}/services/common/include",
143    "${CELLULAR_CALL_PATH}/services/connection/include",
144    "${CELLULAR_CALL_PATH}/services/control/include",
145    "${CELLULAR_CALL_PATH}/services/manager/include",
146    "${CELLULAR_CALL_PATH}/services/utils/include",
147  ]
148
149  deps = [
150    "${CELLULAR_CALL_PATH}:tel_cellular_call",
151    "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims:tel_ims_call_api",
152    "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite:tel_satellite_call_api",
153  ]
154
155  external_deps = [
156    "ability_base:want",
157    "access_token:libaccesstoken_sdk",
158    "access_token:libnativetoken_shared",
159    "access_token:libtoken_setproc",
160    "c_utils:utils",
161    "call_manager:tel_call_manager_api",
162    "common_event_service:cesfwk_innerkits",
163    "core_service:libtel_common",
164    "core_service:tel_core_service_api",
165    "data_share:datashare_common",
166    "data_share:datashare_consumer",
167    "eventhandler:libeventhandler",
168    "ffrt:libffrt",
169    "graphic_surface:surface",
170    "hilog:libhilog",
171    "init:libbegetutil",
172    "ipc:ipc_single",
173    "safwk:system_ability_fwk",
174    "safwk:system_ability_fwk",
175    "samgr:samgr_proxy",
176    "samgr:samgr_proxy",
177    "telephony_data:tel_telephony_data",
178  ]
179  defines = [
180    "TELEPHONY_LOG_TAG = \"CellularCallImsTest\"",
181    "LOG_DOMAIN = 0xD000F00",
182  ]
183}
184
185ohos_unittest("cellular_call_ims2_test") {
186  subsystem_name = "telephony"
187  part_name = "cellular_call"
188  test_module = "imstest"
189  module_out_path = part_name + "/" + part_name + "/" + test_module
190
191  sources = [
192    "ims2_test.cpp",
193  ]
194
195  include_dirs = [
196    "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims",
197    "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite",
198    "${CELLULAR_CALL_PATH}/services/common/include",
199    "${CELLULAR_CALL_PATH}/services/connection/include",
200    "${CELLULAR_CALL_PATH}/services/control/include",
201    "${CELLULAR_CALL_PATH}/services/manager/include",
202    "${CELLULAR_CALL_PATH}/services/utils/include",
203    "${CELLULAR_CALL_PATH}/test/mock",
204  ]
205
206  deps = [
207    "${CELLULAR_CALL_PATH}:tel_cellular_call",
208    "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims:tel_ims_call_api",
209    "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite:tel_satellite_call_api",
210  ]
211
212  external_deps = [
213    "ability_base:want",
214    "access_token:libaccesstoken_sdk",
215    "access_token:libnativetoken_shared",
216    "access_token:libtoken_setproc",
217    "c_utils:utils",
218    "call_manager:tel_call_manager_api",
219    "common_event_service:cesfwk_innerkits",
220    "core_service:libtel_common",
221    "core_service:tel_core_service_api",
222    "data_share:datashare_common",
223    "data_share:datashare_consumer",
224    "eventhandler:libeventhandler",
225    "ffrt:libffrt",
226    "googletest:gmock_main",
227    "googletest:gtest_main",
228    "graphic_surface:surface",
229    "hilog:libhilog",
230    "init:libbegetutil",
231    "ipc:ipc_single",
232    "safwk:system_ability_fwk",
233    "safwk:system_ability_fwk",
234    "samgr:samgr_proxy",
235    "samgr:samgr_proxy",
236    "telephony_data:tel_telephony_data",
237  ]
238  defines = [
239    "TELEPHONY_LOG_TAG = \"CellularCallImsTest\"",
240    "LOG_DOMAIN = 0xD000F00",
241  ]
242}
243
244ohos_unittest("cellular_call_ims_zero_branch_test") {
245  subsystem_name = "telephony"
246  part_name = "cellular_call"
247  test_module = "imstest"
248  module_out_path = part_name + "/" + part_name + "/" + test_module
249
250  sources = [
251    "zero_branch_test.cpp",
252  ]
253
254  include_dirs = [
255    "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims",
256    "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite",
257    "${CELLULAR_CALL_PATH}/services/common/include",
258    "${CELLULAR_CALL_PATH}/services/connection/include",
259    "${CELLULAR_CALL_PATH}/services/control/include",
260    "${CELLULAR_CALL_PATH}/services/manager/include",
261    "${CELLULAR_CALL_PATH}/services/utils/include",
262  ]
263
264  deps = [
265    "${CELLULAR_CALL_PATH}:tel_cellular_call",
266    "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims:tel_ims_call_api",
267    "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite:tel_satellite_call_api",
268  ]
269
270  external_deps = [
271    "ability_base:want",
272    "access_token:libaccesstoken_sdk",
273    "access_token:libnativetoken_shared",
274    "access_token:libtoken_setproc",
275    "c_utils:utils",
276    "call_manager:tel_call_manager_api",
277    "common_event_service:cesfwk_innerkits",
278    "core_service:libtel_common",
279    "core_service:tel_core_service_api",
280    "data_share:datashare_common",
281    "data_share:datashare_consumer",
282    "eventhandler:libeventhandler",
283    "ffrt:libffrt",
284    "graphic_surface:surface",
285    "hilog:libhilog",
286    "hisysevent:libhisysevent",
287    "init:libbegetutil",
288    "ipc:ipc_single",
289    "safwk:system_ability_fwk",
290    "safwk:system_ability_fwk",
291    "samgr:samgr_proxy",
292    "samgr:samgr_proxy",
293    "telephony_data:tel_telephony_data",
294  ]
295  defines = [
296    "TELEPHONY_LOG_TAG = \"CellularCallImsTest\"",
297    "LOG_DOMAIN = 0xD000F00",
298  ]
299
300  if (device_name == "rk3568") {
301    defines += [ "CALL_MANAGER_AUTO_START_OPTIMIZE" ]
302  }
303}
304
305ohos_unittest("cellular_call_ims_zero_branch1_test") {
306  subsystem_name = "telephony"
307  part_name = "cellular_call"
308  test_module = "imstest"
309  module_out_path = part_name + "/" + part_name + "/" + test_module
310
311  sources = [
312    "zero_branch1_test.cpp",
313  ]
314
315  include_dirs = [
316    "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims",
317    "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite",
318    "${CELLULAR_CALL_PATH}/services/common/include",
319    "${CELLULAR_CALL_PATH}/services/connection/include",
320    "${CELLULAR_CALL_PATH}/services/control/include",
321    "${CELLULAR_CALL_PATH}/services/manager/include",
322    "${CELLULAR_CALL_PATH}/services/telephony_ext_wrapper/include",
323    "${CELLULAR_CALL_PATH}/services/utils/include",
324  ]
325
326  deps = [
327    "${CELLULAR_CALL_PATH}:tel_cellular_call",
328    "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims:tel_ims_call_api",
329    "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite:tel_satellite_call_api",
330  ]
331
332  external_deps = [
333    "ability_base:want",
334    "access_token:libaccesstoken_sdk",
335    "access_token:libnativetoken_shared",
336    "access_token:libtoken_setproc",
337    "c_utils:utils",
338    "call_manager:tel_call_manager_api",
339    "common_event_service:cesfwk_innerkits",
340    "core_service:libtel_common",
341    "core_service:tel_core_service_api",
342    "data_share:datashare_common",
343    "data_share:datashare_consumer",
344    "eventhandler:libeventhandler",
345    "ffrt:libffrt",
346    "graphic_surface:surface",
347    "hilog:libhilog",
348    "hisysevent:libhisysevent",
349    "init:libbegetutil",
350    "ipc:ipc_single",
351    "safwk:system_ability_fwk",
352    "safwk:system_ability_fwk",
353    "samgr:samgr_proxy",
354    "samgr:samgr_proxy",
355    "telephony_data:tel_telephony_data",
356  ]
357  defines = [
358    "TELEPHONY_LOG_TAG = \"CellularCallImsTest\"",
359    "LOG_DOMAIN = 0xD000F00",
360  ]
361
362  if (device_name == "rk3568") {
363    defines += [ "CALL_MANAGER_AUTO_START_OPTIMIZE" ]
364  }
365}
366
367ohos_unittest("cellular_call_ims_cellular_call_stub_test") {
368  subsystem_name = "telephony"
369  part_name = "cellular_call"
370  test_module = "imstest"
371  module_out_path = part_name + "/" + part_name + "/" + test_module
372
373  sources = [
374    "cellular_call_stub_test.cpp",
375  ]
376
377  include_dirs = [
378    "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims",
379    "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite",
380    "${CELLULAR_CALL_PATH}/services/common/include",
381    "${CELLULAR_CALL_PATH}/services/connection/include",
382    "${CELLULAR_CALL_PATH}/services/control/include",
383    "${CELLULAR_CALL_PATH}/services/manager/include",
384    "${CELLULAR_CALL_PATH}/services/utils/include",
385  ]
386
387  deps = [
388    "${CELLULAR_CALL_PATH}:tel_cellular_call",
389    "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims:tel_ims_call_api",
390    "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite:tel_satellite_call_api",
391  ]
392
393  external_deps = [
394    "ability_base:want",
395    "access_token:libaccesstoken_sdk",
396    "access_token:libnativetoken_shared",
397    "access_token:libtoken_setproc",
398    "c_utils:utils",
399    "call_manager:tel_call_manager_api",
400    "common_event_service:cesfwk_innerkits",
401    "core_service:libtel_common",
402    "core_service:tel_core_service_api",
403    "data_share:datashare_common",
404    "data_share:datashare_consumer",
405    "eventhandler:libeventhandler",
406    "ffrt:libffrt",
407    "graphic_surface:surface",
408    "hilog:libhilog",
409    "init:libbegetutil",
410    "ipc:ipc_single",
411    "safwk:system_ability_fwk",
412    "safwk:system_ability_fwk",
413    "samgr:samgr_proxy",
414    "samgr:samgr_proxy",
415    "telephony_data:tel_telephony_data",
416  ]
417  defines = [
418    "TELEPHONY_LOG_TAG = \"CellularCallImsTest\"",
419    "LOG_DOMAIN = 0xD000F00",
420  ]
421}
422
423ohos_unittest("cellular_call_ims_cellular_call_supplement_test") {
424  subsystem_name = "telephony"
425  part_name = "cellular_call"
426  test_module = "imstest"
427  module_out_path = part_name + "/" + part_name + "/" + test_module
428
429  sources = [
430    "cellular_call_supplement_test.cpp",
431  ]
432
433  include_dirs = [
434    "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims",
435    "${CELLULAR_CALL_PATH}/services/common/include",
436    "${CELLULAR_CALL_PATH}/services/connection/include",
437    "${CELLULAR_CALL_PATH}/services/control/include",
438    "${CELLULAR_CALL_PATH}/services/manager/include",
439    "${CELLULAR_CALL_PATH}/services/telephony_ext_wrapper/include",
440    "${CELLULAR_CALL_PATH}/services/utils/include",
441  ]
442
443  deps = [
444    "${CELLULAR_CALL_PATH}:tel_cellular_call",
445    "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims:tel_ims_call_api",
446    "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite:tel_satellite_call_api",
447  ]
448
449  external_deps = [
450    "ability_base:want",
451    "access_token:libaccesstoken_sdk",
452    "access_token:libnativetoken_shared",
453    "access_token:libtoken_setproc",
454    "c_utils:utils",
455    "call_manager:tel_call_manager_api",
456    "common_event_service:cesfwk_innerkits",
457    "core_service:libtel_common",
458    "core_service:tel_core_service_api",
459    "data_share:datashare_common",
460    "data_share:datashare_consumer",
461    "eventhandler:libeventhandler",
462    "ffrt:libffrt",
463    "graphic_surface:surface",
464    "hilog:libhilog",
465    "init:libbegetutil",
466    "ipc:ipc_single",
467    "safwk:system_ability_fwk",
468    "safwk:system_ability_fwk",
469    "samgr:samgr_proxy",
470    "samgr:samgr_proxy",
471    "telephony_data:tel_telephony_data",
472  ]
473  defines = [
474    "TELEPHONY_LOG_TAG = \"CellularCallImsTest\"",
475    "LOG_DOMAIN = 0xD000F00",
476  ]
477}
478
479ohos_unittest("cellular_call_ims_call_callback_stub_test") {
480  subsystem_name = "telephony"
481  part_name = "cellular_call"
482  test_module = "imstest"
483  module_out_path = part_name + "/" + part_name + "/" + test_module
484
485  sources = [
486    "ims_call_callback_stub_test.cpp",
487  ]
488
489  include_dirs = [
490    "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims",
491    "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite",
492    "${CELLULAR_CALL_PATH}/services/common/include",
493    "${CELLULAR_CALL_PATH}/services/connection/include",
494    "${CELLULAR_CALL_PATH}/services/control/include",
495    "${CELLULAR_CALL_PATH}/services/manager/include",
496    "${CELLULAR_CALL_PATH}/services/utils/include",
497  ]
498
499  deps = [
500    "${CELLULAR_CALL_PATH}:tel_cellular_call",
501    "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims:tel_ims_call_api",
502    "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite:tel_satellite_call_api",
503  ]
504
505  external_deps = [
506    "ability_base:want",
507    "access_token:libaccesstoken_sdk",
508    "access_token:libnativetoken_shared",
509    "access_token:libtoken_setproc",
510    "c_utils:utils",
511    "call_manager:tel_call_manager_api",
512    "common_event_service:cesfwk_innerkits",
513    "core_service:libtel_common",
514    "core_service:tel_core_service_api",
515    "data_share:datashare_common",
516    "data_share:datashare_consumer",
517    "eventhandler:libeventhandler",
518    "ffrt:libffrt",
519    "graphic_surface:surface",
520    "hilog:libhilog",
521    "init:libbegetutil",
522    "ipc:ipc_single",
523    "safwk:system_ability_fwk",
524    "safwk:system_ability_fwk",
525    "samgr:samgr_proxy",
526    "samgr:samgr_proxy",
527    "telephony_data:tel_telephony_data",
528  ]
529  defines = [
530    "TELEPHONY_LOG_TAG = \"CellularCallImsTest\"",
531    "LOG_DOMAIN = 0xD000F00",
532  ]
533}
534
535ohos_unittest("cellular_call_ims_hisysevent_test") {
536  subsystem_name = "telephony"
537  part_name = "cellular_call"
538  test_module = "imstest"
539  module_out_path = part_name + "/" + part_name + "/" + test_module
540
541  sources = [
542    "cellular_call_hisysevent_test.cpp",
543  ]
544
545  include_dirs = [
546    "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims",
547    "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite",
548    "${CELLULAR_CALL_PATH}/services/common/include",
549    "${CELLULAR_CALL_PATH}/services/connection/include",
550    "${CELLULAR_CALL_PATH}/services/control/include",
551    "${CELLULAR_CALL_PATH}/services/manager/include",
552    "${CELLULAR_CALL_PATH}/services/utils/include",
553  ]
554
555  deps = [
556    "${CELLULAR_CALL_PATH}:tel_cellular_call",
557    "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims:tel_ims_call_api",
558    "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite:tel_satellite_call_api",
559  ]
560
561  external_deps = [
562    "ability_base:want",
563    "access_token:libaccesstoken_sdk",
564    "access_token:libnativetoken_shared",
565    "access_token:libtoken_setproc",
566    "c_utils:utils",
567    "call_manager:tel_call_manager_api",
568    "common_event_service:cesfwk_innerkits",
569    "core_service:libtel_common",
570    "core_service:tel_core_service_api",
571    "data_share:datashare_common",
572    "data_share:datashare_consumer",
573    "eventhandler:libeventhandler",
574    "ffrt:libffrt",
575    "graphic_surface:surface",
576    "hilog:libhilog",
577    "hisysevent:libhisysevent",
578    "init:libbegetutil",
579    "ipc:ipc_single",
580    "safwk:system_ability_fwk",
581    "safwk:system_ability_fwk",
582    "samgr:samgr_proxy",
583    "samgr:samgr_proxy",
584    "telephony_data:tel_telephony_data",
585  ]
586  defines = [
587    "TELEPHONY_LOG_TAG = \"CellularCallImsTest\"",
588    "LOG_DOMAIN = 0xD000F00",
589  ]
590}
591
592ohos_unittest("cellular_call_ims_emergency_utils_test") {
593  subsystem_name = "telephony"
594  part_name = "cellular_call"
595  test_module = "imstest"
596  module_out_path = part_name + "/" + part_name + "/" + test_module
597
598  sources = [
599    "emergency_utils_test.cpp",
600  ]
601
602  include_dirs = [
603    "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims",
604    "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite",
605    "${CELLULAR_CALL_PATH}/services/common/include",
606    "${CELLULAR_CALL_PATH}/services/connection/include",
607    "${CELLULAR_CALL_PATH}/services/control/include",
608    "${CELLULAR_CALL_PATH}/services/manager/include",
609    "${CELLULAR_CALL_PATH}/services/utils/include",
610  ]
611
612  deps = [
613    "${CELLULAR_CALL_PATH}:tel_cellular_call",
614    "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims:tel_ims_call_api",
615    "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite:tel_satellite_call_api",
616  ]
617
618  external_deps = [
619    "ability_base:want",
620    "access_token:libaccesstoken_sdk",
621    "access_token:libnativetoken_shared",
622    "access_token:libtoken_setproc",
623    "c_utils:utils",
624    "call_manager:tel_call_manager_api",
625    "common_event_service:cesfwk_innerkits",
626    "core_service:libtel_common",
627    "core_service:tel_core_service_api",
628    "data_share:datashare_common",
629    "data_share:datashare_consumer",
630    "eventhandler:libeventhandler",
631    "ffrt:libffrt",
632    "graphic_surface:surface",
633    "hilog:libhilog",
634    "init:libbegetutil",
635    "ipc:ipc_single",
636    "safwk:system_ability_fwk",
637    "safwk:system_ability_fwk",
638    "samgr:samgr_proxy",
639    "samgr:samgr_proxy",
640    "telephony_data:tel_telephony_data",
641  ]
642  defines = [
643    "TELEPHONY_LOG_TAG = \"CellularCallImsTest\"",
644    "LOG_DOMAIN = 0xD000F00",
645  ]
646}
647
648ohos_unittest("cellular_call_ims_connection_test") {
649  subsystem_name = "telephony"
650  part_name = "cellular_call"
651  test_module = "imstest"
652  module_out_path = part_name + "/" + part_name + "/" + test_module
653
654  sources = [
655    "ims_connection_test.cpp",
656  ]
657
658  include_dirs = [
659    "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims",
660    "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite",
661    "${CELLULAR_CALL_PATH}/services/common/include",
662    "${CELLULAR_CALL_PATH}/services/connection/include",
663    "${CELLULAR_CALL_PATH}/services/control/include",
664    "${CELLULAR_CALL_PATH}/services/manager/include",
665    "${CELLULAR_CALL_PATH}/services/utils/include",
666  ]
667
668  deps = [
669    "${CELLULAR_CALL_PATH}:tel_cellular_call",
670    "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims:tel_ims_call_api",
671    "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite:tel_satellite_call_api",
672  ]
673
674  external_deps = [
675    "ability_base:want",
676    "access_token:libaccesstoken_sdk",
677    "access_token:libnativetoken_shared",
678    "access_token:libtoken_setproc",
679    "c_utils:utils",
680    "call_manager:tel_call_manager_api",
681    "common_event_service:cesfwk_innerkits",
682    "core_service:libtel_common",
683    "core_service:tel_core_service_api",
684    "data_share:datashare_common",
685    "data_share:datashare_consumer",
686    "eventhandler:libeventhandler",
687    "ffrt:libffrt",
688    "graphic_surface:surface",
689    "hilog:libhilog",
690    "init:libbegetutil",
691    "ipc:ipc_single",
692    "safwk:system_ability_fwk",
693    "safwk:system_ability_fwk",
694    "samgr:samgr_proxy",
695    "samgr:samgr_proxy",
696    "telephony_data:tel_telephony_data",
697  ]
698  defines = [
699    "TELEPHONY_LOG_TAG = \"CellularCallImsTest\"",
700    "LOG_DOMAIN = 0xD000F00",
701  ]
702}
703
704ohos_unittest("cellular_call_ims_mmi_code_message_test") {
705  subsystem_name = "telephony"
706  part_name = "cellular_call"
707  test_module = "imstest"
708  module_out_path = part_name + "/" + part_name + "/" + test_module
709
710  sources = [
711    "mmi_code_message_test.cpp",
712  ]
713
714  include_dirs = [
715    "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims",
716    "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite",
717    "${CELLULAR_CALL_PATH}/services/common/include",
718    "${CELLULAR_CALL_PATH}/services/connection/include",
719    "${CELLULAR_CALL_PATH}/services/control/include",
720    "${CELLULAR_CALL_PATH}/services/manager/include",
721    "${CELLULAR_CALL_PATH}/services/utils/include",
722  ]
723
724  deps = [
725    "${CELLULAR_CALL_PATH}:tel_cellular_call",
726    "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims:tel_ims_call_api",
727    "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite:tel_satellite_call_api",
728  ]
729
730  external_deps = [
731    "ability_base:want",
732    "access_token:libaccesstoken_sdk",
733    "access_token:libnativetoken_shared",
734    "access_token:libtoken_setproc",
735    "c_utils:utils",
736    "call_manager:tel_call_manager_api",
737    "common_event_service:cesfwk_innerkits",
738    "core_service:libtel_common",
739    "core_service:tel_core_service_api",
740    "data_share:datashare_common",
741    "data_share:datashare_consumer",
742    "eventhandler:libeventhandler",
743    "ffrt:libffrt",
744    "graphic_surface:surface",
745    "hilog:libhilog",
746    "init:libbegetutil",
747    "ipc:ipc_single",
748    "safwk:system_ability_fwk",
749    "safwk:system_ability_fwk",
750    "samgr:samgr_proxy",
751    "samgr:samgr_proxy",
752    "telephony_data:tel_telephony_data",
753  ]
754  defines = [
755    "TELEPHONY_LOG_TAG = \"CellularCallImsTest\"",
756    "LOG_DOMAIN = 0xD000F00",
757  ]
758}
759
760ohos_unittest("cellular_call_ims_config_request_test") {
761  subsystem_name = "telephony"
762  part_name = "cellular_call"
763  test_module = "imstest"
764  module_out_path = part_name + "/" + part_name + "/" + test_module
765
766  sources = [
767    "config_request_test.cpp",
768  ]
769
770  include_dirs = [
771    "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims",
772    "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite",
773    "${CELLULAR_CALL_PATH}/services/common/include",
774    "${CELLULAR_CALL_PATH}/services/connection/include",
775    "${CELLULAR_CALL_PATH}/services/control/include",
776    "${CELLULAR_CALL_PATH}/services/manager/include",
777    "${CELLULAR_CALL_PATH}/services/utils/include",
778  ]
779
780  deps = [
781    "${CELLULAR_CALL_PATH}:tel_cellular_call",
782    "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims:tel_ims_call_api",
783    "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite:tel_satellite_call_api",
784  ]
785
786  external_deps = [
787    "ability_base:want",
788    "access_token:libaccesstoken_sdk",
789    "access_token:libnativetoken_shared",
790    "access_token:libtoken_setproc",
791    "c_utils:utils",
792    "call_manager:tel_call_manager_api",
793    "common_event_service:cesfwk_innerkits",
794    "core_service:libtel_common",
795    "core_service:tel_core_service_api",
796    "data_share:datashare_common",
797    "data_share:datashare_consumer",
798    "eventhandler:libeventhandler",
799    "ffrt:libffrt",
800    "graphic_surface:surface",
801    "hilog:libhilog",
802    "init:libbegetutil",
803    "ipc:ipc_single",
804    "safwk:system_ability_fwk",
805    "safwk:system_ability_fwk",
806    "samgr:samgr_proxy",
807    "samgr:samgr_proxy",
808    "telephony_data:tel_telephony_data",
809  ]
810  defines = [
811    "TELEPHONY_LOG_TAG = \"CellularCallImsTest\"",
812    "LOG_DOMAIN = 0xD000F00",
813  ]
814}
815
816ohos_unittest("cellular_call_ims_standardize_utils_test") {
817  subsystem_name = "telephony"
818  part_name = "cellular_call"
819  test_module = "imstest"
820  module_out_path = part_name + "/" + part_name + "/" + test_module
821
822  sources = [
823    "standardize_utils_test.cpp",
824  ]
825
826  include_dirs = [
827    "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims",
828    "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite",
829    "${CELLULAR_CALL_PATH}/services/common/include",
830    "${CELLULAR_CALL_PATH}/services/connection/include",
831    "${CELLULAR_CALL_PATH}/services/control/include",
832    "${CELLULAR_CALL_PATH}/services/manager/include",
833    "${CELLULAR_CALL_PATH}/services/utils/include",
834  ]
835
836  deps = [
837    "${CELLULAR_CALL_PATH}:tel_cellular_call",
838    "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims:tel_ims_call_api",
839    "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite:tel_satellite_call_api",
840  ]
841
842  external_deps = [
843    "ability_base:want",
844    "access_token:libaccesstoken_sdk",
845    "access_token:libnativetoken_shared",
846    "access_token:libtoken_setproc",
847    "c_utils:utils",
848    "call_manager:tel_call_manager_api",
849    "common_event_service:cesfwk_innerkits",
850    "core_service:libtel_common",
851    "core_service:tel_core_service_api",
852    "data_share:datashare_common",
853    "data_share:datashare_consumer",
854    "eventhandler:libeventhandler",
855    "ffrt:libffrt",
856    "graphic_surface:surface",
857    "hilog:libhilog",
858    "init:libbegetutil",
859    "ipc:ipc_single",
860    "safwk:system_ability_fwk",
861    "safwk:system_ability_fwk",
862    "samgr:samgr_proxy",
863    "samgr:samgr_proxy",
864    "telephony_data:tel_telephony_data",
865  ]
866  defines = [
867    "TELEPHONY_LOG_TAG = \"CellularCallImsTest\"",
868    "LOG_DOMAIN = 0xD000F00",
869  ]
870}
871
872group("unittest") {
873  testonly = true
874  deps = [
875    ":cellular_call_ims1_test",
876    ":cellular_call_ims2_test",
877    ":cellular_call_ims_call_callback_stub_test",
878    ":cellular_call_ims_callback_proxy_test",
879    ":cellular_call_ims_callback_stub_test",
880    ":cellular_call_ims_cellular_call_stub_test",
881    ":cellular_call_ims_cellular_call_supplement_test",
882    ":cellular_call_ims_config_request_test",
883    ":cellular_call_ims_connection_test",
884    ":cellular_call_ims_emergency_utils_test",
885    ":cellular_call_ims_hisysevent_test",
886    ":cellular_call_ims_mmi_code_message_test",
887    ":cellular_call_ims_standardize_utils_test",
888    ":cellular_call_ims_zero_branch1_test",
889    ":cellular_call_ims_zero_branch_test",
890  ]
891}
892