1# Copyright (c) 2022-2023 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("../../../../dsoftbus.gni") 16 17module_output_path = "dsoftbus/LNN" 18dsoftbus_root_path = "../../../.." 19 20ohos_unittest("HeartBeatMediumTest") { 21 module_out_path = module_output_path 22 sources = [ 23 "$dsoftbus_root_path/core/authentication/src/auth_deviceprofile_virtual.cpp", 24 "$dsoftbus_root_path/core/authentication/src/auth_interface.c", 25 "$dsoftbus_root_path/core/authentication/src/virtual/auth_device_common_key_virtual.c", 26 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/src/lnn_ble_heartbeat_virtual.c", 27 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/src/lnn_heartbeat_utils.c", 28 "$dsoftbus_root_path/core/bus_center/lnn/net_builder/src/lnn_cipherkey_manager_virtual.c", 29 "$dsoftbus_root_path/core/bus_center/lnn/net_builder/src/lnn_device_info_recovery_virtual.c", 30 "$dsoftbus_root_path/core/bus_center/utils/src/lnn_connection_addr_utils.c", 31 "$dsoftbus_root_path/tests/core/bus_center/lnn/net_builder/src/lnn_net_ledger_mock.cpp", 32 "$dsoftbus_root_path/tests/core/bus_center/mock_common/src/distribute_net_ledger_mock.cpp", 33 "$dsoftbus_root_path/tests/core/bus_center/test/heartbeat/hb_medium_mgr_test.cpp", 34 "$dsoftbus_root_path/tests/core/bus_center/test/mock/src/hb_strategy_mock.cpp", 35 ] 36 37 include_dirs = [ 38 "$dsoftbus_root_path/tests/core/bus_center/test/mock/include", 39 "$dsoftbus_root_path/tests/core/bus_center/mock_common/include", 40 "$dsoftbus_root_path/core/connection/p2p/common/include", 41 "$dsoftbus_root_path/core/connection/p2p/interface", 42 "$dsoftbus_root_path/core/bus_center/service/include", 43 "$dsoftbus_root_path/tests/core/bus_center/lnn/net_builder/include", 44 "$dsoftbus_root_path/core/authentication/include", 45 "$dsoftbus_root_path/core/authentication/interface", 46 "$dsoftbus_root_path/core/discovery/interface", 47 "$dsoftbus_root_path/core/discovery/manager/include", 48 "$dsoftbus_root_path/core/core/discovery/manager/include", 49 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/src", 50 "$dsoftbus_root_path/core/bus_center/interface", 51 "$dsoftbus_root_path/core/common/include", 52 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include", 53 "$dsoftbus_root_path/core/bus_center/utils/include", 54 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 55 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include", 56 "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", 57 "$dsoftbus_root_path/core/adapter/bus_center/include", 58 "$dsoftbus_root_path/adapter/common/include", 59 "$dsoftbus_root_path/core/common/include", 60 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", 61 "$dsoftbus_root_path/core/connection/wifi_direct", 62 "$dsoftbus_root_path/adapter/common/net/bluetooth/include", 63 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include", 64 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include", 65 "$dsoftbus_root_path/core/bus_center/lnn/net_buscenter/include", 66 "$dsoftbus_root_path/core/bus_center/lnn/disc_mgr/include", 67 ] 68 69 deps = [ 70 "$dsoftbus_root_path/adapter:softbus_adapter", 71 "$dsoftbus_root_path/core/common:softbus_utils", 72 "$dsoftbus_root_path/core/common/dfx/log:softbus_dfx_log", 73 "//third_party/googletest:gmock", 74 "//third_party/googletest:gtest_main", 75 ] 76 77 if (is_standard_system) { 78 external_deps = [ 79 "device_auth:deviceauth_sdk", 80 "hilog:libhilog", 81 ] 82 } else { 83 external_deps = [ 84 "hilog:libhilog", 85 "huks:libhukssdk", 86 ] 87 } 88 external_deps += [ 89 "c_utils:utils", 90 "ipc:ipc_core", 91 ] 92} 93 94ohos_unittest("HeartBeatFSMTest") { 95 module_out_path = module_output_path 96 sources = [ 97 "$dsoftbus_root_path/core/adapter/bus_center/src/lnn_deviceinfo_to_profile_virtual.c", 98 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/src/lnn_ble_heartbeat_virtual.c", 99 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/src/lnn_heartbeat_utils.c", 100 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/src/lnn_feature_capability.c", 101 "$dsoftbus_root_path/core/bus_center/utils/src/lnn_state_machine.c", 102 "$dsoftbus_root_path/tests/core/bus_center/lnn/net_builder/src/lnn_net_ledger_mock.cpp", 103 "$dsoftbus_root_path/tests/core/bus_center/mock_common/src/distribute_net_ledger_mock.cpp", 104 "$dsoftbus_root_path/tests/core/bus_center/mock_common/src/lnn_connection_mock.cpp", 105 "$dsoftbus_root_path/tests/core/bus_center/test/heartbeat/hb_fsm_test.cpp", 106 "$dsoftbus_root_path/tests/core/bus_center/test/mock/src/hb_fsm_mock.cpp", 107 ] 108 109 include_dirs = [ 110 "$dsoftbus_root_path/core/connection/interface", 111 "$dsoftbus_root_path/tests/core/bus_center/test/mock/include", 112 "$dsoftbus_root_path/tests/core/bus_center/mock_common/include", 113 "$dsoftbus_root_path/core/connection/p2p/common/include", 114 "$dsoftbus_root_path/core/connection/p2p/interface", 115 "$dsoftbus_root_path/core/bus_center/service/include", 116 "$dsoftbus_root_path/tests/core/bus_center/lnn/net_builder/include", 117 "$dsoftbus_root_path/core/authentication/include", 118 "$dsoftbus_root_path/core/authentication/interface", 119 "$dsoftbus_root_path/core/discovery/interface", 120 "$dsoftbus_root_path/core/discovery/manager/include", 121 "$dsoftbus_root_path/core/core/discovery/manager/include", 122 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/src", 123 "$dsoftbus_root_path/core/bus_center/interface", 124 "$dsoftbus_root_path/core/common/include", 125 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include", 126 "$dsoftbus_root_path/core/bus_center/utils/include", 127 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 128 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include", 129 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include", 130 "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", 131 "$dsoftbus_root_path/core/adapter/bus_center/include", 132 "$dsoftbus_root_path/adapter/common/include", 133 "$dsoftbus_root_path/core/common/include", 134 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", 135 "$dsoftbus_root_path/core/connection/wifi_direct", 136 ] 137 138 deps = [ 139 "$dsoftbus_root_path/adapter:softbus_adapter", 140 "$dsoftbus_root_path/core/common:softbus_utils", 141 "$dsoftbus_root_path/core/common/dfx/log:softbus_dfx_log", 142 "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core", 143 "//third_party/googletest:gmock", 144 "//third_party/googletest:gtest_main", 145 ] 146 147 if (is_standard_system) { 148 external_deps = [ 149 "c_utils:utils", 150 "device_auth:deviceauth_sdk", 151 "hilog:libhilog", 152 ] 153 } else { 154 external_deps = [ 155 "c_utils:utils", 156 "hilog:libhilog", 157 "huks:libhukssdk", 158 ] 159 } 160} 161 162ohos_unittest("HeartBeatStrategyTest") { 163 module_out_path = module_output_path 164 sources = [ 165 "$dsoftbus_root_path/tests/core/bus_center/test/heartbeat/hb_strategy_test.cpp", 166 "$dsoftbus_root_path/tests/core/bus_center/test/mock/src/hb_fsm_strategy_mock.cpp", 167 ] 168 169 include_dirs = [ 170 "$dsoftbus_root_path/adapter/common/include", 171 "$dsoftbus_root_path/core/adapter/bus_center/include", 172 "$dsoftbus_root_path/core/authentication/interface", 173 "$dsoftbus_root_path/core/common/include", 174 "$dsoftbus_root_path/core/bus_center/interface", 175 "$dsoftbus_root_path/core/bus_center/service/include", 176 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", 177 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include", 178 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/src", 179 "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", 180 "$dsoftbus_root_path/core/bus_center/lnn/net_buscenter/include", 181 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 182 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include", 183 "$dsoftbus_root_path/core/bus_center/utils/include", 184 "$dsoftbus_root_path/core/discovery/interface", 185 "$dsoftbus_root_path/core/discovery/manager/include", 186 "$dsoftbus_root_path/tests/core/bus_center/test/mock/include", 187 ] 188 189 deps = [ 190 "$dsoftbus_root_path/adapter:softbus_adapter", 191 "$dsoftbus_root_path/core/common:softbus_utils", 192 "$dsoftbus_root_path/core/common/dfx/log:softbus_dfx_log", 193 "//third_party/googletest:gmock", 194 "//third_party/googletest:gtest_main", 195 ] 196 197 if (is_standard_system) { 198 external_deps = [ 199 "device_auth:deviceauth_sdk", 200 "hilog:libhilog", 201 ] 202 } else { 203 external_deps = [ 204 "hilog:libhilog", 205 "huks:libhukssdk", 206 ] 207 } 208 external_deps += [ 209 "c_utils:utils", 210 "ipc:ipc_core", 211 ] 212} 213 214ohos_unittest("HeartBeatUtilsTest") { 215 module_out_path = module_output_path 216 sources = [ 217 "$dsoftbus_root_path/core/adapter/bus_center/src/lnn_deviceinfo_to_profile_virtual.c", 218 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/src/lnn_ble_heartbeat_virtual.c", 219 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/src/lnn_heartbeat_utils.c", 220 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/src/lnn_feature_capability.c", 221 "$dsoftbus_root_path/core/bus_center/utils/src/lnn_state_machine.c", 222 "$dsoftbus_root_path/core/connection/wifi_direct/wifi_direct_manager_virtual.c", 223 "$dsoftbus_root_path/tests/core/bus_center/lnn/net_builder/src/lnn_net_ledger_mock.cpp", 224 "$dsoftbus_root_path/tests/core/bus_center/mock_common/src/distribute_net_ledger_mock.cpp", 225 "$dsoftbus_root_path/tests/core/bus_center/mock_common/src/lnn_connection_mock.cpp", 226 "$dsoftbus_root_path/tests/core/bus_center/test/heartbeat/hb_utils_test.cpp", 227 "$dsoftbus_root_path/tests/core/bus_center/test/mock/src/hb_fsm_mock.cpp", 228 ] 229 230 include_dirs = [ 231 "$dsoftbus_root_path/core/connection/interface", 232 "$dsoftbus_root_path/tests/core/bus_center/test/mock/include", 233 "$dsoftbus_root_path/tests/core/bus_center/mock_common/include", 234 "$dsoftbus_root_path/core/connection/p2p/common/include", 235 "$dsoftbus_root_path/core/connection/p2p/interface", 236 "$dsoftbus_root_path/core/bus_center/service/include", 237 "$dsoftbus_root_path/tests/core/bus_center/lnn/net_builder/include", 238 "$dsoftbus_root_path/core/authentication/include", 239 "$dsoftbus_root_path/core/authentication/interface", 240 "$dsoftbus_root_path/core/discovery/interface", 241 "$dsoftbus_root_path/core/discovery/manager/include", 242 "$dsoftbus_root_path/core/core/discovery/manager/include", 243 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/src", 244 "$dsoftbus_root_path/core/bus_center/interface", 245 "$dsoftbus_root_path/core/common/include", 246 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include", 247 "$dsoftbus_root_path/core/bus_center/utils/include", 248 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 249 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include", 250 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include", 251 "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", 252 "$dsoftbus_root_path/core/adapter/bus_center/include", 253 "$dsoftbus_root_path/adapter/common/include", 254 "$dsoftbus_root_path/core/common/include", 255 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", 256 "$dsoftbus_root_path/core/connection/wifi_direct", 257 ] 258 259 deps = [ 260 "$dsoftbus_root_path/adapter:softbus_adapter", 261 "$dsoftbus_root_path/core/common:softbus_utils", 262 "$dsoftbus_root_path/core/common/dfx/log:softbus_dfx_log", 263 "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core", 264 "//third_party/googletest:gmock", 265 "//third_party/googletest:gtest_main", 266 ] 267 268 if (is_standard_system) { 269 external_deps = [ 270 "c_utils:utils", 271 "device_auth:deviceauth_sdk", 272 "hilog:libhilog", 273 ] 274 } else { 275 external_deps = [ 276 "c_utils:utils", 277 "hilog:libhilog", 278 "huks:libhukssdk", 279 ] 280 } 281} 282 283ohos_unittest("HeartBeatCtrlTest") { 284 module_out_path = module_output_path 285 sources = [ 286 "$dsoftbus_root_path/core/bus_center/lnn/decision_center/src/lnn_decision_center_virtual.c", 287 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/src/lnn_heartbeat_ctrl.c", 288 "$dsoftbus_root_path/tests/core/bus_center/lnn/net_builder/src/lnn_net_ledger_mock.cpp", 289 "$dsoftbus_root_path/tests/core/bus_center/lnn/net_buscenter/lnn_ip_network_impl_mock.cpp", 290 "$dsoftbus_root_path/tests/core/bus_center/mock_common/src/distribute_net_ledger_mock.cpp", 291 "$dsoftbus_root_path/tests/core/bus_center/test/heartbeat/hb_ctrl_test.cpp", 292 "$dsoftbus_root_path/tests/core/bus_center/test/mock/src/hb_ctrl_deps_mock.cpp", 293 "$dsoftbus_root_path/tests/core/bus_center/test/mock/src/hb_strategy_mock.cpp", 294 ] 295 296 include_dirs = [ 297 "$dsoftbus_root_path/tests/core/bus_center/test/mock/include", 298 "$dsoftbus_root_path/tests/core/bus_center/lnn/net_builder/include", 299 "$dsoftbus_root_path/tests/core/bus_center/mock_common/include", 300 "$dsoftbus_root_path/core/connection/p2p/common/include", 301 "$dsoftbus_root_path/core/connection/p2p/interface", 302 "$dsoftbus_root_path/core/bus_center/service/include", 303 "$dsoftbus_root_path/tests/core/bus_center/lnn/net_builder/include", 304 "$dsoftbus_root_path/tests/core/bus_center/lnn/net_builder/mock", 305 "$dsoftbus_root_path/core/authentication/include", 306 "$dsoftbus_root_path/core/authentication/interface", 307 "$dsoftbus_root_path/core/discovery/interface", 308 "$dsoftbus_root_path/core/discovery/manager/include", 309 "$dsoftbus_root_path/core/core/discovery/manager/include", 310 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/src", 311 "$dsoftbus_root_path/core/bus_center/interface", 312 "$dsoftbus_root_path/core/common/include", 313 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include", 314 "$dsoftbus_root_path/core/bus_center/utils/include", 315 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 316 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include", 317 "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", 318 "$dsoftbus_root_path/core/adapter/bus_center/include", 319 "$dsoftbus_root_path/adapter/common/include", 320 "$dsoftbus_root_path/core/common/include", 321 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", 322 "$dsoftbus_root_path/core/connection/wifi_direct", 323 "$dsoftbus_root_path/adapter/common/net/bluetooth/include", 324 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include", 325 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include", 326 "$dsoftbus_root_path/core/bus_center/lnn/net_buscenter/include", 327 "$dsoftbus_root_path/core/bus_center/lnn/disc_mgr/include", 328 "$dsoftbus_root_path/core/bus_center/lnn/decision_center/include", 329 "$dsoftbus_root_path/core/bus_center/ipc/include", 330 "$dsoftbus_root_path/tests/core/bus_center/lnn/net_buscenter", 331 "$dsoftbus_root_path/adapter/common/net/bluetooth/broadcast/interface", 332 ] 333 334 deps = [ 335 "$dsoftbus_root_path/adapter:softbus_adapter", 336 "$dsoftbus_root_path/core/common:softbus_utils", 337 "$dsoftbus_root_path/core/common/dfx/log:softbus_dfx_log", 338 "//third_party/googletest:gmock", 339 "//third_party/googletest:gtest_main", 340 ] 341 342 if (is_standard_system) { 343 external_deps = [ 344 "device_auth:deviceauth_sdk", 345 "hilog:libhilog", 346 ] 347 } else { 348 external_deps = [ 349 "hilog:libhilog", 350 "huks:libhukssdk", 351 ] 352 } 353 external_deps += [ 354 "c_utils:utils", 355 "ipc:ipc_core", 356 ] 357} 358 359ohos_unittest("ClientProxyTest") { 360 module_out_path = "dsoftbus/bus_center" 361 sources = [ 362 "$dsoftbus_root_path/tests/core/bus_center/test/ipc/client_proxy_test.cpp", 363 ] 364 365 include_dirs = [ 366 "$dsoftbus_root_path/adapter/common/include", 367 "$dsoftbus_root_path/core/bus_center/ipc/standard/include", 368 "$dsoftbus_root_path/sdk/frame/standard/include", 369 "$dsoftbus_root_path/interfaces/kits/discovery", 370 "$dsoftbus_root_path/interfaces/kits/transport", 371 "$dsoftbus_root_path/core/frame/standard/init/include", 372 "$dsoftbus_root_path/core/frame/standard/client_manager/include", 373 "$dsoftbus_root_path/core/common/include", 374 "$dsoftbus_root_path/core/frame/common/include", 375 "../../transmission/ipc/samgr/interfaces/innerkits/samgr_proxy/include", 376 "//foundation/window/window_manager/previewer/mock", 377 "//foundation/communication/ipc/interfaces/innerkits/c/ipc/include", 378 "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include", 379 "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy/include/", 380 ] 381 382 deps = [ 383 "$dsoftbus_root_path/adapter:softbus_adapter", 384 "$dsoftbus_root_path/core/common:softbus_utils", 385 "$dsoftbus_root_path/core/common/dfx/log:softbus_dfx_log", 386 "$dsoftbus_root_path/core/frame:softbus_server", 387 "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core", 388 "//third_party/googletest:gmock", 389 "//third_party/googletest:gtest_main", 390 ] 391 392 if (is_standard_system) { 393 external_deps = [ 394 "c_utils:utils", 395 "device_auth:deviceauth_sdk", 396 "hilog:libhilog", 397 "samgr:samgr_proxy", 398 ] 399 } else { 400 external_deps = [ 401 "c_utils:utils", 402 "hilog:libhilog", 403 "huks:libhukssdk", 404 "samgr:samgr_proxy", 405 ] 406 } 407} 408 409ohos_unittest("BusCenterIpcTest") { 410 module_out_path = module_output_path 411 sources = [ 412 "$dsoftbus_root_path/tests/core/bus_center/test/ipc/bus_center_ipc_test.cpp", 413 "$dsoftbus_root_path/tests/core/bus_center/test/mock/src/bus_center_ipc_mock.cpp", 414 ] 415 416 include_dirs = [ 417 "$dsoftbus_root_path/core/common/include", 418 "$dsoftbus_root_path/tests/core/bus_center/test/mock/include", 419 "$dsoftbus_root_path/core/bus_center/service/include", 420 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include", 421 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 422 "$dsoftbus_root_path/core/authentication/interface", 423 "$dsoftbus_root_path/core/discovery/manager/include", 424 "$dsoftbus_root_path/core/bus_center/ipc/include", 425 "$dsoftbus_root_path/core/bus_center/ipc/standard/include", 426 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include", 427 "$dsoftbus_root_path/core/discovery/interface", 428 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/time_sync/include", 429 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include", 430 "$dsoftbus_root_path/core/bus_center/interface", 431 "$dsoftbus_root_path/core/bus_center/ipc/standard/src", 432 "$dsoftbus_root_path/core/bus_center/utils/include", 433 "$dsoftbus_root_path/core/bus_center/ipc/standard/include", 434 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", 435 "$dsoftbus_root_path/core/bus_center/lnn/meta_node/include", 436 ] 437 438 deps = [ 439 "$dsoftbus_root_path/adapter:softbus_adapter", 440 "$dsoftbus_root_path/core/common:softbus_utils", 441 "$dsoftbus_root_path/core/common/dfx/log:softbus_dfx_log", 442 "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core", 443 "//third_party/googletest:gmock", 444 "//third_party/googletest:gtest_main", 445 ] 446 447 if (is_standard_system) { 448 external_deps = [ 449 "c_utils:utils", 450 "device_auth:deviceauth_sdk", 451 "hilog:libhilog", 452 ] 453 } else { 454 external_deps = [ 455 "c_utils:utils", 456 "hilog:libhilog", 457 "huks:libhukssdk", 458 ] 459 } 460} 461 462group("unittest") { 463 testonly = true 464 deps = [ 465 ":BusCenterIpcTest", 466 ":ClientProxyTest", 467 ":HeartBeatCtrlTest", 468 ":HeartBeatFSMTest", 469 ":HeartBeatMediumTest", 470 ":HeartBeatStrategyTest", 471 ] 472} 473