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