1# Copyright (c) 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. 13import("//build/test.gni") 14import("../../../../bluetooth_part.gni") 15import("../../../../castplus_cast_engine_part.gni") 16import("../../../../config.gni") 17import("../../../../efficiency_manager_part.gni") 18 19module_output_path = "multimedia_av_session/session" 20 21############################################################################### 22config("module_private_config") { 23 visibility = [ ":*" ] 24 25 include_dirs = [ 26 "../../ipc/base/", 27 "../../ipc/proxy/", 28 "../../ipc/stub/", 29 "../../server/", 30 "../../server/migrate/", 31 "../../server/softbus/", 32 "../../server/remote/", 33 "../../../../interfaces/inner_api/native/session/include/", 34 "../../../../frameworks/native/session/include", 35 "../../adapter/", 36 "../../../../utils/include/", 37 ] 38} 39 40common_deps = [ 41 "../../../../frameworks/common:avsession_common", 42 "../../../../frameworks/native/session:avsession_client", 43 "../../../../utils:avsession_utils", 44 "../../../session:avsession_item", 45 "../../../session:avsession_service", 46 "//third_party/bounds_checking_function:libsec_shared", 47 "//third_party/googletest:gtest_main", 48] 49 50common_external_deps = [ 51 "ability_base:want", 52 "ability_runtime:wantagent_innerkits", 53 "access_token:libaccesstoken_sdk", 54 "access_token:libnativetoken", 55 "access_token:libtoken_setproc", 56 "audio_framework:audio_client", 57 "background_task_mgr:bgtaskmgr_innerkits", 58 "c_utils:utils", 59 "device_manager:devicemanagersdk", 60 "dsoftbus:softbus_client", 61 "hilog:libhilog", 62 "image_framework:image_native", 63 "input:libmmi-client", 64 "ipc:ipc_single", 65 "jsoncpp:jsoncpp", 66 "samgr:samgr_proxy", 67 "window_manager:libdm_lite", 68] 69 70ohos_unittest("ParamsConfigOperatorTest") { 71 module_out_path = module_output_path 72 73 sources = [ "params_config_operator_test.cpp" ] 74 75 configs = [ ":module_private_config" ] 76 77 cflags_cc = [ "--coverage" ] 78 79 ldflags = [ "--coverage" ] 80 81 deps = common_deps 82 83 external_deps = common_external_deps 84} 85 86ohos_unittest("PermissionCheckerTest") { 87 module_out_path = module_output_path 88 89 sources = [ "permission_checker_test.cpp" ] 90 91 configs = [ ":module_private_config" ] 92 93 cflags_cc = [ "--coverage" ] 94 95 ldflags = [ "--coverage" ] 96 97 deps = common_deps 98 99 external_deps = common_external_deps 100} 101 102ohos_unittest("CommandSendLimitTest") { 103 module_out_path = module_output_path 104 105 sources = [ "command_send_limit_test.cpp" ] 106 107 configs = [ ":module_private_config" ] 108 109 cflags_cc = [ "--coverage" ] 110 111 ldflags = [ "--coverage" ] 112 113 deps = common_deps 114 115 external_deps = common_external_deps 116} 117 118ohos_unittest("AVSessionServiceProxyTest") { 119 module_out_path = module_output_path 120 121 sources = [ "avsession_service_proxy_test.cpp" ] 122 123 configs = [ ":module_private_config" ] 124 125 cflags_cc = [ "--coverage" ] 126 127 ldflags = [ "--coverage" ] 128 129 deps = common_deps 130 131 external_deps = common_external_deps 132} 133 134ohos_unittest("AVSessionServiceStubPermissionTest") { 135 module_out_path = module_output_path 136 137 sources = [ "avsession_service_stub_permission_test.cpp" ] 138 139 configs = [ ":module_private_config" ] 140 141 cflags_cc = [ "--coverage" ] 142 143 ldflags = [ "--coverage" ] 144 145 deps = common_deps 146 147 external_deps = common_external_deps 148 149 external_deps += [ "ability_base:base" ] 150} 151 152ohos_unittest("AVSessionServiceStubTest") { 153 module_out_path = module_output_path 154 155 sources = [ "avsession_service_stub_test.cpp" ] 156 157 configs = [ ":module_private_config" ] 158 159 cflags_cc = [ "--coverage" ] 160 161 ldflags = [ "--coverage" ] 162 163 deps = common_deps 164 165 external_deps = common_external_deps 166 167 external_deps += [ "ability_base:base" ] 168} 169 170ohos_unittest("AVSessionProxyTest") { 171 module_out_path = module_output_path 172 173 sources = [ "avsession_proxy_test.cpp" ] 174 175 configs = [ ":module_private_config" ] 176 177 cflags_cc = [ "--coverage" ] 178 179 ldflags = [ "--coverage" ] 180 181 deps = common_deps 182 183 external_deps = common_external_deps 184} 185 186ohos_unittest("AbilityManagerAdapterDemoTest") { 187 module_out_path = module_output_path 188 189 sources = [ "ability_manager_adapter_test.cpp" ] 190 191 configs = [ ":module_private_config" ] 192 193 cflags_cc = [ "--coverage" ] 194 195 ldflags = [ "--coverage" ] 196 197 deps = common_deps 198 199 external_deps = common_external_deps 200} 201 202ohos_unittest("AVControllerCallbackStubTest") { 203 module_out_path = module_output_path 204 205 sources = [ "avcontroller_callback_stub_test.cpp" ] 206 207 configs = [ ":module_private_config" ] 208 209 cflags_cc = [ "--coverage" ] 210 211 ldflags = [ "--coverage" ] 212 213 deps = common_deps 214 215 external_deps = common_external_deps 216 217 external_deps += [ "ability_base:base" ] 218} 219 220ohos_unittest("AVSessionControllerStubTest") { 221 module_out_path = module_output_path 222 223 sources = [ "avsession_controller_stub_test.cpp" ] 224 225 configs = [ ":module_private_config" ] 226 227 cflags_cc = [ "--coverage" ] 228 229 ldflags = [ "--coverage" ] 230 231 deps = common_deps 232 233 external_deps = common_external_deps 234 235 external_deps += [ "ability_base:base" ] 236} 237 238ohos_unittest("AVSessionDumperTest") { 239 module_out_path = module_output_path 240 241 sources = [ "avsession_dumper_test.cpp" ] 242 243 configs = [ ":module_private_config" ] 244 245 cflags_cc = [ "--coverage" ] 246 247 ldflags = [ "--coverage" ] 248 249 deps = common_deps 250 251 external_deps = common_external_deps 252 253 external_deps += [ "ability_base:base" ] 254} 255 256ohos_unittest("SessionListenerStubTest") { 257 module_out_path = module_output_path 258 259 sources = [ "session_listener_stub_test.cpp" ] 260 261 configs = [ ":module_private_config" ] 262 263 cflags_cc = [ "--coverage" ] 264 265 ldflags = [ "--coverage" ] 266 267 deps = common_deps 268 269 external_deps = common_external_deps 270 271 external_deps += [ "ability_base:base" ] 272} 273 274ohos_unittest("AVSessionCallbackStubTest") { 275 module_out_path = module_output_path 276 277 sources = [ "avsession_callback_stub_test.cpp" ] 278 279 configs = [ ":module_private_config" ] 280 281 cflags_cc = [ "--coverage" ] 282 283 ldflags = [ "--coverage" ] 284 285 deps = common_deps 286 287 external_deps = common_external_deps 288 289 external_deps += [ "ability_base:base" ] 290} 291 292ohos_unittest("AVControllerCallbackProxyTest") { 293 module_out_path = module_output_path 294 295 sources = [ "avcontroller_callback_proxy_test.cpp" ] 296 297 configs = [ ":module_private_config" ] 298 299 cflags_cc = [ "--coverage" ] 300 301 ldflags = [ "--coverage" ] 302 303 deps = common_deps 304 305 external_deps = common_external_deps 306} 307 308ohos_unittest("AVSessionCallbackProxyTest") { 309 module_out_path = module_output_path 310 311 sources = [ "avsession_callback_proxy_test.cpp" ] 312 313 configs = [ ":module_private_config" ] 314 315 cflags_cc = [ "--coverage" ] 316 317 ldflags = [ "--coverage" ] 318 319 deps = common_deps 320 321 external_deps = common_external_deps 322} 323 324ohos_unittest("AVSessionControllerProxyTest") { 325 module_out_path = module_output_path 326 327 sources = [ "avsession_controller_proxy_test.cpp" ] 328 329 configs = [ ":module_private_config" ] 330 331 cflags_cc = [ "--coverage" ] 332 333 ldflags = [ "--coverage" ] 334 335 deps = common_deps 336 337 external_deps = common_external_deps 338} 339 340ohos_unittest("SessionListenerProxyTest") { 341 module_out_path = module_output_path 342 343 sources = [ "session_listener_proxy_test.cpp" ] 344 345 configs = [ ":module_private_config" ] 346 347 cflags_cc = [ "--coverage" ] 348 349 ldflags = [ "--coverage" ] 350 351 deps = common_deps 352 353 external_deps = common_external_deps 354} 355 356ohos_unittest("BundleStatusAdapterTest") { 357 module_out_path = module_output_path 358 359 sources = [ "bundle_status_adapter_test.cpp" ] 360 361 configs = [ ":module_private_config" ] 362 363 cflags_cc = [ "--coverage" ] 364 365 ldflags = [ "--coverage" ] 366 367 deps = common_deps 368 369 external_deps = common_external_deps 370} 371 372ohos_unittest("MigrateAVSessionTest") { 373 module_out_path = module_output_path 374 375 sources = [ "migrate_avsession_test.cpp" ] 376 377 cflags_cc = [ "--coverage" ] 378 379 ldflags = [ "--coverage" ] 380 381 configs = [ ":module_private_config" ] 382 383 deps = [ 384 "../../../../frameworks/common:avsession_common", 385 "../../../../frameworks/native/session:avsession_client", 386 "../../../../utils:avsession_utils", 387 "../../../session:avsession_item", 388 "../../../session:avsession_server", 389 "../../../session:avsession_service", 390 "//third_party/bounds_checking_function:libsec_shared", 391 "//third_party/googletest:gtest_main", 392 "//third_party/jsoncpp:jsoncpp", 393 ] 394 395 external_deps = [ 396 "ability_base:want", 397 "ability_runtime:wantagent_innerkits", 398 "access_token:libaccesstoken_sdk", 399 "access_token:libnativetoken_shared", 400 "access_token:libtokensetproc_shared", 401 "audio_framework:audio_client", 402 "background_task_mgr:bgtaskmgr_innerkits", 403 "c_utils:utils", 404 "device_manager:devicemanagersdk", 405 "dsoftbus:softbus_client", 406 "hilog:libhilog", 407 "input:libmmi-client", 408 "ipc:ipc_single", 409 "samgr:samgr_proxy", 410 "window_manager:libdm_lite", 411 ] 412 413 cflags = [] 414 415 if (bluetooth_part_enable) { 416 cflags += [ "-DBLUETOOTH_ENABLE" ] 417 external_deps += [ "bluetooth:btframework" ] 418 } 419 420 if (efficiency_manager_enable_in_avsession) { 421 cflags += [ "-DEFFICIENCY_MANAGER_ENABLE" ] 422 } 423 424 if (multimedia_av_session_enable_trace_control) { 425 cflags += [ "-DENBABLE_AVSESSION_TRACE_CONTROL" ] 426 external_deps += [ "hitrace:hitrace_meter" ] 427 } 428 429 if (multimedia_av_session_enable_sysevent_control) { 430 cflags += [ "-DENABLE_AVSESSION_SYSEVENT_CONTROL" ] 431 external_deps += [ "hisysevent:libhisysevent" ] 432 } 433} 434 435ohos_unittest("SoftbusSessionManagerTest") { 436 module_out_path = module_output_path 437 438 sources = [ "softbus_session_manager_test.cpp" ] 439 440 cflags_cc = [ "--coverage" ] 441 442 ldflags = [ "--coverage" ] 443 444 configs = [ ":module_private_config" ] 445 446 deps = [ 447 "../../../session:avsession_server", 448 "//third_party/bounds_checking_function:libsec_shared", 449 "//third_party/googletest:gtest_main", 450 ] 451 452 external_deps = [ 453 "ability_base:want", 454 "ability_runtime:wantagent_innerkits", 455 "access_token:libaccesstoken_sdk", 456 "access_token:libnativetoken_shared", 457 "access_token:libtokensetproc_shared", 458 "audio_framework:audio_client", 459 "c_utils:utils", 460 "device_manager:devicemanagersdk", 461 "dsoftbus:softbus_client", 462 "hilog:libhilog", 463 "input:libmmi-client", 464 "ipc:ipc_single", 465 "samgr:samgr_proxy", 466 "window_manager:libdm_lite", 467 ] 468} 469 470ohos_unittest("AVSessionServiceTest") { 471 module_out_path = module_output_path 472 473 sources = [ "avsession_service_test.cpp" ] 474 475 configs = [ ":module_private_config" ] 476 477 deps = [ 478 "../../../../frameworks/common:avsession_common", 479 "../../../../frameworks/native/session:avsession_client", 480 "../../../../services/session:avsession_item", 481 "../../../../services/session:avsession_service", 482 "../../../../utils:avsession_utils", 483 "//third_party/bounds_checking_function:libsec_shared", 484 "//third_party/googletest:gtest_main", 485 ] 486 487 external_deps = [ 488 "ability_base:want", 489 "ability_runtime:wantagent_innerkits", 490 "access_token:libaccesstoken_sdk", 491 "access_token:libnativetoken_shared", 492 "access_token:libtokensetproc_shared", 493 "audio_framework:audio_client", 494 "background_task_mgr:bgtaskmgr_innerkits", 495 "c_utils:utils", 496 "device_manager:devicemanagersdk", 497 "dsoftbus:softbus_client", 498 "hilog:libhilog", 499 "image_framework:image_native", 500 "input:libmmi-client", 501 "ipc:ipc_single", 502 "samgr:samgr_proxy", 503 "window_manager:libdm_lite", 504 ] 505 506 cflags = [] 507 if (castplus_cast_engine_enable) { 508 cflags += [ "-DCASTPLUS_CAST_ENGINE_ENABLE" ] 509 deps += [ 510 "../../../../frameworks/native/session:avsession_cast_client", 511 "../../../../services/session:avsession_cast_item", 512 "../../../../services/session:avsession_router", 513 ] 514 external_deps += [ 515 "CollaborationFwk:cfwk_allconnect_client", 516 "CollaborationFwk:collaborationfwk_client", 517 "cast_engine:cast_engine_client", 518 ] 519 } 520 521 if (bluetooth_part_enable) { 522 cflags += [ "-DBLUETOOTH_ENABLE" ] 523 external_deps += [ "bluetooth:btframework" ] 524 } 525} 526 527ohos_unittest("AppManagerAdapterTest") { 528 module_out_path = module_output_path 529 530 sources = [ "appmanager_adapter_test.cpp" ] 531 532 configs = [ ":module_private_config" ] 533 534 deps = [ 535 "./../../../session:avsession_item", 536 "./../../../session:avsession_service", 537 "//third_party/bounds_checking_function:libsec_shared", 538 "//third_party/googletest:gtest_main", 539 ] 540 541 external_deps = [ 542 "ability_base:want", 543 "ability_runtime:app_manager", 544 "ability_runtime:wantagent_innerkits", 545 "access_token:libaccesstoken_sdk", 546 "access_token:libtokensetproc_shared", 547 "audio_framework:audio_client", 548 "c_utils:utils", 549 "hilog:libhilog", 550 "hitrace:hitrace_meter", 551 "image_framework:image_native", 552 "input:libmmi-client", 553 "ipc:ipc_single", 554 "safwk:system_ability_fwk", 555 "samgr:samgr_proxy", 556 "window_manager:libdm_lite", 557 ] 558} 559 560ohos_unittest("AbilityConnectHelperTest") { 561 module_out_path = module_output_path 562 563 sources = [ "ability_connect_helper_test.cpp" ] 564 565 configs = [ ":module_private_config" ] 566 567 deps = [ 568 "./../../../session:avsession_item", 569 "./../../../session:avsession_service", 570 "//third_party/bounds_checking_function:libsec_shared", 571 "//third_party/googletest:gtest_main", 572 ] 573 574 external_deps = [ 575 "ability_base:want", 576 "ability_runtime:app_manager", 577 "ability_runtime:wantagent_innerkits", 578 "access_token:libaccesstoken_sdk", 579 "access_token:libtokensetproc_shared", 580 "audio_framework:audio_client", 581 "background_task_mgr:bgtaskmgr_innerkits", 582 "c_utils:utils", 583 "hilog:libhilog", 584 "hitrace:hitrace_meter", 585 "image_framework:image_native", 586 "input:libmmi-client", 587 "ipc:ipc_single", 588 "safwk:system_ability_fwk", 589 "samgr:samgr_proxy", 590 "window_manager:libdm_lite", 591 ] 592} 593 594ohos_unittest("BkGrAudioControllerTest") { 595 module_out_path = module_output_path 596 597 sources = [ "bkgr_audio_controller_test.cpp" ] 598 599 configs = [ ":module_private_config" ] 600 601 deps = [ 602 "./../../../session:avsession_item", 603 "./../../../session:avsession_service", 604 "//third_party/bounds_checking_function:libsec_shared", 605 "//third_party/googletest:gtest_main", 606 ] 607 608 external_deps = [ 609 "ability_base:want", 610 "ability_runtime:app_manager", 611 "ability_runtime:wantagent_innerkits", 612 "access_token:libaccesstoken_sdk", 613 "access_token:libtokensetproc_shared", 614 "audio_framework:audio_client", 615 "background_task_mgr:bgtaskmgr_innerkits", 616 "bundle_framework:appexecfwk_core", 617 "c_utils:utils", 618 "hilog:libhilog", 619 "hitrace:hitrace_meter", 620 "image_framework:image_native", 621 "input:libmmi-client", 622 "ipc:ipc_single", 623 "safwk:system_ability_fwk", 624 "samgr:samgr_proxy", 625 "window_manager:libdm_lite", 626 ] 627} 628 629ohos_unittest("AudioAdapterTest") { 630 module_out_path = module_output_path 631 632 sources = [ "audio_adapter_test.cpp" ] 633 634 configs = [ ":module_private_config" ] 635 636 deps = [ 637 "../../../session:avsession_server", 638 "//third_party/bounds_checking_function:libsec_shared", 639 "//third_party/googletest:gtest_main", 640 ] 641 642 external_deps = [ 643 "audio_framework:audio_client", 644 "hilog:libhilog", 645 "window_manager:libdm_lite", 646 ] 647} 648 649ohos_unittest("RemoteUtilsTest") { 650 module_out_path = module_output_path 651 652 sources = [ "remote_utils_test.cpp" ] 653 654 configs = [ ":module_private_config" ] 655 656 deps = [ 657 "../../../session:avsession_server", 658 "//third_party/bounds_checking_function:libsec_shared", 659 "//third_party/googletest:gtest_main", 660 ] 661 662 external_deps = [ 663 "ability_base:want", 664 "ability_runtime:wantagent_innerkits", 665 "audio_framework:audio_client", 666 "hilog:libhilog", 667 "input:libmmi-client", 668 "safwk:system_ability_fwk", 669 "window_manager:libdm_lite", 670 ] 671} 672 673ohos_unittest("SessionStackTest") { 674 module_out_path = module_output_path 675 676 sources = [ "session_stack_test.cpp" ] 677 678 configs = [ ":module_private_config" ] 679 680 deps = [ 681 "../../../session:avsession_server", 682 "//third_party/bounds_checking_function:libsec_shared", 683 "//third_party/googletest:gtest_main", 684 ] 685 686 external_deps = [ 687 "ability_base:want", 688 "ability_runtime:app_manager", 689 "ability_runtime:wantagent_innerkits", 690 "access_token:libaccesstoken_sdk", 691 "access_token:libtokensetproc_shared", 692 "audio_framework:audio_client", 693 "background_task_mgr:bgtaskmgr_innerkits", 694 "c_utils:utils", 695 "device_manager:devicemanagersdk", 696 "hilog:libhilog", 697 "hitrace:hitrace_meter", 698 "input:libmmi-client", 699 "ipc:ipc_single", 700 "safwk:system_ability_fwk", 701 "samgr:samgr_proxy", 702 "window_manager:libdm_lite", 703 ] 704 705 cflags = [] 706 707 if (bluetooth_part_enable) { 708 cflags += [ "-DBLUETOOTH_ENABLE" ] 709 external_deps += [ "bluetooth:btframework" ] 710 } 711 712 if (efficiency_manager_enable_in_avsession) { 713 cflags += [ "-DEFFICIENCY_MANAGER_ENABLE" ] 714 } 715 716 if (multimedia_av_session_enable_trace_control) { 717 cflags += [ "-DENBABLE_AVSESSION_TRACE_CONTROL" ] 718 external_deps += [ "hitrace:hitrace_meter" ] 719 } 720 721 if (multimedia_av_session_enable_sysevent_control) { 722 cflags += [ "-DENABLE_AVSESSION_SYSEVENT_CONTROL" ] 723 external_deps += [ "hisysevent:libhisysevent" ] 724 } 725} 726 727ohos_unittest("AVRouterTest") { 728 module_out_path = module_output_path 729 730 sources = [ "avrouter_test.cpp" ] 731 732 configs = [ ":module_private_config" ] 733 734 deps = [ 735 "../../../session:avsession_server", 736 "//third_party/bounds_checking_function:libsec_shared", 737 "//third_party/googletest:gtest_main", 738 ] 739 740 external_deps = [ 741 "ability_base:want", 742 "ability_runtime:app_manager", 743 "ability_runtime:wantagent_innerkits", 744 "access_token:libaccesstoken_sdk", 745 "access_token:libtokenid_sdk", 746 "access_token:libtokensetproc_shared", 747 "audio_framework:audio_client", 748 "bundle_framework:appexecfwk_base", 749 "bundle_framework:appexecfwk_core", 750 "c_utils:utils", 751 "data_object:distributeddataobject_impl", 752 "device_manager:devicemanagersdk", 753 "hilog:libhilog", 754 "input:libmmi-client", 755 "ipc:ipc_single", 756 "safwk:system_ability_fwk", 757 "samgr:samgr_proxy", 758 "window_manager:libdm_lite", 759 ] 760 761 if (castplus_cast_engine_enable) { 762 cflags = [ "-DCASTPLUS_CAST_ENGINE_ENABLE" ] 763 deps += [ "../../../session:avsession_router" ] 764 } 765} 766 767if (castplus_cast_engine_enable) { 768 ohos_unittest("HwCastTest") { 769 module_out_path = module_output_path 770 771 sources = [ "hw_cast_test.cpp" ] 772 773 configs = [ ":module_private_config" ] 774 775 deps = [ 776 "../../../session:avsession_server", 777 "./../../../../frameworks/common:avsession_common", 778 "./../../../../frameworks/native/session:avsession_cast_client", 779 "./../../../../utils:avsession_utils", 780 "./../../../session:avsession_cast_item", 781 "./../../../session:avsession_item", 782 "./../../../session:avsession_router", 783 "//third_party/bounds_checking_function:libsec_shared", 784 "//third_party/googletest:gtest_main", 785 "//third_party/openssl:libcrypto_shared", 786 ] 787 788 external_deps = [ 789 "ability_base:want", 790 "ability_runtime:app_manager", 791 "ability_runtime:wantagent_innerkits", 792 "access_token:libaccesstoken_sdk", 793 "access_token:libtokenid_sdk", 794 "access_token:libtokensetproc_shared", 795 "audio_framework:audio_client", 796 "bundle_framework:appexecfwk_base", 797 "bundle_framework:appexecfwk_core", 798 "c_utils:utils", 799 "cast_engine:cast_engine_client", 800 "data_object:distributeddataobject_impl", 801 "device_manager:devicemanagersdk", 802 "hilog:libhilog", 803 "image_framework:image_native", 804 "input:libmmi-client", 805 "ipc:ipc_single", 806 "safwk:system_ability_fwk", 807 "samgr:samgr_proxy", 808 "window_manager:libdm_lite", 809 ] 810 } 811} 812 813if (castplus_cast_engine_enable) { 814 ohos_unittest("HwCastStreamPlayerTest") { 815 module_out_path = module_output_path 816 817 sources = [ "hw_cast_stream_player_test.cpp" ] 818 819 configs = [ ":module_private_config" ] 820 821 deps = [ 822 "../../../../frameworks/common:avsession_common", 823 "../../../session:avsession_cast_item", 824 "../../../session:avsession_item", 825 "../../../session:avsession_router", 826 "//third_party/bounds_checking_function:libsec_shared", 827 "//third_party/googletest:gtest_main", 828 ] 829 830 external_deps = [ 831 "ability_base:want", 832 "ability_runtime:app_manager", 833 "ability_runtime:wantagent_innerkits", 834 "access_token:libaccesstoken_sdk", 835 "access_token:libnativetoken_shared", 836 "access_token:libtokensetproc_shared", 837 "audio_framework:audio_client", 838 "bundle_framework:appexecfwk_base", 839 "bundle_framework:appexecfwk_core", 840 "c_utils:utils", 841 "cast_engine:cast_engine_client", 842 "data_object:distributeddataobject_impl", 843 "device_manager:devicemanagersdk", 844 "hilog:libhilog", 845 "image_framework:image_native", 846 "input:libmmi-client", 847 "ipc:ipc_single", 848 "safwk:system_ability_fwk", 849 "samgr:samgr_proxy", 850 "window_manager:libdm_lite", 851 ] 852 } 853} 854 855if (castplus_cast_engine_enable) { 856 ohos_unittest("AVSessionRadarTest") { 857 module_out_path = module_output_path 858 859 sources = [ "avsession_radar_test.cpp" ] 860 861 configs = [ ":module_private_config" ] 862 863 deps = [ 864 "./../../../../utils:avsession_utils", 865 "//third_party/bounds_checking_function:libsec_shared", 866 "//third_party/googletest:gtest_main", 867 "//third_party/openssl:libcrypto_shared", 868 ] 869 870 external_deps = [ 871 "bundle_framework:appexecfwk_base", 872 "bundle_framework:appexecfwk_core", 873 "c_utils:utils", 874 "device_manager:devicemanagersdk", 875 "hilog:libhilog", 876 "ipc:ipc_single", 877 "safwk:system_ability_fwk", 878 "samgr:samgr_proxy", 879 "window_manager:libdm_lite", 880 ] 881 } 882} 883 884############################################################################### 885group("av_session_server_unittest") { 886 testonly = true 887 888 deps = [ 889 ":AVControllerCallbackProxyTest", 890 ":AVControllerCallbackStubTest", 891 ":AVRouterTest", 892 ":AVSessionCallbackProxyTest", 893 ":AVSessionCallbackStubTest", 894 ":AVSessionControllerProxyTest", 895 ":AVSessionControllerStubTest", 896 ":AVSessionDumperTest", 897 ":AVSessionProxyTest", 898 ":AVSessionServiceProxyTest", 899 ":AVSessionServiceStubPermissionTest", 900 ":AVSessionServiceStubTest", 901 ":AVSessionServiceTest", 902 ":AbilityConnectHelperTest", 903 ":AbilityManagerAdapterDemoTest", 904 ":AppManagerAdapterTest", 905 ":AudioAdapterTest", 906 ":BkGrAudioControllerTest", 907 ":BundleStatusAdapterTest", 908 ":CommandSendLimitTest", 909 ":MigrateAVSessionTest", 910 ":ParamsConfigOperatorTest", 911 ":PermissionCheckerTest", 912 ":RemoteUtilsTest", 913 ":SessionListenerProxyTest", 914 ":SessionListenerStubTest", 915 ":SessionStackTest", 916 ":SoftbusSessionManagerTest", 917 ] 918 919 if (castplus_cast_engine_enable) { 920 deps += [ 921 ":AVSessionRadarTest", 922 ":HwCastStreamPlayerTest", 923 ":HwCastTest", 924 ] 925 } 926} 927############################################################################### 928