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