1# Copyright (C) 2021-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. 13import("//build/test.gni") 14import("//foundation/filemanagement/dfs_service/distributedfile.gni") 15 16module_output_path = "storage_distributed_file_manager/distributedfiledaemon" 17 18config("module_private_config") { 19 visibility = [ ":*" ] 20 21 include_dirs = [ 22 "${distributedfile_path}/frameworks/native/distributed_file_inner/include", 23 "${services_path}/distributedfiledaemon/include", 24 "${services_path}/distributedfiledaemon/include/ipc", 25 "//third_party/json/include", 26 ] 27} 28 29ohos_unittest("device_manager_agent_test") { 30 module_out_path = module_output_path 31 32 sources = [ 33 "${distributedfile_path}/test/mock/device_manager_impl_mock.cpp", 34 "${distributedfile_path}/test/mock/device_manager_mock.cpp", 35 "${distributedfile_path}/test/mock/softbus_bus_center_mock.cpp", 36 "${services_path}/distributedfiledaemon/src/device/device_info.cpp", 37 "${services_path}/distributedfiledaemon/src/device/device_manager_agent.cpp", 38 "${services_path}/distributedfiledaemon/src/ipc/connection_detector.cpp", 39 "${services_path}/distributedfiledaemon/src/ipc/daemon.cpp", 40 "${services_path}/distributedfiledaemon/src/ipc/daemon_stub.cpp", 41 "${services_path}/distributedfiledaemon/src/ipc/file_trans_listener_proxy.cpp", 42 "${services_path}/distributedfiledaemon/src/ipc/trans_mananger.cpp", 43 "${services_path}/distributedfiledaemon/src/mountpoint/mount_manager.cpp", 44 "${services_path}/distributedfiledaemon/src/mountpoint/mount_point.cpp", 45 "${services_path}/distributedfiledaemon/src/multiuser/os_account_observer.cpp", 46 "${services_path}/distributedfiledaemon/src/network/devsl_dispatcher.cpp", 47 "${services_path}/distributedfiledaemon/src/network/kernel_talker.cpp", 48 "${services_path}/distributedfiledaemon/src/network/network_agent_template.cpp", 49 "${services_path}/distributedfiledaemon/src/network/session_pool.cpp", 50 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_agent.cpp", 51 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_receive_listener.cpp", 52 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_send_listener.cpp", 53 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler.cpp", 54 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session.cpp", 55 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_dispatcher.cpp", 56 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_listener.cpp", 57 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_pool.cpp", 58 ] 59 60 sources += [ "device/device_manager_agent_test.cpp" ] 61 62 configs = [ 63 ":module_private_config", 64 "${utils_path}:compiler_configs", 65 ] 66 67 deps = [ 68 "${utils_path}:libdistributedfileutils", 69 "//third_party/googletest:gmock_main", 70 "//third_party/googletest:gtest_main", 71 ] 72 73 external_deps = [ 74 "ability_base:want", 75 "ability_base:zuri", 76 "access_token:libaccesstoken_sdk", 77 "app_file_service:sandbox_helper_native", 78 "common_event_service:cesfwk_innerkits", 79 "dataclassification:data_transit_mgr", 80 "device_auth:deviceauth_sdk", 81 "device_manager:devicemanagersdk", 82 "dsoftbus:softbus_client", 83 "hilog:libhilog", 84 "init:libbegetutil", 85 "ipc:ipc_core", 86 "os_account:os_account_innerkits", 87 "safwk:system_ability_fwk", 88 "samgr:samgr_proxy", 89 ] 90 91 defines = [ "private=public" ] 92} 93 94ohos_unittest("os_account_observer_test") { 95 module_out_path = module_output_path 96 97 sources = [ 98 "${services_path}/distributedfiledaemon/src/device/device_info.cpp", 99 "${services_path}/distributedfiledaemon/src/device/device_manager_agent.cpp", 100 "${services_path}/distributedfiledaemon/src/ipc/connection_detector.cpp", 101 "${services_path}/distributedfiledaemon/src/ipc/daemon.cpp", 102 "${services_path}/distributedfiledaemon/src/ipc/daemon_stub.cpp", 103 "${services_path}/distributedfiledaemon/src/ipc/file_trans_listener_proxy.cpp", 104 "${services_path}/distributedfiledaemon/src/ipc/trans_mananger.cpp", 105 "${services_path}/distributedfiledaemon/src/mountpoint/mount_manager.cpp", 106 "${services_path}/distributedfiledaemon/src/mountpoint/mount_point.cpp", 107 "${services_path}/distributedfiledaemon/src/multiuser/os_account_observer.cpp", 108 "${services_path}/distributedfiledaemon/src/network/devsl_dispatcher.cpp", 109 "${services_path}/distributedfiledaemon/src/network/kernel_talker.cpp", 110 "${services_path}/distributedfiledaemon/src/network/network_agent_template.cpp", 111 "${services_path}/distributedfiledaemon/src/network/session_pool.cpp", 112 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_agent.cpp", 113 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_receive_listener.cpp", 114 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_send_listener.cpp", 115 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler.cpp", 116 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session.cpp", 117 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_dispatcher.cpp", 118 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_listener.cpp", 119 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_pool.cpp", 120 ] 121 122 sources += [ "multiuser/os_account_observer_test.cpp" ] 123 124 configs = [ 125 ":module_private_config", 126 "${utils_path}:compiler_configs", 127 ] 128 129 deps = [ 130 "${utils_path}:libdistributedfileutils", 131 "//third_party/googletest:gtest_main", 132 ] 133 134 external_deps = [ 135 "ability_base:want", 136 "ability_base:zuri", 137 "access_token:libaccesstoken_sdk", 138 "app_file_service:sandbox_helper_native", 139 "common_event_service:cesfwk_innerkits", 140 "dataclassification:data_transit_mgr", 141 "device_auth:deviceauth_sdk", 142 "device_manager:devicemanagersdk", 143 "dsoftbus:softbus_client", 144 "hilog:libhilog", 145 "init:libbegetutil", 146 "ipc:ipc_core", 147 "os_account:os_account_innerkits", 148 "safwk:system_ability_fwk", 149 "samgr:samgr_proxy", 150 ] 151 152 defines = [ "private=public" ] 153} 154 155ohos_unittest("devsl_dispatcher_test") { 156 module_out_path = module_output_path 157 158 sources = [ 159 "${services_path}/distributedfiledaemon/src/device/device_info.cpp", 160 "${services_path}/distributedfiledaemon/src/device/device_manager_agent.cpp", 161 "${services_path}/distributedfiledaemon/src/ipc/connection_detector.cpp", 162 "${services_path}/distributedfiledaemon/src/ipc/daemon.cpp", 163 "${services_path}/distributedfiledaemon/src/ipc/daemon_stub.cpp", 164 "${services_path}/distributedfiledaemon/src/ipc/file_trans_listener_proxy.cpp", 165 "${services_path}/distributedfiledaemon/src/ipc/trans_mananger.cpp", 166 "${services_path}/distributedfiledaemon/src/mountpoint/mount_manager.cpp", 167 "${services_path}/distributedfiledaemon/src/mountpoint/mount_point.cpp", 168 "${services_path}/distributedfiledaemon/src/multiuser/os_account_observer.cpp", 169 "${services_path}/distributedfiledaemon/src/network/devsl_dispatcher.cpp", 170 "${services_path}/distributedfiledaemon/src/network/kernel_talker.cpp", 171 "${services_path}/distributedfiledaemon/src/network/network_agent_template.cpp", 172 "${services_path}/distributedfiledaemon/src/network/session_pool.cpp", 173 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_agent.cpp", 174 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_receive_listener.cpp", 175 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_send_listener.cpp", 176 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler.cpp", 177 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session.cpp", 178 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_dispatcher.cpp", 179 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_listener.cpp", 180 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_pool.cpp", 181 "network/devsl_dispatcher_test.cpp", 182 ] 183 184 configs = [ 185 ":module_private_config", 186 "${utils_path}:compiler_configs", 187 ] 188 189 deps = [ 190 "${utils_path}:libdistributedfileutils", 191 "//third_party/googletest:gtest_main", 192 ] 193 194 external_deps = [ 195 "ability_base:want", 196 "ability_base:zuri", 197 "access_token:libaccesstoken_sdk", 198 "app_file_service:sandbox_helper_native", 199 "common_event_service:cesfwk_innerkits", 200 "dataclassification:data_transit_mgr", 201 "device_auth:deviceauth_sdk", 202 "device_manager:devicemanagersdk", 203 "dsoftbus:softbus_client", 204 "hilog:libhilog", 205 "init:libbegetutil", 206 "ipc:ipc_core", 207 "os_account:os_account_innerkits", 208 "safwk:system_ability_fwk", 209 "samgr:samgr_proxy", 210 ] 211 212 defines = [ "private=public" ] 213} 214 215ohos_unittest("kernel_talker_test") { 216 module_out_path = module_output_path 217 218 sources = [ 219 "${services_path}/distributedfiledaemon/src/device/device_info.cpp", 220 "${services_path}/distributedfiledaemon/src/device/device_manager_agent.cpp", 221 "${services_path}/distributedfiledaemon/src/ipc/connection_detector.cpp", 222 "${services_path}/distributedfiledaemon/src/ipc/daemon.cpp", 223 "${services_path}/distributedfiledaemon/src/ipc/daemon_stub.cpp", 224 "${services_path}/distributedfiledaemon/src/ipc/file_trans_listener_proxy.cpp", 225 "${services_path}/distributedfiledaemon/src/ipc/trans_mananger.cpp", 226 "${services_path}/distributedfiledaemon/src/mountpoint/mount_manager.cpp", 227 "${services_path}/distributedfiledaemon/src/mountpoint/mount_point.cpp", 228 "${services_path}/distributedfiledaemon/src/multiuser/os_account_observer.cpp", 229 "${services_path}/distributedfiledaemon/src/network/devsl_dispatcher.cpp", 230 "${services_path}/distributedfiledaemon/src/network/kernel_talker.cpp", 231 "${services_path}/distributedfiledaemon/src/network/network_agent_template.cpp", 232 "${services_path}/distributedfiledaemon/src/network/session_pool.cpp", 233 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_agent.cpp", 234 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_receive_listener.cpp", 235 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_send_listener.cpp", 236 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler.cpp", 237 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session.cpp", 238 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_dispatcher.cpp", 239 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_listener.cpp", 240 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_pool.cpp", 241 "network/kernel_talker_test.cpp", 242 ] 243 244 configs = [ 245 ":module_private_config", 246 "${utils_path}:compiler_configs", 247 ] 248 249 deps = [ 250 "${utils_path}:libdistributedfileutils", 251 "//third_party/googletest:gtest_main", 252 ] 253 254 external_deps = [ 255 "ability_base:want", 256 "ability_base:zuri", 257 "access_token:libaccesstoken_sdk", 258 "app_file_service:sandbox_helper_native", 259 "common_event_service:cesfwk_innerkits", 260 "dataclassification:data_transit_mgr", 261 "device_auth:deviceauth_sdk", 262 "device_manager:devicemanagersdk", 263 "dsoftbus:softbus_client", 264 "hilog:libhilog", 265 "init:libbegetutil", 266 "ipc:ipc_core", 267 "os_account:os_account_innerkits", 268 "safwk:system_ability_fwk", 269 "samgr:samgr_proxy", 270 ] 271 272 defines = [ "private=public" ] 273} 274 275ohos_unittest("session_pool_test") { 276 module_out_path = module_output_path 277 278 sources = [ 279 "${services_path}/distributedfiledaemon/src/device/device_info.cpp", 280 "${services_path}/distributedfiledaemon/src/device/device_manager_agent.cpp", 281 "${services_path}/distributedfiledaemon/src/ipc/connection_detector.cpp", 282 "${services_path}/distributedfiledaemon/src/ipc/daemon.cpp", 283 "${services_path}/distributedfiledaemon/src/ipc/daemon_stub.cpp", 284 "${services_path}/distributedfiledaemon/src/ipc/file_trans_listener_proxy.cpp", 285 "${services_path}/distributedfiledaemon/src/ipc/trans_mananger.cpp", 286 "${services_path}/distributedfiledaemon/src/mountpoint/mount_manager.cpp", 287 "${services_path}/distributedfiledaemon/src/mountpoint/mount_point.cpp", 288 "${services_path}/distributedfiledaemon/src/multiuser/os_account_observer.cpp", 289 "${services_path}/distributedfiledaemon/src/network/devsl_dispatcher.cpp", 290 "${services_path}/distributedfiledaemon/src/network/kernel_talker.cpp", 291 "${services_path}/distributedfiledaemon/src/network/network_agent_template.cpp", 292 "${services_path}/distributedfiledaemon/src/network/session_pool.cpp", 293 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_agent.cpp", 294 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_receive_listener.cpp", 295 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_send_listener.cpp", 296 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler.cpp", 297 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session.cpp", 298 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_dispatcher.cpp", 299 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_listener.cpp", 300 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_pool.cpp", 301 "network/session_pool_test.cpp", 302 ] 303 304 configs = [ 305 ":module_private_config", 306 "${utils_path}:compiler_configs", 307 ] 308 309 deps = [ 310 "${utils_path}:libdistributedfileutils", 311 "//third_party/googletest:gtest_main", 312 ] 313 314 external_deps = [ 315 "ability_base:want", 316 "ability_base:zuri", 317 "access_token:libaccesstoken_sdk", 318 "app_file_service:sandbox_helper_native", 319 "common_event_service:cesfwk_innerkits", 320 "dataclassification:data_transit_mgr", 321 "device_auth:deviceauth_sdk", 322 "device_manager:devicemanagersdk", 323 "dsoftbus:softbus_client", 324 "hilog:libhilog", 325 "init:libbegetutil", 326 "ipc:ipc_core", 327 "os_account:os_account_innerkits", 328 "safwk:system_ability_fwk", 329 "samgr:samgr_proxy", 330 ] 331 332 defines = [ "private=public" ] 333} 334 335ohos_unittest("softbus_agent_test") { 336 module_out_path = module_output_path 337 338 sources = [ 339 "${services_path}/distributedfiledaemon/src/device/device_info.cpp", 340 "${services_path}/distributedfiledaemon/src/device/device_manager_agent.cpp", 341 "${services_path}/distributedfiledaemon/src/ipc/connection_detector.cpp", 342 "${services_path}/distributedfiledaemon/src/ipc/daemon.cpp", 343 "${services_path}/distributedfiledaemon/src/ipc/daemon_stub.cpp", 344 "${services_path}/distributedfiledaemon/src/ipc/file_trans_listener_proxy.cpp", 345 "${services_path}/distributedfiledaemon/src/ipc/trans_mananger.cpp", 346 "${services_path}/distributedfiledaemon/src/mountpoint/mount_manager.cpp", 347 "${services_path}/distributedfiledaemon/src/mountpoint/mount_point.cpp", 348 "${services_path}/distributedfiledaemon/src/multiuser/os_account_observer.cpp", 349 "${services_path}/distributedfiledaemon/src/network/devsl_dispatcher.cpp", 350 "${services_path}/distributedfiledaemon/src/network/kernel_talker.cpp", 351 "${services_path}/distributedfiledaemon/src/network/network_agent_template.cpp", 352 "${services_path}/distributedfiledaemon/src/network/session_pool.cpp", 353 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_agent.cpp", 354 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_receive_listener.cpp", 355 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_send_listener.cpp", 356 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler.cpp", 357 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session.cpp", 358 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_dispatcher.cpp", 359 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_listener.cpp", 360 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_pool.cpp", 361 "network/softbus_agent_test.cpp", 362 ] 363 364 configs = [ 365 ":module_private_config", 366 "${utils_path}:compiler_configs", 367 ] 368 369 deps = [ 370 "${utils_path}:libdistributedfileutils", 371 "//third_party/googletest:gtest_main", 372 ] 373 374 external_deps = [ 375 "ability_base:want", 376 "ability_base:zuri", 377 "access_token:libaccesstoken_sdk", 378 "app_file_service:sandbox_helper_native", 379 "common_event_service:cesfwk_innerkits", 380 "dataclassification:data_transit_mgr", 381 "device_auth:deviceauth_sdk", 382 "device_manager:devicemanagersdk", 383 "dsoftbus:softbus_client", 384 "hilog:libhilog", 385 "init:libbegetutil", 386 "ipc:ipc_core", 387 "os_account:os_account_innerkits", 388 "safwk:system_ability_fwk", 389 "samgr:samgr_proxy", 390 ] 391 392 defines = [ 393 "private=public", 394 "protected=public", 395 ] 396} 397 398ohos_unittest("softbus_session_dispatcher_test") { 399 module_out_path = module_output_path 400 401 sources = [ 402 "${services_path}/distributedfiledaemon/src/device/device_info.cpp", 403 "${services_path}/distributedfiledaemon/src/device/device_manager_agent.cpp", 404 "${services_path}/distributedfiledaemon/src/ipc/connection_detector.cpp", 405 "${services_path}/distributedfiledaemon/src/ipc/daemon.cpp", 406 "${services_path}/distributedfiledaemon/src/ipc/daemon_stub.cpp", 407 "${services_path}/distributedfiledaemon/src/ipc/file_trans_listener_proxy.cpp", 408 "${services_path}/distributedfiledaemon/src/ipc/trans_mananger.cpp", 409 "${services_path}/distributedfiledaemon/src/mountpoint/mount_manager.cpp", 410 "${services_path}/distributedfiledaemon/src/mountpoint/mount_point.cpp", 411 "${services_path}/distributedfiledaemon/src/multiuser/os_account_observer.cpp", 412 "${services_path}/distributedfiledaemon/src/network/devsl_dispatcher.cpp", 413 "${services_path}/distributedfiledaemon/src/network/kernel_talker.cpp", 414 "${services_path}/distributedfiledaemon/src/network/network_agent_template.cpp", 415 "${services_path}/distributedfiledaemon/src/network/session_pool.cpp", 416 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_agent.cpp", 417 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_receive_listener.cpp", 418 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_send_listener.cpp", 419 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler.cpp", 420 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session.cpp", 421 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_dispatcher.cpp", 422 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_listener.cpp", 423 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_pool.cpp", 424 "network/softbus_session_dispatcher_test.cpp", 425 ] 426 427 configs = [ 428 ":module_private_config", 429 "${utils_path}:compiler_configs", 430 ] 431 432 deps = [ 433 "${utils_path}:libdistributedfileutils", 434 "//third_party/googletest:gtest_main", 435 ] 436 437 external_deps = [ 438 "ability_base:want", 439 "ability_base:zuri", 440 "access_token:libaccesstoken_sdk", 441 "app_file_service:sandbox_helper_native", 442 "common_event_service:cesfwk_innerkits", 443 "dataclassification:data_transit_mgr", 444 "device_auth:deviceauth_sdk", 445 "device_manager:devicemanagersdk", 446 "dsoftbus:softbus_client", 447 "hilog:libhilog", 448 "init:libbegetutil", 449 "ipc:ipc_core", 450 "os_account:os_account_innerkits", 451 "safwk:system_ability_fwk", 452 "samgr:samgr_proxy", 453 ] 454 455 defines = [ "private=public" ] 456} 457 458ohos_unittest("softbus_session_test") { 459 module_out_path = module_output_path 460 461 sources = [ 462 "${services_path}/distributedfiledaemon/src/device/device_info.cpp", 463 "${services_path}/distributedfiledaemon/src/device/device_manager_agent.cpp", 464 "${services_path}/distributedfiledaemon/src/ipc/connection_detector.cpp", 465 "${services_path}/distributedfiledaemon/src/ipc/daemon.cpp", 466 "${services_path}/distributedfiledaemon/src/ipc/daemon_stub.cpp", 467 "${services_path}/distributedfiledaemon/src/ipc/file_trans_listener_proxy.cpp", 468 "${services_path}/distributedfiledaemon/src/ipc/trans_mananger.cpp", 469 "${services_path}/distributedfiledaemon/src/mountpoint/mount_manager.cpp", 470 "${services_path}/distributedfiledaemon/src/mountpoint/mount_point.cpp", 471 "${services_path}/distributedfiledaemon/src/multiuser/os_account_observer.cpp", 472 "${services_path}/distributedfiledaemon/src/network/devsl_dispatcher.cpp", 473 "${services_path}/distributedfiledaemon/src/network/kernel_talker.cpp", 474 "${services_path}/distributedfiledaemon/src/network/network_agent_template.cpp", 475 "${services_path}/distributedfiledaemon/src/network/session_pool.cpp", 476 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_agent.cpp", 477 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_receive_listener.cpp", 478 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_send_listener.cpp", 479 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler.cpp", 480 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session.cpp", 481 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_dispatcher.cpp", 482 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_listener.cpp", 483 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_pool.cpp", 484 "network/softbus_session_test.cpp", 485 ] 486 487 configs = [ 488 ":module_private_config", 489 "${utils_path}:compiler_configs", 490 ] 491 492 deps = [ 493 "${utils_path}:libdistributedfileutils", 494 "//third_party/googletest:gtest_main", 495 ] 496 497 external_deps = [ 498 "ability_base:want", 499 "ability_base:zuri", 500 "access_token:libaccesstoken_sdk", 501 "app_file_service:sandbox_helper_native", 502 "common_event_service:cesfwk_innerkits", 503 "dataclassification:data_transit_mgr", 504 "device_auth:deviceauth_sdk", 505 "device_manager:devicemanagersdk", 506 "dsoftbus:softbus_client", 507 "hilog:libhilog", 508 "init:libbegetutil", 509 "ipc:ipc_core", 510 "os_account:os_account_innerkits", 511 "safwk:system_ability_fwk", 512 "samgr:samgr_proxy", 513 ] 514 515 defines = [ "private=public" ] 516} 517 518group("unittest") { 519 testonly = true 520 deps = [ 521 ":device_manager_agent_test", 522 ":devsl_dispatcher_test", 523 ":os_account_observer_test", 524 ":softbus_agent_test", 525 ":softbus_session_dispatcher_test", 526 ":softbus_session_test", 527 ] 528} 529