1# Copyright (c) 2022-2025 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/soft_bus/transmission" 18 19ohos_unittest("TransClientSessionManagerTest") { 20 sanitize = { 21 cfi = true 22 cfi_cross_dso = true 23 debug = true 24 } 25 module_out_path = module_output_path 26 sources = [ "client_trans_session_manager_test.cpp" ] 27 28 include_dirs = [ 29 "$dsoftbus_dfx_path/interface/include/form", 30 "$dsoftbus_root_path/core/authentication/interface", 31 "$dsoftbus_root_path/core/bus_center/interface", 32 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 33 "$dsoftbus_root_path/core/common/include", 34 "$dsoftbus_root_path/core/connection/interface", 35 "$dsoftbus_root_path/core/discovery/interface", 36 "$dsoftbus_root_path/core/discovery/manager/include", 37 "$dsoftbus_root_path/core/frame/common/include", 38 "$dsoftbus_root_path/core/transmission/common/include", 39 "$dsoftbus_root_path/core/transmission/session/include", 40 "$dsoftbus_root_path/interfaces/kits/authentication", 41 "$dsoftbus_root_path/interfaces/kits/bus_center", 42 "$dsoftbus_root_path/interfaces/kits/connect", 43 "$dsoftbus_root_path/interfaces/kits/disc", 44 "$dsoftbus_root_path/interfaces/kits/lnn", 45 "$dsoftbus_root_path/sdk/transmission/session/include", 46 ] 47 48 deps = [ 49 "$dsoftbus_dfx_path:softbus_dfx", 50 "$dsoftbus_root_path/core/common:softbus_utils", 51 "$dsoftbus_root_path/core/frame:softbus_server", 52 "$dsoftbus_root_path/tests/sdk:softbus_client_static", 53 "$dsoftbus_root_path/adapter:softbus_adapter", 54 ] 55 56 if (is_standard_system) { 57 external_deps = [ 58 "c_utils:utils", 59 "hilog:libhilog", 60 ] 61 } else { 62 external_deps = [ 63 "c_utils:utils", 64 "hilog:libhilog", 65 ] 66 } 67} 68 69ohos_unittest("TransClientSessionManagerExTest") { 70 sanitize = { 71 cfi = true 72 cfi_cross_dso = true 73 debug = true 74 } 75 module_out_path = module_output_path 76 sources = [ 77 "client_trans_session_manager_ex_test.cpp", 78 "$dsoftbus_root_path/tests/sdk/transmission/session/mock/src/trans_common_mock.cpp", 79 "$dsoftbus_root_path/tests/sdk/transmission/session/mock/src/trans_socket_mgr_mock.cpp", 80 ] 81 82 include_dirs = [ 83 "$dsoftbus_root_path/core/common/include", 84 "$dsoftbus_root_path/core/frame/common/include", 85 "$dsoftbus_root_path/core/transmission/common/include", 86 "$dsoftbus_root_path/sdk/transmission/session/include", 87 "$dsoftbus_root_path/sdk/transmission/session/src", 88 "$dsoftbus_root_path/sdk/bus_center/manager/include", 89 "$dsoftbus_root_path/sdk/transmission/trans_channel/manager/include", 90 "$dsoftbus_root_path/components/nstackx/fillp/include", 91 "$dsoftbus_root_path/sdk/transmission/trans_channel/udp/file/include", 92 "$dsoftbus_root_path/sdk/transmission/trans_channel/proxy/include", 93 "$dsoftbus_root_path/sdk/transmission/trans_channel/tcp_direct/include", 94 "$dsoftbus_root_path/sdk/transmission/trans_channel/udp/common/include", 95 "$dsoftbus_root_path/sdk/transmission/ipc/include", 96 "$dsoftbus_root_path/interfaces/inner_kits/transport", 97 "$dsoftbus_root_path/sdk/transmission/session/cpp/include", 98 "$dsoftbus_root_path/tests/sdk/transmission/session/mock/include", 99 ] 100 101 deps = [ 102 "$dsoftbus_dfx_path:softbus_dfx", 103 "$dsoftbus_root_path/core/common:softbus_utils", 104 "$dsoftbus_root_path/core/frame:softbus_server", 105 "$dsoftbus_root_path/adapter:softbus_adapter", 106 ] 107 108 external_deps = [ 109 "c_utils:utils", 110 "hilog:libhilog", 111 "googletest:gmock", 112 "googletest:gtest_main", 113 ] 114} 115 116ohos_unittest("TransClientSessionServiceTest") { 117 module_out_path = module_output_path 118 sources = [ "client_trans_session_service_test.cpp" ] 119 120 include_dirs = [ 121 "$dsoftbus_dfx_path/interface/include/form", 122 "$dsoftbus_root_path/adapter/default_config/spec_config", 123 "$dsoftbus_root_path/core/authentication/interface", 124 "$dsoftbus_root_path/core/bus_center/interface", 125 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 126 "$dsoftbus_root_path/core/common/include", 127 "$dsoftbus_root_path/core/connection/interface", 128 "$dsoftbus_root_path/core/discovery/interface", 129 "$dsoftbus_root_path/core/discovery/manager/include", 130 "$dsoftbus_root_path/core/frame/common/include", 131 "$dsoftbus_root_path/core/transmission/common/include", 132 "$dsoftbus_root_path/core/transmission/session/include", 133 "$dsoftbus_root_path/interfaces/kits/authentication", 134 "$dsoftbus_root_path/interfaces/kits/bus_center", 135 "$dsoftbus_root_path/interfaces/kits/connect", 136 "$dsoftbus_root_path/interfaces/kits/disc", 137 "$dsoftbus_root_path/interfaces/kits/lnn", 138 "$dsoftbus_root_path/sdk/transmission/session/include", 139 ] 140 141 deps = [ 142 "$dsoftbus_dfx_path:softbus_dfx", 143 "$dsoftbus_root_path/core/common:softbus_utils", 144 "$dsoftbus_root_path/core/frame:softbus_server", 145 "$dsoftbus_root_path/tests/sdk:softbus_client_static", 146 ] 147 148 if (is_standard_system) { 149 external_deps = [ 150 "c_utils:utils", 151 "hilog:libhilog", 152 ] 153 } else { 154 external_deps = [ 155 "c_utils:utils", 156 "hilog:libhilog", 157 ] 158 } 159} 160 161ohos_unittest("TransClientSessionCallbackTest") { 162 sanitize = { 163 cfi = true 164 cfi_cross_dso = true 165 debug = false 166 } 167 module_out_path = module_output_path 168 sources = [ "client_trans_session_callback_test.cpp" ] 169 170 include_dirs = [ 171 "$dsoftbus_dfx_path/interface/include/form", 172 "$dsoftbus_root_path/adapter/default_config/spec_config", 173 "$dsoftbus_root_path/adapter/common/security/access_token/include", 174 "$dsoftbus_root_path/components/nstackx/fillp/include", 175 "$dsoftbus_root_path/core/authentication/interface", 176 "$dsoftbus_root_path/core/bus_center/interface", 177 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 178 "$dsoftbus_root_path/core/common/include", 179 "$dsoftbus_root_path/core/connection/interface", 180 "$dsoftbus_root_path/core/discovery/interface", 181 "$dsoftbus_root_path/core/discovery/manager/include", 182 "$dsoftbus_root_path/core/frame/common/include", 183 "$dsoftbus_root_path/core/transmission/common/include", 184 "$dsoftbus_root_path/core/transmission/session/include", 185 "$dsoftbus_root_path/interfaces/kits/authentication", 186 "$dsoftbus_root_path/interfaces/kits/bus_center", 187 "$dsoftbus_root_path/interfaces/kits/connect", 188 "$dsoftbus_root_path/interfaces/kits/disc", 189 "$dsoftbus_root_path/interfaces/kits/lnn", 190 "$dsoftbus_root_path/sdk/transmission/session/include", 191 "$dsoftbus_root_path/sdk/transmission/session/src", 192 "$dsoftbus_root_path/sdk/transmission/trans_channel/proxy/include", 193 "$dsoftbus_root_path/sdk/transmission/trans_channel/udp/common/include", 194 "$dsoftbus_root_path/sdk/transmission/trans_channel/udp/file/include", 195 ] 196 197 deps = [ 198 "$dsoftbus_dfx_path:softbus_dfx", 199 "$dsoftbus_root_path/core/common:softbus_utils", 200 "$dsoftbus_root_path/core/frame:softbus_server", 201 "$dsoftbus_root_path/tests/sdk:softbus_client_static", 202 ] 203 204 external_deps = [ 205 "c_utils:utils", 206 "hilog:libhilog", 207 ] 208} 209 210ohos_unittest("TransClientSessionCallbackExTest") { 211 sanitize = { 212 cfi = true 213 cfi_cross_dso = true 214 debug = false 215 } 216 module_out_path = module_output_path 217 sources = [ 218 "client_trans_session_callback_ex_test.cpp", 219 "$dsoftbus_root_path/tests/sdk/transmission/session/mock/src/trans_session_mgr_mock.cpp", 220 ] 221 222 include_dirs = [ 223 "$dsoftbus_dfx_path/interface/include/form", 224 "$dsoftbus_root_path/adapter/common/security/access_token/include", 225 "$dsoftbus_root_path/adapter/default_config/spec_config", 226 "$dsoftbus_root_path/br_proxy", 227 "$dsoftbus_root_path/br_proxy/common/include", 228 "$dsoftbus_root_path/components/nstackx/fillp/include", 229 "$dsoftbus_root_path/core/authentication/interface", 230 "$dsoftbus_root_path/core/authentication/interface", 231 "$dsoftbus_root_path/core/bus_center/interface", 232 "$dsoftbus_root_path/core/bus_center/interface", 233 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", 234 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 235 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 236 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include", 237 "$dsoftbus_root_path/core/bus_center/service/include", 238 "$dsoftbus_root_path/core/common/include", 239 "$dsoftbus_root_path/core/common/security/permission/include", 240 "$dsoftbus_root_path/core/connection/interface", 241 "$dsoftbus_root_path/core/connection/proxy", 242 "$dsoftbus_root_path/core/discovery/interface", 243 "$dsoftbus_root_path/core/discovery/manager/include", 244 "$dsoftbus_root_path/core/frame/common/include", 245 "$dsoftbus_root_path/core/transmission/common/include", 246 "$dsoftbus_root_path/core/transmission/ipc/include", 247 "$dsoftbus_root_path/core/transmission/session/include", 248 "$dsoftbus_root_path/core/transmission/trans_channel/common/include", 249 "$dsoftbus_root_path/interfaces/inner_kits/transport", 250 "$dsoftbus_root_path/interfaces/kits/authentication", 251 "$dsoftbus_root_path/interfaces/kits/bus_center", 252 "$dsoftbus_root_path/interfaces/kits/connect", 253 "$dsoftbus_root_path/interfaces/kits/disc", 254 "$dsoftbus_root_path/interfaces/kits/lnn", 255 "$dsoftbus_root_path/sdk/frame/common/include", 256 "$dsoftbus_root_path/sdk/transmission/ipc/include", 257 "$dsoftbus_root_path/sdk/transmission/session/include", 258 "$dsoftbus_root_path/sdk/transmission/session/src", 259 "$dsoftbus_root_path/sdk/transmission/trans_channel/proxy/include", 260 "$dsoftbus_root_path/sdk/transmission/trans_channel/udp/common/include", 261 "$dsoftbus_root_path/sdk/transmission/trans_channel/udp/file/include", 262 "$dsoftbus_root_path/tests/br_proxy/mock", 263 "$dsoftbus_root_path/tests/sdk/transmission/session/mock/include", 264 ] 265 266 deps = [ 267 "$dsoftbus_dfx_path:softbus_dfx", 268 "$dsoftbus_root_path/core/common:softbus_utils", 269 "$dsoftbus_root_path/core/frame:softbus_server", 270 "$dsoftbus_root_path/adapter:softbus_adapter", 271 ] 272 273 external_deps = [ 274 "c_utils:utils", 275 "hilog:libhilog", 276 "googletest:gmock", 277 "googletest:gtest_main", 278 ] 279} 280 281ohos_unittest("TransClientMsgServiceTest") { 282 module_out_path = module_output_path 283 sources = [ "client_trans_message_service_test.cpp" ] 284 285 include_dirs = [ 286 "$dsoftbus_dfx_path/interface/include/form", 287 "$dsoftbus_root_path/components/nstackx/fillp/include", 288 "$dsoftbus_root_path/core/authentication/interface", 289 "$dsoftbus_root_path/core/bus_center/interface", 290 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 291 "$dsoftbus_root_path/core/common/include", 292 "$dsoftbus_root_path/core/connection/interface", 293 "$dsoftbus_root_path/core/discovery/interface", 294 "$dsoftbus_root_path/core/discovery/manager/include", 295 "$dsoftbus_root_path/core/frame/common/include", 296 "$dsoftbus_root_path/core/transmission/common/include", 297 "$dsoftbus_root_path/core/transmission/session/include", 298 "$dsoftbus_root_path/interfaces/inner_kits/transport", 299 "$dsoftbus_root_path/interfaces/kits/adapter", 300 "$dsoftbus_root_path/interfaces/kits/authentication", 301 "$dsoftbus_root_path/interfaces/kits/bus_center", 302 "$dsoftbus_root_path/interfaces/kits/connect", 303 "$dsoftbus_root_path/sdk/frame/common/include", 304 "$dsoftbus_root_path/sdk/transmission/session/include", 305 "$dsoftbus_root_path/sdk/transmission/session/src", 306 "$dsoftbus_root_path/sdk/transmission/trans_channel/manager/include", 307 "$dsoftbus_root_path/sdk/transmission/trans_channel/statistics/include", 308 "$dsoftbus_root_path/sdk/transmission/trans_channel/udp/common/include", 309 "$dsoftbus_root_path/sdk/transmission/trans_channel/udp/file/include", 310 "$dsoftbus_root_path/tests/sdk/common/include", 311 ] 312 313 deps = [ 314 "$dsoftbus_dfx_path:softbus_dfx", 315 "$dsoftbus_root_path/core/common:softbus_utils", 316 "$dsoftbus_root_path/core/frame:softbus_server", 317 "$dsoftbus_root_path/tests/sdk:softbus_client_static", 318 "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test", 319 "$dsoftbus_root_path/adapter:softbus_adapter", 320 ] 321 322 external_deps = [ 323 "c_utils:utils", 324 "hilog:libhilog", 325 ] 326} 327 328ohos_unittest("TransClientMsgServiceExTest") { 329 module_out_path = module_output_path 330 331 include_dirs = [ 332 "$dsoftbus_dfx_path/interface/include/form", 333 "$dsoftbus_root_path/components/nstackx/fillp/include", 334 "$dsoftbus_root_path/core/authentication/interface", 335 "$dsoftbus_root_path/core/bus_center/interface", 336 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 337 "$dsoftbus_root_path/core/common/include", 338 "$dsoftbus_root_path/core/connection/interface", 339 "$dsoftbus_root_path/core/discovery/interface", 340 "$dsoftbus_root_path/core/discovery/manager/include", 341 "$dsoftbus_root_path/core/frame/common/include", 342 "$dsoftbus_root_path/core/transmission/common/include", 343 "$dsoftbus_root_path/core/transmission/session/include", 344 "$dsoftbus_root_path/interfaces/inner_kits/transport", 345 "$dsoftbus_root_path/interfaces/kits/authentication", 346 "$dsoftbus_root_path/interfaces/kits/bus_center", 347 "$dsoftbus_root_path/interfaces/kits/connect", 348 "$dsoftbus_root_path/interfaces/kits/disc", 349 "$dsoftbus_root_path/interfaces/kits/disc", 350 "$dsoftbus_root_path/interfaces/kits/lnn", 351 "$dsoftbus_root_path/sdk/frame/common/include", 352 "$dsoftbus_root_path/sdk/transmission/session/include", 353 "$dsoftbus_root_path/sdk/transmission/session/src", 354 "$dsoftbus_root_path/sdk/transmission/trans_channel/manager/include", 355 "$dsoftbus_root_path/sdk/transmission/trans_channel/statistics/include", 356 "$dsoftbus_root_path/sdk/transmission/trans_channel/udp/common/include", 357 "$dsoftbus_root_path/sdk/transmission/trans_channel/udp/file/include", 358 "$dsoftbus_root_path/tests/sdk/common/include", 359 "$dsoftbus_root_path/tests/sdk/transmission/session/mock/include", 360 ] 361 362 sources = [ 363 "client_trans_message_service_ex_test.cpp", 364 "$dsoftbus_root_path/tests/sdk/transmission/session/mock/src/trans_common_mock.cpp", 365 "$dsoftbus_root_path/tests/sdk/transmission/session/mock/src/trans_session_mgr_mock.cpp", 366 "$dsoftbus_root_path/tests/sdk/transmission/session/mock/src/trans_session_svc_mock.cpp", 367 ] 368 369 deps = [ 370 "$dsoftbus_dfx_path:softbus_dfx", 371 "$dsoftbus_root_path/core/common:softbus_utils", 372 "$dsoftbus_root_path/core/frame:softbus_server", 373 "$dsoftbus_root_path/adapter:softbus_adapter", 374 ] 375 376 external_deps = [ 377 "c_utils:utils", 378 "hilog:libhilog", 379 "googletest:gmock", 380 "googletest:gtest_main", 381 ] 382} 383 384ohos_unittest("TransClientSessionTest") { 385 sanitize = { 386 cfi = true 387 cfi_cross_dso = true 388 debug = false 389 } 390 module_out_path = module_output_path 391 sources = [ "client_trans_session_test.cpp" ] 392 393 include_dirs = [ 394 "$dsoftbus_dfx_path/interface/include/form", 395 "$dsoftbus_root_path/core/authentication/interface", 396 "$dsoftbus_root_path/core/bus_center/interface", 397 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 398 "$dsoftbus_root_path/core/common/include", 399 "$dsoftbus_root_path/core/connection/interface", 400 "$dsoftbus_root_path/core/discovery/interface", 401 "$dsoftbus_root_path/core/discovery/manager/include", 402 "$dsoftbus_root_path/core/frame/common/include", 403 "$dsoftbus_root_path/core/transmission/common/include", 404 "$dsoftbus_root_path/core/transmission/session/include", 405 "$dsoftbus_root_path/interfaces/kits/authentication", 406 "$dsoftbus_root_path/interfaces/kits/bus_center", 407 "$dsoftbus_root_path/interfaces/kits/common", 408 "$dsoftbus_root_path/interfaces/kits/connect", 409 "$dsoftbus_root_path/interfaces/kits/disc", 410 "$dsoftbus_root_path/interfaces/kits/lnn", 411 "$dsoftbus_root_path/sdk/bus_center/manager/include", 412 "$dsoftbus_root_path/sdk/frame/common/include", 413 "$dsoftbus_root_path/sdk/transmission/ipc/include", 414 "$dsoftbus_root_path/sdk/transmission/session/include", 415 "$dsoftbus_root_path/sdk/transmission/session/src", 416 "$dsoftbus_root_path/sdk/transmission/trans_channel/manager/include", 417 "$dsoftbus_root_path/sdk/transmission/trans_channel/proxy/include", 418 "$dsoftbus_root_path/sdk/transmission/trans_channel/qos/include", 419 "$dsoftbus_root_path/sdk/transmission/trans_channel/tcp_direct/include", 420 "$dsoftbus_root_path/sdk/transmission/trans_channel/udp/common/include", 421 "$dsoftbus_root_path/sdk/transmission/trans_channel/udp/file/include", 422 "$dsoftbus_root_path/tests/sdk/common/include", 423 ] 424 425 deps = [ 426 "$dsoftbus_dfx_path:softbus_dfx", 427 "$dsoftbus_root_path/core/common:softbus_utils", 428 "$dsoftbus_root_path/core/frame:softbus_server", 429 "$dsoftbus_root_path/tests/sdk:softbus_client_static", 430 "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test", 431 "$dsoftbus_root_path/adapter:softbus_adapter", 432 ] 433 434 if (is_standard_system) { 435 external_deps = [ 436 "c_utils:utils", 437 "hilog:libhilog", 438 ] 439 if (dsoftbus_access_token_feature) { 440 external_deps += [ "access_token:libtoken_setproc" ] 441 } 442 } else { 443 external_deps = [ 444 "c_utils:utils", 445 "hilog:libhilog", 446 ] 447 } 448} 449 450ohos_unittest("TransClientSocketServiceTest") { 451 module_out_path = module_output_path 452 sources = [ "client_trans_socket_service_test.cpp" ] 453 include_dirs = [ 454 "$dsoftbus_root_path/sdk/transmission/session/include", 455 "$dsoftbus_root_path/core/common/include", 456 ] 457 deps = [ "$dsoftbus_root_path/tests/sdk:softbus_client_static" ] 458 459 if (is_standard_system) { 460 external_deps = [ 461 "c_utils:utils", 462 "hilog:libhilog", 463 ] 464 } else { 465 external_deps = [ 466 "c_utils:utils", 467 "hilog:libhilog", 468 ] 469 } 470} 471 472ohos_unittest("TransClientSocketTest") { 473 module_out_path = module_output_path 474 sources = [ "client_trans_inner_socket_test.cpp" ] 475 476 deps = [ "$dsoftbus_root_path/tests/sdk:softbus_client_static" ] 477 478 if (is_standard_system) { 479 external_deps = [ 480 "c_utils:utils", 481 "hilog:libhilog", 482 ] 483 if (dsoftbus_access_token_feature) { 484 external_deps += [ 485 "access_token:libaccesstoken_sdk", 486 "access_token:libnativetoken", 487 "access_token:libtoken_setproc", 488 "cJSON:cjson_static", 489 "selinux_adapter:librestorecon", 490 ] 491 } 492 } else { 493 external_deps = [ 494 "c_utils:utils", 495 "hilog:libhilog", 496 ] 497 } 498} 499 500ohos_unittest("TransClientSocketServiceExTest") { 501 module_out_path = module_output_path 502 include_dirs = [ 503 "$dsoftbus_root_path/core/common/include", 504 "$dsoftbus_root_path/components/nstackx/fillp/include", 505 "$dsoftbus_root_path/interfaces/kits/transport", 506 "$dsoftbus_root_path/sdk/transmission/session/include", 507 "$dsoftbus_root_path/sdk/transmission/session/src", 508 "$dsoftbus_root_path/sdk/transmission/ipc/include", 509 "$dsoftbus_root_path/tests/sdk/transmission/session/mock/include", 510 "$dsoftbus_root_path/interfaces/inner_kits/transport", 511 "$dsoftbus_root_path/sdk/transmission/session/cpp/include", 512 ] 513 514 sources = [ 515 "client_trans_socket_service_ex_test.cpp", 516 "$dsoftbus_root_path/tests/sdk/transmission/session/mock/src/trans_common_mock.cpp", 517 "$dsoftbus_root_path/tests/sdk/transmission/session/mock/src/trans_session_mgr_mock.cpp", 518 "$dsoftbus_root_path/tests/sdk/transmission/session/mock/src/trans_session_svc_mock.cpp", 519 "$dsoftbus_root_path/tests/sdk/transmission/session/mock/src/trans_socket_mgr_mock.cpp", 520 ] 521 522 deps = [ 523 "$dsoftbus_dfx_path:softbus_dfx", 524 "$dsoftbus_root_path/core/common:softbus_utils", 525 "$dsoftbus_root_path/core/frame:softbus_server", 526 "$dsoftbus_root_path/adapter:softbus_adapter", 527 ] 528 529 external_deps = [ 530 "c_utils:utils", 531 "hilog:libhilog", 532 "googletest:gmock", 533 "googletest:gtest_main", 534 ] 535} 536 537group("unittest") { 538 testonly = true 539 deps = [ 540 ":TransClientMsgServiceTest", 541 ":TransClientSessionCallbackTest", 542 ":TransClientSessionManagerTest", 543 ":TransClientSessionManagerExTest", 544 ":TransClientSessionServiceTest", 545 ":TransClientSocketServiceTest", 546 ":TransClientMsgServiceExTest", 547 #":TransClientSessionCallbackExTest", 548 ":TransClientSocketServiceExTest", 549 ] 550 551 if (dsoftbus_access_token_feature) { 552 deps += [ 553 ":TransClientSessionTest", 554 ":TransClientSocketTest", 555 ] 556 } 557} 558