1# Copyright (c) 2021-2024 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") 15import("../../thermalmgr.gni") 16 17module_output_path = "thermal_manager/thermal_native" 18 19############################################################################### 20config("module_private_config") { 21 visibility = [ ":*" ] 22 include_dirs = [ 23 "include", 24 "mock_action/include", 25 "mock/include", 26 "${utils_path}/native/include", 27 "${thermal_manager_path}/services/native/include/thermal_action", 28 "${thermal_manager_path}/test/common/include", 29 "${thermal_service_zidl}/include", 30 "${ability_runtime_services_path}/appmgr/include", 31 "${thermal_inner_api}/native/include", 32 ] 33} 34 35deps_ex = [ 36 "ability_base:base", 37 "ability_base:want", 38 "ability_runtime:ability_manager", 39 "ability_runtime:app_manager", 40 "bundle_framework:appexecfwk_base", 41 "c_utils:utils", 42 "config_policy:configpolicy_util", 43 "ipc:ipc_core", 44 "hdf_core:libhdi", 45 "hdf_core:libpub_utils", 46 "hilog:libhilog", 47 "libxml2:libxml2", 48 "power_manager:powermgr_client", 49 "safwk:system_ability_fwk", 50 "samgr:samgr_proxy", 51 "common_event_service:cesfwk_innerkits", 52 "window_manager:libwm", 53 "drivers_interface_battery:libbattery_proxy_2.0", 54 "drivers_interface_thermal:libthermal_proxy_1.1", 55 "time_service:time_client", 56] 57 58# thermal mock action test 59ohos_unittest("ThermalMockActionTest") { 60 module_out_path = module_output_path 61 62 sources = [ 63 "${thermal_manager_path}/test/common/src/thermal_test.cpp", 64 "${thermal_manager_path}/test/unittest/mock_action/src/mock_socperf_action.cpp", 65 "src/thermal_mock_action_test.cpp", 66 ] 67 68 configs = [ 69 "${utils_path}:utils_config", 70 ":module_private_config", 71 "${utils_path}:coverage_flags", 72 ] 73 74 defines = [ "THERMAL_GTEST" ] 75 76 deps = [ 77 "${thermal_inner_api}:thermalsrv_client", 78 "${thermal_manager_path}/services:thermalservice", 79 "${thermal_manager_path}/test/common:mock_thermalsrv_client", 80 "//third_party/googletest:gtest_main", 81 ] 82 83 external_deps = deps_ex 84 85 if (defined(global_parts_info) && 86 defined(global_parts_info.powermgr_battery_manager)) { 87 defines += [ "BATTERY_MANAGER_ENABLE" ] 88 external_deps += [ "battery_manager:batterysrv_client" ] 89 } 90} 91 92# thermal policy test 93ohos_unittest("ThermalMgrPolicyTest") { 94 module_out_path = module_output_path 95 96 sources = [ 97 "${thermal_manager_path}/test/common/src/thermal_test.cpp", 98 "src/thermal_mgr_policy_test.cpp", 99 ] 100 101 configs = [ 102 "${utils_path}:utils_config", 103 ":module_private_config", 104 ] 105 106 deps = [ 107 "${thermal_inner_api}:thermalsrv_client", 108 "${thermal_manager_path}/services:thermalservice", 109 "${thermal_manager_path}/test/common:mock_thermalsrv_client", 110 "${thermal_service_zidl}:thermalmgr_proxy", 111 "${thermal_service_zidl}:thermalmgr_stub", 112 "//third_party/googletest:gtest_main", 113 ] 114 115 external_deps = deps_ex 116} 117 118# thermal level event test 119ohos_unittest("ThermalLevelEventTest") { 120 module_out_path = module_output_path 121 122 sources = [ 123 "${thermal_manager_path}/test/common/src/thermal_test.cpp", 124 "src/thermal_config_file_parser.cpp", 125 "src/thermal_level_event_test.cpp", 126 ] 127 128 configs = [ 129 "${utils_path}:utils_config", 130 ":module_private_config", 131 "${utils_path}:coverage_flags", 132 ] 133 134 deps = [ 135 "${thermal_inner_api}:thermalsrv_client", 136 "${thermal_manager_path}/services:thermalservice", 137 "${thermal_manager_path}/test/common:mock_thermalsrv_client", 138 "//third_party/googletest:gtest_main", 139 ] 140 141 external_deps = deps_ex 142 external_deps += [ 143 "access_token:libaccesstoken_sdk", 144 "access_token:libnativetoken", 145 "access_token:libprivacy_sdk", 146 "access_token:libtoken_setproc", 147 ] 148} 149 150# thermal client api test 151ohos_unittest("ThermalClientApiTest") { 152 module_out_path = module_output_path 153 154 sources = [ "src/thermal_client_api_test.cpp" ] 155 156 configs = [ 157 "${utils_path}:utils_config", 158 ":module_private_config", 159 "${utils_path}:coverage_flags", 160 ] 161 162 deps = [ 163 "${thermal_inner_api}:thermalsrv_client", 164 "${thermal_manager_path}/services:thermalservice", 165 "${thermal_manager_path}/test/common:mock_thermalsrv_client", 166 "//third_party/googletest:gtest_main", 167 ] 168 169 external_deps = deps_ex 170} 171 172# thermal action hub test 173ohos_unittest("ThermalActionHubTest") { 174 module_out_path = module_output_path 175 176 sources = [ 177 "${thermal_manager_path}/test/common/src/thermal_test.cpp", 178 "src/thermal_action_hub_test.cpp", 179 ] 180 181 configs = [ 182 "${utils_path}:utils_config", 183 ":module_private_config", 184 "${utils_path}:coverage_flags", 185 ] 186 187 deps = [ 188 "${thermal_inner_api}:thermalsrv_client", 189 "${thermal_manager_path}/services:thermalservice", 190 "${thermal_manager_path}/test/common:mock_thermalsrv_client", 191 "${thermal_service_zidl}:thermalmgr_proxy", 192 "${thermal_service_zidl}:thermalmgr_stub", 193 "//third_party/googletest:gtest_main", 194 ] 195 196 external_deps = deps_ex 197} 198 199# thermal action report test 200ohos_unittest("ThermalActionReportTest") { 201 module_out_path = module_output_path 202 203 sources = [ 204 "${thermal_manager_path}/test/common/src/thermal_test.cpp", 205 "src/thermal_action_report_test.cpp", 206 "src/thermal_config_file_parser.cpp", 207 ] 208 209 configs = [ 210 "${utils_path}:utils_config", 211 ":module_private_config", 212 "${utils_path}:coverage_flags", 213 ] 214 215 deps = [ 216 "${thermal_inner_api}:thermalsrv_client", 217 "${thermal_manager_path}/services:thermalservice", 218 "${thermal_manager_path}/test/common:mock_thermalsrv_client", 219 "//third_party/googletest:gtest_main", 220 ] 221 222 defines = [] 223 224 if (defined(global_parts_info) && 225 defined(global_parts_info.powermgr_battery_statistics)) { 226 defines = [ "BATTERY_STATS_ENABLE" ] 227 deps += [ "${batterystats_utils_path}:batterystats_utils" ] 228 external_deps = [ "battery_statistics:batterystats_client" ] 229 external_deps += deps_ex 230 } else { 231 external_deps = deps_ex 232 } 233 234 if (defined(global_parts_info) && 235 defined(global_parts_info.powermgr_battery_manager)) { 236 defines += [ "BATTERY_MANAGER_ENABLE" ] 237 external_deps += [ "battery_manager:batterysrv_client" ] 238 } 239} 240 241# thermal mock proxy test 242ohos_unittest("ThermalMockProxyTest") { 243 module_out_path = module_output_path 244 245 sources = [ 246 "mock/src/mock_thermal_remote_object.cpp", 247 "src/thermal_mock_proxy_test.cpp", 248 ] 249 250 configs = [ 251 "${utils_path}:utils_config", 252 ":module_private_config", 253 "${utils_path}:coverage_flags", 254 ] 255 256 deps = [ 257 "${thermal_inner_api}:thermalsrv_client", 258 "${thermal_manager_path}/services:thermalservice", 259 "${thermal_service_zidl}:thermalmgr_proxy", 260 "${thermal_service_zidl}:thermalmgr_stub", 261 "//third_party/googletest:gtest_main", 262 ] 263 264 external_deps = deps_ex 265} 266 267# thermal mock proxy remote test 268ohos_unittest("ThermalMockProxyRemoteTest") { 269 module_out_path = module_output_path 270 271 sources = [ 272 "mock/src/mock_peer_holder.cpp", 273 "mock/src/mock_thermal_remote_object.cpp", 274 "src/thermal_mock_proxy_remote_test.cpp", 275 ] 276 277 configs = [ 278 "${utils_path}:utils_config", 279 ":module_private_config", 280 "${utils_path}:coverage_flags", 281 ] 282 283 deps = [ 284 "${thermal_inner_api}:thermalsrv_client", 285 "${thermal_manager_path}/services:thermalservice", 286 "${thermal_service_zidl}:thermalmgr_proxy", 287 "${thermal_service_zidl}:thermalmgr_stub", 288 "//third_party/googletest:gtest_main", 289 ] 290 291 external_deps = deps_ex 292} 293 294# thermal mock proxy writeinterfacetoken test 295ohos_unittest("ThermalMockProxyWriteinterfacetokenTest") { 296 module_out_path = module_output_path 297 298 sources = [ 299 "mock/src/mock_message_parcel.cpp", 300 "mock/src/mock_thermal_remote_object.cpp", 301 "src/thermal_mock_proxy_writeinterfacetoken_test.cpp", 302 ] 303 304 configs = [ 305 "${utils_path}:utils_config", 306 ":module_private_config", 307 "${utils_path}:coverage_flags", 308 ] 309 310 defines = [ "MOCK_WRITE_INTERFACE_TOKEN_RETURN_FALSE" ] 311 312 deps = [ 313 "${thermal_inner_api}:thermalsrv_client", 314 "${thermal_manager_path}/services:thermalservice", 315 "${thermal_service_zidl}:thermalmgr_proxy", 316 "${thermal_service_zidl}:thermalmgr_stub", 317 "//third_party/googletest:gtest_main", 318 ] 319 320 external_deps = deps_ex 321} 322 323# thermal mock proxy writeremoteobject test 324ohos_unittest("ThermalMockProxyWriteremoteobjectTest") { 325 module_out_path = module_output_path 326 327 sources = [ 328 "mock/src/mock_message_parcel.cpp", 329 "mock/src/mock_parcel.cpp", 330 "mock/src/mock_thermal_remote_object.cpp", 331 "src/thermal_mock_proxy_writeremoteobject_test.cpp", 332 ] 333 334 configs = [ 335 "${utils_path}:utils_config", 336 ":module_private_config", 337 "${utils_path}:coverage_flags", 338 ] 339 340 defines = [ "MOCK_WRITE_REMOTE_OBJECT_RETURN_FALSE" ] 341 342 deps = [ 343 "${thermal_inner_api}:thermalsrv_client", 344 "${thermal_manager_path}/services:thermalservice", 345 "${thermal_service_zidl}:thermalmgr_proxy", 346 "${thermal_service_zidl}:thermalmgr_stub", 347 "//third_party/googletest:gtest_main", 348 ] 349 350 external_deps = deps_ex 351} 352 353# thermal mock proxy writevector test 354ohos_unittest("ThermalMockProxyWritevectorTest") { 355 module_out_path = module_output_path 356 357 sources = [ 358 "mock/src/mock_message_parcel.cpp", 359 "mock/src/mock_parcel.cpp", 360 "mock/src/mock_thermal_remote_object.cpp", 361 "src/thermal_mock_proxy_writevector_test.cpp", 362 ] 363 364 configs = [ 365 "${utils_path}:utils_config", 366 ":module_private_config", 367 "${utils_path}:coverage_flags", 368 ] 369 370 defines = [ "MOCK_WRITEVECTOR_RETURN_FALSE" ] 371 372 deps = [ 373 "${thermal_inner_api}:thermalsrv_client", 374 "${thermal_manager_path}/services:thermalservice", 375 "${thermal_service_zidl}:thermalmgr_proxy", 376 "${thermal_service_zidl}:thermalmgr_stub", 377 "//third_party/googletest:gtest_main", 378 ] 379 380 external_deps = deps_ex 381} 382 383# thermal mock proxy sendrequest test 384ohos_unittest("ThermalMockProxySendrequestTest") { 385 module_out_path = module_output_path 386 387 sources = [ 388 "mock/src/mock_message_parcel.cpp", 389 "mock/src/mock_thermal_remote_object.cpp", 390 "src/thermal_mock_proxy_sendrequest_test.cpp", 391 ] 392 393 configs = [ 394 "${utils_path}:utils_config", 395 ":module_private_config", 396 "${utils_path}:coverage_flags", 397 ] 398 399 defines = [ "MOCK_SEND_REQUEST_RETURN_ONE" ] 400 401 deps = [ 402 "${thermal_inner_api}:thermalsrv_client", 403 "${thermal_manager_path}/services:thermalservice", 404 "${thermal_service_zidl}:thermalmgr_proxy", 405 "${thermal_service_zidl}:thermalmgr_stub", 406 "//third_party/googletest:gtest_main", 407 ] 408 409 external_deps = deps_ex 410} 411 412# thermal utils test 413ohos_unittest("ThermalUtilsTest") { 414 module_out_path = module_output_path 415 416 sources = [ "src/thermal_utils_test.cpp" ] 417 418 configs = [ 419 "${utils_path}:utils_config", 420 ":module_private_config", 421 "${utils_path}:coverage_flags", 422 ] 423 424 deps = [ 425 "${thermal_inner_api}:thermalsrv_client", 426 "${thermal_manager_path}/services:thermalservice", 427 "${thermal_service_zidl}:thermalmgr_proxy", 428 "${thermal_service_zidl}:thermalmgr_stub", 429 "//third_party/googletest:gtest_main", 430 ] 431 432 external_deps = deps_ex 433} 434 435# thermal service death test 436ohos_unittest("ThermalServiceDeathTest") { 437 module_out_path = module_output_path 438 439 sources = [ 440 "mock/src/mock_thermal_remote_object.cpp", 441 "src/thermal_service_death_test.cpp", 442 ] 443 444 configs = [ 445 "${utils_path}:utils_config", 446 ":module_private_config", 447 "${utils_path}:coverage_flags", 448 ] 449 450 defines = [ "THERMAL_SERVICE_DEATH_UT" ] 451 452 deps = [ 453 "${thermal_inner_api}:thermalsrv_client", 454 "${thermal_manager_path}/services:thermalservice", 455 "${thermal_service_zidl}:thermalmgr_proxy", 456 "${thermal_service_zidl}:thermalmgr_stub", 457 "//third_party/googletest:gtest_main", 458 ] 459 460 external_deps = deps_ex 461} 462 463# thermal listener test 464ohos_unittest("ThermalListenerTest") { 465 module_out_path = module_output_path 466 467 sources = [ 468 "${thermal_manager_path}/test/common/src/thermal_test.cpp", 469 "src/thermal_listener_test.cpp", 470 ] 471 472 configs = [ 473 "${utils_path}:utils_config", 474 ":module_private_config", 475 "${utils_path}:coverage_flags", 476 ] 477 478 deps = [ 479 "${thermal_inner_api}:thermalmgr_listener", 480 "${thermal_inner_api}:thermalsrv_client", 481 "${thermal_manager_path}/services:thermalservice", 482 "${thermal_manager_path}/test/common:mock_thermalsrv_client", 483 "${thermal_service_zidl}:thermalmgr_proxy", 484 "${thermal_service_zidl}:thermalmgr_stub", 485 "//third_party/googletest:gtest_main", 486 ] 487 488 external_deps = deps_ex 489} 490 491# thermal client test 492ohos_unittest("ThermalClientTest") { 493 module_out_path = module_output_path 494 495 sources = [ 496 "mock/src/mock_thermal_remote_object.cpp", 497 "src/thermal_client_test.cpp", 498 ] 499 500 configs = [ 501 "${utils_path}:utils_config", 502 ":module_private_config", 503 "${utils_path}:coverage_flags", 504 ] 505 506 deps = [ 507 "${thermal_inner_api}:thermalmgr_listener", 508 "${thermal_inner_api}:thermalsrv_client", 509 "${thermal_manager_path}/services:thermalservice", 510 "${thermal_service_zidl}:thermalmgr_proxy", 511 "${thermal_service_zidl}:thermalmgr_stub", 512 "//third_party/googletest:gtest_main", 513 ] 514 515 external_deps = [ 516 "ability_base:base", 517 "ability_base:want", 518 "bundle_framework:appexecfwk_base", 519 "c_utils:utils", 520 "common_event_service:cesfwk_innerkits", 521 "drivers_interface_thermal:libthermal_proxy_1.1", 522 "hdf_core:libhdi", 523 "hdf_core:libpub_utils", 524 "hilog:libhilog", 525 "hisysevent:libhisysevent", 526 "ipc:ipc_core", 527 "libxml2:libxml2", 528 "power_manager:powermgr_client", 529 "safwk:system_ability_fwk", 530 "samgr:samgr_proxy", 531 "window_manager:libwm", 532 ] 533} 534 535# thermal mock stub test 536ohos_unittest("ThermalMockStubTest") { 537 module_out_path = module_output_path 538 defines = [ "THERMAL_GTEST" ] 539 sources = [ "src/thermal_mock_stub_test.cpp" ] 540 541 configs = [ 542 "${utils_path}:utils_config", 543 ":module_private_config", 544 "${utils_path}:coverage_flags", 545 ] 546 547 deps = [ 548 "${thermal_inner_api}:thermalsrv_client", 549 "${thermal_manager_path}/services:thermalservice", 550 "${thermal_service_zidl}:thermalmgr_proxy", 551 "${thermal_service_zidl}:thermalmgr_stub", 552 "//third_party/googletest:gtest_main", 553 ] 554 555 external_deps = deps_ex 556} 557 558# thermal mock stub getdescriptor test 559ohos_unittest("ThermalMockStubGetdescriptorTest") { 560 module_out_path = module_output_path 561 562 sources = [ "src/thermal_mock_stub_getdescriptor_test.cpp" ] 563 564 configs = [ 565 "${utils_path}:utils_config", 566 ":module_private_config", 567 "${utils_path}:coverage_flags", 568 ] 569 570 deps = [ 571 "${thermal_inner_api}:thermalsrv_client", 572 "${thermal_manager_path}/services:thermalservice", 573 "${thermal_service_zidl}:thermalmgr_proxy", 574 "${thermal_service_zidl}:thermalmgr_stub", 575 "//third_party/googletest:gtest_main", 576 ] 577 578 external_deps = deps_ex 579} 580 581# thermal action test 582ohos_unittest("ThermalActionTest") { 583 module_out_path = module_output_path 584 585 sources = [ 586 "mock/src/mock_thermal_remote_object.cpp", 587 "src/thermal_action_test.cpp", 588 ] 589 590 configs = [ 591 "${utils_path}:utils_config", 592 ":module_private_config", 593 "${utils_path}:coverage_flags", 594 ] 595 596 defines = [ "THERMAL_GTEST" ] 597 598 deps = [ 599 "${thermal_inner_api}:thermalsrv_client", 600 "${thermal_manager_path}/services:thermalservice", 601 "${thermal_service_zidl}:thermalmgr_proxy", 602 "${thermal_service_zidl}:thermalmgr_stub", 603 "//third_party/googletest:gtest_main", 604 ] 605 606 external_deps = deps_ex 607} 608 609# thermal observer test 610ohos_unittest("ThermalObserverTest") { 611 module_out_path = module_output_path 612 613 sources = [ 614 "mock/src/mock_thermal_remote_object.cpp", 615 "src/thermal_observer_test.cpp", 616 ] 617 618 configs = [ 619 "${utils_path}:utils_config", 620 ":module_private_config", 621 "${utils_path}:coverage_flags", 622 ] 623 624 defines = [ "THERMAL_OBSERVER_UT_TEST" ] 625 626 deps = [ 627 "${thermal_inner_api}:thermalsrv_client", 628 "${thermal_manager_path}/services:thermalservice", 629 "${thermal_service_zidl}:thermalmgr_proxy", 630 "${thermal_service_zidl}:thermalmgr_stub", 631 "//third_party/googletest:gtest_main", 632 ] 633 634 external_deps = deps_ex 635 636 if (defined(global_parts_info) && 637 defined(global_parts_info.powermgr_battery_manager)) { 638 defines += [ "BATTERY_MANAGER_ENABLE" ] 639 external_deps += [ "battery_manager:batterysrv_client" ] 640 } 641} 642 643# thermal service test 644ohos_unittest("ThermalServiceTest") { 645 module_out_path = module_output_path 646 defines = [ "THERMAL_GTEST" ] 647 sources = [ "src/thermal_service_test.cpp" ] 648 649 configs = [ 650 "${utils_path}:utils_config", 651 ":module_private_config", 652 "${utils_path}:coverage_flags", 653 ] 654 655 deps = [ 656 "${thermal_inner_api}:thermalsrv_client", 657 "${thermal_manager_path}/services:thermalservice", 658 "${thermal_service_zidl}:thermalmgr_proxy", 659 "${thermal_service_zidl}:thermalmgr_stub", 660 "//third_party/googletest:gmock_main", 661 "//third_party/googletest:gtest_main", 662 ] 663 664 external_deps = deps_ex 665} 666 667# thermal config sensor cluster test 668ohos_unittest("ThermalConfigSensorClusterTest") { 669 module_out_path = module_output_path 670 defines = [ "THERMAL_GTEST" ] 671 sources = [ "src/thermal_config_sensor_cluster_test.cpp" ] 672 673 configs = [ 674 "${utils_path}:utils_config", 675 ":module_private_config", 676 "${utils_path}:coverage_flags", 677 ] 678 679 deps = [ 680 "${thermal_inner_api}:thermalsrv_client", 681 "${thermal_manager_path}/services:thermalservice", 682 "${thermal_service_zidl}:thermalmgr_proxy", 683 "${thermal_service_zidl}:thermalmgr_stub", 684 "//third_party/googletest:gmock_main", 685 "//third_party/googletest:gtest_main", 686 ] 687 688 external_deps = deps_ex 689} 690 691# thermal mgr dump test 692ohos_unittest("ThermalMgrDumpTest") { 693 module_out_path = module_output_path 694 defines = [ "THERMAL_GTEST" ] 695 sources = [ "src/thermal_mgr_dump_test.cpp" ] 696 697 configs = [ 698 "${utils_path}:utils_config", 699 ":module_private_config", 700 "${utils_path}:coverage_flags", 701 ] 702 703 deps = [ 704 "${thermal_inner_api}:thermalsrv_client", 705 "${thermal_manager_path}/services:thermalservice", 706 "${thermal_service_zidl}:thermalmgr_proxy", 707 "${thermal_service_zidl}:thermalmgr_stub", 708 "//third_party/googletest:gmock_main", 709 "//third_party/googletest:gtest_main", 710 ] 711 712 external_deps = deps_ex 713} 714 715# thermal policy test 716ohos_unittest("ThermalPolicyTest") { 717 module_out_path = module_output_path 718 defines = [ "THERMAL_GTEST" ] 719 sources = [ "src/thermal_policy_test.cpp" ] 720 721 configs = [ 722 "${utils_path}:utils_config", 723 ":module_private_config", 724 "${utils_path}:coverage_flags", 725 ] 726 727 deps = [ 728 "${thermal_inner_api}:thermalsrv_client", 729 "${thermal_manager_path}/services:thermalservice", 730 "${thermal_service_zidl}:thermalmgr_proxy", 731 "${thermal_service_zidl}:thermalmgr_stub", 732 "//third_party/googletest:gmock_main", 733 "//third_party/googletest:gtest_main", 734 ] 735 736 external_deps = deps_ex 737} 738 739# fan fault detect test 740ohos_unittest("FanFaultDetectTest") { 741 module_out_path = module_output_path 742 defines = [ "THERMAL_GTEST" ] 743 sources = [ "src/fan_fault_detect_test.cpp" ] 744 745 configs = [ 746 "${utils_path}:utils_config", 747 ":module_private_config", 748 "${utils_path}:coverage_flags", 749 ] 750 751 deps = [ 752 "${thermal_inner_api}:thermalsrv_client", 753 "${thermal_manager_path}/services:thermalservice", 754 "${thermal_service_zidl}:thermalmgr_proxy", 755 "${thermal_service_zidl}:thermalmgr_stub", 756 "//third_party/googletest:gmock_main", 757 "//third_party/googletest:gtest_main", 758 ] 759 760 external_deps = [ 761 "hisysevent:libhisysevent", 762 "hisysevent:libhisyseventmanager", 763 ] 764 765 external_deps += deps_ex 766} 767 768group("unittest") { 769 testonly = true 770 deps = [ 771 ":FanFaultDetectTest", 772 ":ThermalActionHubTest", 773 ":ThermalActionReportTest", 774 ":ThermalActionTest", 775 ":ThermalClientApiTest", 776 ":ThermalClientTest", 777 ":ThermalConfigSensorClusterTest", 778 ":ThermalLevelEventTest", 779 ":ThermalListenerTest", 780 ":ThermalMgrDumpTest", 781 ":ThermalMgrPolicyTest", 782 ":ThermalMockActionTest", 783 ":ThermalMockProxyRemoteTest", 784 ":ThermalMockProxySendrequestTest", 785 ":ThermalMockProxyTest", 786 ":ThermalMockProxyWriteinterfacetokenTest", 787 ":ThermalMockProxyWriteremoteobjectTest", 788 ":ThermalMockProxyWritevectorTest", 789 ":ThermalMockStubGetdescriptorTest", 790 ":ThermalMockStubTest", 791 ":ThermalObserverTest", 792 ":ThermalPolicyTest", 793 ":ThermalServiceDeathTest", 794 ":ThermalServiceTest", 795 ":ThermalUtilsTest", 796 ] 797} 798