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. 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 "${distributedfile_path}/test/mock", 24 "${services_path}/distributedfiledaemon/include", 25 "${services_path}/distributedfiledaemon/include/ipc", 26 "//third_party/json/include", 27 ] 28} 29 30ohos_unittest("device_info_test") { 31 branch_protector_ret = "pac_ret" 32 sanitize = { 33 integer_overflow = true 34 cfi = true 35 cfi_cross_dso = true 36 debug = false 37 } 38 39 module_out_path = module_output_path 40 41 sources = 42 [ "${services_path}/distributedfiledaemon/src/device/device_info.cpp" ] 43 44 sources += [ "device/device_info_test.cpp" ] 45 46 configs = [ 47 ":module_private_config", 48 "${utils_path}:compiler_configs", 49 ] 50 51 deps = [ 52 "${utils_path}:libdistributedfileutils", 53 "//third_party/googletest:gmock_main", 54 "//third_party/googletest:gtest_main", 55 ] 56 57 external_deps = [ 58 "c_utils:utils", 59 "device_manager:devicemanagersdk", 60 "hilog:libhilog", 61 ] 62 63 defines = [ "private=public" ] 64} 65 66ohos_unittest("device_manager_agent_sup_test") { 67 branch_protector_ret = "pac_ret" 68 sanitize = { 69 integer_overflow = true 70 cfi = true 71 cfi_cross_dso = true 72 debug = false 73 blocklist = "${distributedfile_path}/cfi_blocklist.txt" 74 } 75 76 module_out_path = module_output_path 77 78 include_dirs = [ "device/include/" ] 79 80 sources = [ 81 "${distributedfile_path}/frameworks/native/distributed_file_inner/src/asset/asset_obj.cpp", 82 "${distributedfile_path}/test/mock/device_manager_impl_mock.cpp", 83 "${distributedfile_path}/test/mock/device_manager_mock.cpp", 84 "${distributedfile_path}/test/mock/softbus_bus_center_mock.cpp", 85 "${services_path}/distributedfiledaemon/src/all_connect/all_connect_manager.cpp", 86 "${services_path}/distributedfiledaemon/src/device/device_info.cpp", 87 "${services_path}/distributedfiledaemon/src/device/device_manager_agent.cpp", 88 "${services_path}/distributedfiledaemon/src/ipc/asset_callback_manager.cpp", 89 "${services_path}/distributedfiledaemon/src/ipc/asset_recv_callback_proxy.cpp", 90 "${services_path}/distributedfiledaemon/src/ipc/asset_send_callback_proxy.cpp", 91 "${services_path}/distributedfiledaemon/src/ipc/connection_detector.cpp", 92 "${services_path}/distributedfiledaemon/src/ipc/daemon.cpp", 93 "${services_path}/distributedfiledaemon/src/ipc/daemon_eventhandler.cpp", 94 "${services_path}/distributedfiledaemon/src/ipc/daemon_execute.cpp", 95 "${services_path}/distributedfiledaemon/src/ipc/daemon_stub.cpp", 96 "${services_path}/distributedfiledaemon/src/ipc/file_trans_listener_proxy.cpp", 97 "${services_path}/distributedfiledaemon/src/ipc/trans_mananger.cpp", 98 "${services_path}/distributedfiledaemon/src/mountpoint/mount_manager.cpp", 99 "${services_path}/distributedfiledaemon/src/mountpoint/mount_point.cpp", 100 "${services_path}/distributedfiledaemon/src/multiuser/os_account_observer.cpp", 101 "${services_path}/distributedfiledaemon/src/network/devsl_dispatcher.cpp", 102 "${services_path}/distributedfiledaemon/src/network/kernel_talker.cpp", 103 "${services_path}/distributedfiledaemon/src/network/network_agent_template.cpp", 104 "${services_path}/distributedfiledaemon/src/network/session_pool.cpp", 105 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_agent.cpp", 106 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_recv_listener.cpp", 107 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_send_listener.cpp", 108 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_receive_listener.cpp", 109 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_send_listener.cpp", 110 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler.cpp", 111 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler_asset.cpp", 112 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session.cpp", 113 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_dispatcher.cpp", 114 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_listener.cpp", 115 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_pool.cpp", 116 ] 117 118 sources += [ 119 "device/device_manager_agent_sup_test.cpp", 120 "device/mock_other_method.cpp", 121 ] 122 123 configs = [ 124 ":module_private_config", 125 "${utils_path}:compiler_configs", 126 ] 127 128 deps = [ 129 "${utils_path}:libdistributedfileutils", 130 "//third_party/googletest:gmock_main", 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 "c_utils:utils", 140 "common_event_service:cesfwk_innerkits", 141 "dataclassification:data_transit_mgr", 142 "device_auth:deviceauth_sdk", 143 "device_manager:devicemanagersdk", 144 "dsoftbus:softbus_client", 145 "eventhandler:libeventhandler", 146 "hilog:libhilog", 147 "hisysevent:libhisysevent", 148 "init:libbegetutil", 149 "ipc:ipc_single", 150 "os_account:os_account_innerkits", 151 "safwk:system_ability_fwk", 152 "samgr:samgr_proxy", 153 "storage_service:storage_manager_sa_proxy", 154 "zlib:shared_libz", 155 ] 156 157 defines = [ "private=public" ] 158} 159 160ohos_unittest("device_manager_agent_test") { 161 branch_protector_ret = "pac_ret" 162 sanitize = { 163 integer_overflow = true 164 cfi = true 165 cfi_cross_dso = true 166 debug = false 167 blocklist = "${distributedfile_path}/cfi_blocklist.txt" 168 } 169 170 module_out_path = module_output_path 171 172 sources = [ 173 "${distributedfile_path}/frameworks/native/distributed_file_inner/src/asset/asset_obj.cpp", 174 "${distributedfile_path}/test/mock/device_manager_impl_mock.cpp", 175 "${distributedfile_path}/test/mock/device_manager_mock.cpp", 176 "${distributedfile_path}/test/mock/softbus_bus_center_mock.cpp", 177 "${services_path}/distributedfiledaemon/src/all_connect/all_connect_manager.cpp", 178 "${services_path}/distributedfiledaemon/src/device/device_info.cpp", 179 "${services_path}/distributedfiledaemon/src/device/device_manager_agent.cpp", 180 "${services_path}/distributedfiledaemon/src/ipc/asset_callback_manager.cpp", 181 "${services_path}/distributedfiledaemon/src/ipc/asset_recv_callback_proxy.cpp", 182 "${services_path}/distributedfiledaemon/src/ipc/asset_send_callback_proxy.cpp", 183 "${services_path}/distributedfiledaemon/src/ipc/connection_detector.cpp", 184 "${services_path}/distributedfiledaemon/src/ipc/daemon.cpp", 185 "${services_path}/distributedfiledaemon/src/ipc/daemon_eventhandler.cpp", 186 "${services_path}/distributedfiledaemon/src/ipc/daemon_execute.cpp", 187 "${services_path}/distributedfiledaemon/src/ipc/daemon_stub.cpp", 188 "${services_path}/distributedfiledaemon/src/ipc/file_trans_listener_proxy.cpp", 189 "${services_path}/distributedfiledaemon/src/ipc/trans_mananger.cpp", 190 "${services_path}/distributedfiledaemon/src/mountpoint/mount_manager.cpp", 191 "${services_path}/distributedfiledaemon/src/mountpoint/mount_point.cpp", 192 "${services_path}/distributedfiledaemon/src/multiuser/os_account_observer.cpp", 193 "${services_path}/distributedfiledaemon/src/network/devsl_dispatcher.cpp", 194 "${services_path}/distributedfiledaemon/src/network/kernel_talker.cpp", 195 "${services_path}/distributedfiledaemon/src/network/network_agent_template.cpp", 196 "${services_path}/distributedfiledaemon/src/network/session_pool.cpp", 197 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_agent.cpp", 198 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_recv_listener.cpp", 199 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_send_listener.cpp", 200 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_receive_listener.cpp", 201 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_send_listener.cpp", 202 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler.cpp", 203 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler_asset.cpp", 204 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session.cpp", 205 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_dispatcher.cpp", 206 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_listener.cpp", 207 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_pool.cpp", 208 ] 209 210 sources += [ "device/device_manager_agent_test.cpp" ] 211 212 configs = [ 213 ":module_private_config", 214 "${utils_path}:compiler_configs", 215 ] 216 217 deps = [ 218 "${utils_path}:libdistributedfileutils", 219 "//third_party/googletest:gmock_main", 220 "//third_party/googletest:gtest_main", 221 ] 222 223 external_deps = [ 224 "ability_base:want", 225 "ability_base:zuri", 226 "access_token:libaccesstoken_sdk", 227 "app_file_service:sandbox_helper_native", 228 "c_utils:utils", 229 "common_event_service:cesfwk_innerkits", 230 "dataclassification:data_transit_mgr", 231 "device_auth:deviceauth_sdk", 232 "device_manager:devicemanagersdk", 233 "dsoftbus:softbus_client", 234 "eventhandler:libeventhandler", 235 "hilog:libhilog", 236 "hisysevent:libhisysevent", 237 "init:libbegetutil", 238 "ipc:ipc_single", 239 "os_account:os_account_innerkits", 240 "safwk:system_ability_fwk", 241 "samgr:samgr_proxy", 242 "storage_service:storage_manager_sa_proxy", 243 "zlib:shared_libz", 244 ] 245 246 defines = [ "private=public" ] 247} 248 249ohos_unittest("os_account_observer_test") { 250 branch_protector_ret = "pac_ret" 251 sanitize = { 252 integer_overflow = true 253 cfi = true 254 cfi_cross_dso = true 255 debug = false 256 } 257 258 module_out_path = module_output_path 259 260 sources = [ 261 "${distributedfile_path}/frameworks/native/distributed_file_inner/src/asset/asset_obj.cpp", 262 "${services_path}/distributedfiledaemon/src/all_connect/all_connect_manager.cpp", 263 "${services_path}/distributedfiledaemon/src/device/device_info.cpp", 264 "${services_path}/distributedfiledaemon/src/device/device_manager_agent.cpp", 265 "${services_path}/distributedfiledaemon/src/ipc/asset_callback_manager.cpp", 266 "${services_path}/distributedfiledaemon/src/ipc/asset_recv_callback_proxy.cpp", 267 "${services_path}/distributedfiledaemon/src/ipc/asset_send_callback_proxy.cpp", 268 "${services_path}/distributedfiledaemon/src/ipc/connection_detector.cpp", 269 "${services_path}/distributedfiledaemon/src/ipc/daemon.cpp", 270 "${services_path}/distributedfiledaemon/src/ipc/daemon_eventhandler.cpp", 271 "${services_path}/distributedfiledaemon/src/ipc/daemon_execute.cpp", 272 "${services_path}/distributedfiledaemon/src/ipc/daemon_stub.cpp", 273 "${services_path}/distributedfiledaemon/src/ipc/file_trans_listener_proxy.cpp", 274 "${services_path}/distributedfiledaemon/src/ipc/trans_mananger.cpp", 275 "${services_path}/distributedfiledaemon/src/mountpoint/mount_manager.cpp", 276 "${services_path}/distributedfiledaemon/src/mountpoint/mount_point.cpp", 277 "${services_path}/distributedfiledaemon/src/multiuser/os_account_observer.cpp", 278 "${services_path}/distributedfiledaemon/src/network/devsl_dispatcher.cpp", 279 "${services_path}/distributedfiledaemon/src/network/kernel_talker.cpp", 280 "${services_path}/distributedfiledaemon/src/network/network_agent_template.cpp", 281 "${services_path}/distributedfiledaemon/src/network/session_pool.cpp", 282 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_agent.cpp", 283 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_recv_listener.cpp", 284 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_send_listener.cpp", 285 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_receive_listener.cpp", 286 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_send_listener.cpp", 287 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler.cpp", 288 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler_asset.cpp", 289 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session.cpp", 290 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_dispatcher.cpp", 291 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_listener.cpp", 292 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_pool.cpp", 293 ] 294 295 sources += [ "multiuser/os_account_observer_test.cpp" ] 296 297 configs = [ 298 ":module_private_config", 299 "${utils_path}:compiler_configs", 300 ] 301 302 deps = [ 303 "${utils_path}:libdistributedfileutils", 304 "//third_party/googletest:gtest_main", 305 ] 306 307 external_deps = [ 308 "ability_base:want", 309 "ability_base:zuri", 310 "access_token:libaccesstoken_sdk", 311 "app_file_service:sandbox_helper_native", 312 "c_utils:utils", 313 "common_event_service:cesfwk_innerkits", 314 "dataclassification:data_transit_mgr", 315 "device_auth:deviceauth_sdk", 316 "device_manager:devicemanagersdk", 317 "dsoftbus:softbus_client", 318 "eventhandler:libeventhandler", 319 "hilog:libhilog", 320 "hisysevent:libhisysevent", 321 "init:libbegetutil", 322 "ipc:ipc_single", 323 "os_account:os_account_innerkits", 324 "safwk:system_ability_fwk", 325 "samgr:samgr_proxy", 326 "storage_service:storage_manager_sa_proxy", 327 "zlib:shared_libz", 328 ] 329 330 defines = [ "private=public" ] 331} 332 333ohos_unittest("devsl_dispatcher_test") { 334 branch_protector_ret = "pac_ret" 335 sanitize = { 336 integer_overflow = true 337 cfi = true 338 cfi_cross_dso = true 339 debug = false 340 } 341 342 module_out_path = module_output_path 343 344 sources = [ 345 "${distributedfile_path}/frameworks/native/distributed_file_inner/src/asset/asset_obj.cpp", 346 "${services_path}/distributedfiledaemon/src/all_connect/all_connect_manager.cpp", 347 "${services_path}/distributedfiledaemon/src/device/device_info.cpp", 348 "${services_path}/distributedfiledaemon/src/device/device_manager_agent.cpp", 349 "${services_path}/distributedfiledaemon/src/ipc/asset_callback_manager.cpp", 350 "${services_path}/distributedfiledaemon/src/ipc/asset_recv_callback_proxy.cpp", 351 "${services_path}/distributedfiledaemon/src/ipc/asset_send_callback_proxy.cpp", 352 "${services_path}/distributedfiledaemon/src/ipc/connection_detector.cpp", 353 "${services_path}/distributedfiledaemon/src/ipc/daemon.cpp", 354 "${services_path}/distributedfiledaemon/src/ipc/daemon_eventhandler.cpp", 355 "${services_path}/distributedfiledaemon/src/ipc/daemon_execute.cpp", 356 "${services_path}/distributedfiledaemon/src/ipc/daemon_stub.cpp", 357 "${services_path}/distributedfiledaemon/src/ipc/file_trans_listener_proxy.cpp", 358 "${services_path}/distributedfiledaemon/src/ipc/trans_mananger.cpp", 359 "${services_path}/distributedfiledaemon/src/mountpoint/mount_manager.cpp", 360 "${services_path}/distributedfiledaemon/src/mountpoint/mount_point.cpp", 361 "${services_path}/distributedfiledaemon/src/multiuser/os_account_observer.cpp", 362 "${services_path}/distributedfiledaemon/src/network/devsl_dispatcher.cpp", 363 "${services_path}/distributedfiledaemon/src/network/kernel_talker.cpp", 364 "${services_path}/distributedfiledaemon/src/network/network_agent_template.cpp", 365 "${services_path}/distributedfiledaemon/src/network/session_pool.cpp", 366 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_agent.cpp", 367 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_recv_listener.cpp", 368 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_send_listener.cpp", 369 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_receive_listener.cpp", 370 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_send_listener.cpp", 371 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler.cpp", 372 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler_asset.cpp", 373 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session.cpp", 374 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_dispatcher.cpp", 375 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_listener.cpp", 376 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_pool.cpp", 377 "network/devsl_dispatcher_test.cpp", 378 ] 379 380 configs = [ 381 ":module_private_config", 382 "${utils_path}:compiler_configs", 383 ] 384 385 deps = [ 386 "${utils_path}:libdistributedfileutils", 387 "//third_party/googletest:gtest_main", 388 ] 389 390 external_deps = [ 391 "ability_base:want", 392 "ability_base:zuri", 393 "access_token:libaccesstoken_sdk", 394 "app_file_service:sandbox_helper_native", 395 "c_utils:utils", 396 "common_event_service:cesfwk_innerkits", 397 "dataclassification:data_transit_mgr", 398 "device_auth:deviceauth_sdk", 399 "device_manager:devicemanagersdk", 400 "dsoftbus:softbus_client", 401 "eventhandler:libeventhandler", 402 "hilog:libhilog", 403 "hisysevent:libhisysevent", 404 "init:libbegetutil", 405 "ipc:ipc_single", 406 "os_account:os_account_innerkits", 407 "safwk:system_ability_fwk", 408 "samgr:samgr_proxy", 409 "storage_service:storage_manager_sa_proxy", 410 "zlib:shared_libz", 411 ] 412 413 defines = [ "private=public" ] 414} 415 416ohos_unittest("kernel_talker_test") { 417 branch_protector_ret = "pac_ret" 418 sanitize = { 419 integer_overflow = true 420 cfi = true 421 cfi_cross_dso = true 422 debug = false 423 } 424 425 module_out_path = module_output_path 426 427 sources = [ 428 "${distributedfile_path}/frameworks/native/distributed_file_inner/src/asset/asset_obj.cpp", 429 "${services_path}/distributedfiledaemon/src/all_connect/all_connect_manager.cpp", 430 "${services_path}/distributedfiledaemon/src/device/device_info.cpp", 431 "${services_path}/distributedfiledaemon/src/device/device_manager_agent.cpp", 432 "${services_path}/distributedfiledaemon/src/ipc/asset_callback_manager.cpp", 433 "${services_path}/distributedfiledaemon/src/ipc/asset_recv_callback_proxy.cpp", 434 "${services_path}/distributedfiledaemon/src/ipc/asset_send_callback_proxy.cpp", 435 "${services_path}/distributedfiledaemon/src/ipc/connection_detector.cpp", 436 "${services_path}/distributedfiledaemon/src/ipc/daemon.cpp", 437 "${services_path}/distributedfiledaemon/src/ipc/daemon_eventhandler.cpp", 438 "${services_path}/distributedfiledaemon/src/ipc/daemon_execute.cpp", 439 "${services_path}/distributedfiledaemon/src/ipc/daemon_stub.cpp", 440 "${services_path}/distributedfiledaemon/src/ipc/file_trans_listener_proxy.cpp", 441 "${services_path}/distributedfiledaemon/src/ipc/trans_mananger.cpp", 442 "${services_path}/distributedfiledaemon/src/mountpoint/mount_manager.cpp", 443 "${services_path}/distributedfiledaemon/src/mountpoint/mount_point.cpp", 444 "${services_path}/distributedfiledaemon/src/multiuser/os_account_observer.cpp", 445 "${services_path}/distributedfiledaemon/src/network/devsl_dispatcher.cpp", 446 "${services_path}/distributedfiledaemon/src/network/kernel_talker.cpp", 447 "${services_path}/distributedfiledaemon/src/network/network_agent_template.cpp", 448 "${services_path}/distributedfiledaemon/src/network/session_pool.cpp", 449 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_agent.cpp", 450 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_recv_listener.cpp", 451 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_send_listener.cpp", 452 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_receive_listener.cpp", 453 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_send_listener.cpp", 454 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler.cpp", 455 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler_asset.cpp", 456 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session.cpp", 457 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_dispatcher.cpp", 458 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_listener.cpp", 459 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_pool.cpp", 460 "network/kernel_talker_test.cpp", 461 ] 462 463 configs = [ 464 ":module_private_config", 465 "${utils_path}:compiler_configs", 466 ] 467 468 deps = [ 469 "${utils_path}:libdistributedfileutils", 470 "//third_party/googletest:gtest_main", 471 ] 472 473 external_deps = [ 474 "ability_base:want", 475 "ability_base:zuri", 476 "access_token:libaccesstoken_sdk", 477 "app_file_service:sandbox_helper_native", 478 "c_utils:utils", 479 "common_event_service:cesfwk_innerkits", 480 "dataclassification:data_transit_mgr", 481 "device_auth:deviceauth_sdk", 482 "device_manager:devicemanagersdk", 483 "dsoftbus:softbus_client", 484 "eventhandler:libeventhandler", 485 "hilog:libhilog", 486 "hisysevent:libhisysevent", 487 "init:libbegetutil", 488 "ipc:ipc_single", 489 "os_account:os_account_innerkits", 490 "safwk:system_ability_fwk", 491 "samgr:samgr_proxy", 492 "storage_service:storage_manager_sa_proxy", 493 "zlib:shared_libz", 494 ] 495 496 defines = [ "private=public" ] 497} 498 499ohos_unittest("network_agent_template_test") { 500 branch_protector_ret = "pac_ret" 501 sanitize = { 502 integer_overflow = true 503 cfi = true 504 cfi_cross_dso = true 505 debug = false 506 } 507 508 module_out_path = module_output_path 509 510 sources = [ 511 "${services_path}/distributedfiledaemon/src/all_connect/all_connect_manager.cpp", 512 "${services_path}/distributedfiledaemon/src/device/device_info.cpp", 513 "${services_path}/distributedfiledaemon/src/device/device_manager_agent.cpp", 514 "${services_path}/distributedfiledaemon/src/ipc/connection_detector.cpp", 515 "${services_path}/distributedfiledaemon/src/ipc/daemon.cpp", 516 "${services_path}/distributedfiledaemon/src/ipc/daemon_eventhandler.cpp", 517 "${services_path}/distributedfiledaemon/src/ipc/daemon_execute.cpp", 518 "${services_path}/distributedfiledaemon/src/ipc/daemon_stub.cpp", 519 "${services_path}/distributedfiledaemon/src/ipc/file_trans_listener_proxy.cpp", 520 "${services_path}/distributedfiledaemon/src/ipc/trans_mananger.cpp", 521 "${services_path}/distributedfiledaemon/src/mountpoint/mount_manager.cpp", 522 "${services_path}/distributedfiledaemon/src/mountpoint/mount_point.cpp", 523 "${services_path}/distributedfiledaemon/src/multiuser/os_account_observer.cpp", 524 "${services_path}/distributedfiledaemon/src/network/devsl_dispatcher.cpp", 525 "${services_path}/distributedfiledaemon/src/network/kernel_talker.cpp", 526 "${services_path}/distributedfiledaemon/src/network/network_agent_template.cpp", 527 "${services_path}/distributedfiledaemon/src/network/session_pool.cpp", 528 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_agent.cpp", 529 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_recv_listener.cpp", 530 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_send_listener.cpp", 531 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_receive_listener.cpp", 532 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_send_listener.cpp", 533 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler.cpp", 534 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler_asset.cpp", 535 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session.cpp", 536 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_dispatcher.cpp", 537 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_listener.cpp", 538 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_pool.cpp", 539 "network/network_agent_template_test.cpp", 540 ] 541 542 configs = [ 543 ":module_private_config", 544 "${utils_path}:compiler_configs", 545 ] 546 547 deps = [ 548 "${utils_path}:libdistributedfileutils", 549 "//third_party/googletest:gtest_main", 550 ] 551 552 external_deps = [ 553 "ability_base:want", 554 "ability_base:zuri", 555 "access_token:libaccesstoken_sdk", 556 "app_file_service:sandbox_helper_native", 557 "c_utils:utils", 558 "common_event_service:cesfwk_innerkits", 559 "dataclassification:data_transit_mgr", 560 "device_auth:deviceauth_sdk", 561 "device_manager:devicemanagersdk", 562 "dsoftbus:softbus_client", 563 "eventhandler:libeventhandler", 564 "hilog:libhilog", 565 "init:libbegetutil", 566 "ipc:ipc_single", 567 "os_account:os_account_innerkits", 568 "safwk:system_ability_fwk", 569 "samgr:samgr_proxy", 570 "storage_service:storage_manager_sa_proxy", 571 "zlib:shared_libz", 572 ] 573 574 defines = [ "private=public" ] 575} 576 577ohos_unittest("session_pool_test") { 578 branch_protector_ret = "pac_ret" 579 sanitize = { 580 integer_overflow = true 581 cfi = true 582 cfi_cross_dso = true 583 debug = false 584 } 585 586 module_out_path = module_output_path 587 588 sources = [ 589 "${distributedfile_path}/frameworks/native/distributed_file_inner/src/asset/asset_obj.cpp", 590 "${services_path}/distributedfiledaemon/src/all_connect/all_connect_manager.cpp", 591 "${services_path}/distributedfiledaemon/src/device/device_info.cpp", 592 "${services_path}/distributedfiledaemon/src/device/device_manager_agent.cpp", 593 "${services_path}/distributedfiledaemon/src/ipc/asset_callback_manager.cpp", 594 "${services_path}/distributedfiledaemon/src/ipc/asset_recv_callback_proxy.cpp", 595 "${services_path}/distributedfiledaemon/src/ipc/asset_send_callback_proxy.cpp", 596 "${services_path}/distributedfiledaemon/src/ipc/connection_detector.cpp", 597 "${services_path}/distributedfiledaemon/src/ipc/daemon.cpp", 598 "${services_path}/distributedfiledaemon/src/ipc/daemon_eventhandler.cpp", 599 "${services_path}/distributedfiledaemon/src/ipc/daemon_execute.cpp", 600 "${services_path}/distributedfiledaemon/src/ipc/daemon_stub.cpp", 601 "${services_path}/distributedfiledaemon/src/ipc/file_trans_listener_proxy.cpp", 602 "${services_path}/distributedfiledaemon/src/ipc/trans_mananger.cpp", 603 "${services_path}/distributedfiledaemon/src/mountpoint/mount_manager.cpp", 604 "${services_path}/distributedfiledaemon/src/mountpoint/mount_point.cpp", 605 "${services_path}/distributedfiledaemon/src/multiuser/os_account_observer.cpp", 606 "${services_path}/distributedfiledaemon/src/network/devsl_dispatcher.cpp", 607 "${services_path}/distributedfiledaemon/src/network/network_agent_template.cpp", 608 "${services_path}/distributedfiledaemon/src/network/session_pool.cpp", 609 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_agent.cpp", 610 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_recv_listener.cpp", 611 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_send_listener.cpp", 612 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_receive_listener.cpp", 613 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_send_listener.cpp", 614 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler.cpp", 615 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler_asset.cpp", 616 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session.cpp", 617 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_dispatcher.cpp", 618 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_listener.cpp", 619 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_pool.cpp", 620 "network/session_pool_test.cpp", 621 ] 622 623 configs = [ 624 ":module_private_config", 625 "${utils_path}:compiler_configs", 626 ] 627 628 deps = [ 629 "${utils_path}:libdistributedfileutils", 630 "//third_party/googletest:gtest_main", 631 ] 632 633 external_deps = [ 634 "ability_base:want", 635 "ability_base:zuri", 636 "access_token:libaccesstoken_sdk", 637 "app_file_service:sandbox_helper_native", 638 "c_utils:utils", 639 "common_event_service:cesfwk_innerkits", 640 "dataclassification:data_transit_mgr", 641 "device_auth:deviceauth_sdk", 642 "device_manager:devicemanagersdk", 643 "dsoftbus:softbus_client", 644 "eventhandler:libeventhandler", 645 "hilog:libhilog", 646 "hisysevent:libhisysevent", 647 "init:libbegetutil", 648 "ipc:ipc_single", 649 "os_account:os_account_innerkits", 650 "safwk:system_ability_fwk", 651 "samgr:samgr_proxy", 652 "storage_service:storage_manager_sa_proxy", 653 "zlib:shared_libz", 654 ] 655 656 defines = [ "private=public" ] 657} 658 659ohos_unittest("softbus_agent_test") { 660 branch_protector_ret = "pac_ret" 661 sanitize = { 662 integer_overflow = true 663 cfi = true 664 cfi_cross_dso = true 665 debug = false 666 } 667 668 module_out_path = module_output_path 669 670 sources = [ 671 "${distributedfile_path}/frameworks/native/distributed_file_inner/src/asset/asset_obj.cpp", 672 "${services_path}/distributedfiledaemon/src/all_connect/all_connect_manager.cpp", 673 "${services_path}/distributedfiledaemon/src/device/device_info.cpp", 674 "${services_path}/distributedfiledaemon/src/device/device_manager_agent.cpp", 675 "${services_path}/distributedfiledaemon/src/ipc/asset_callback_manager.cpp", 676 "${services_path}/distributedfiledaemon/src/ipc/asset_recv_callback_proxy.cpp", 677 "${services_path}/distributedfiledaemon/src/ipc/asset_send_callback_proxy.cpp", 678 "${services_path}/distributedfiledaemon/src/ipc/connection_detector.cpp", 679 "${services_path}/distributedfiledaemon/src/ipc/daemon.cpp", 680 "${services_path}/distributedfiledaemon/src/ipc/daemon_eventhandler.cpp", 681 "${services_path}/distributedfiledaemon/src/ipc/daemon_execute.cpp", 682 "${services_path}/distributedfiledaemon/src/ipc/daemon_stub.cpp", 683 "${services_path}/distributedfiledaemon/src/ipc/file_trans_listener_proxy.cpp", 684 "${services_path}/distributedfiledaemon/src/ipc/trans_mananger.cpp", 685 "${services_path}/distributedfiledaemon/src/mountpoint/mount_manager.cpp", 686 "${services_path}/distributedfiledaemon/src/mountpoint/mount_point.cpp", 687 "${services_path}/distributedfiledaemon/src/multiuser/os_account_observer.cpp", 688 "${services_path}/distributedfiledaemon/src/network/devsl_dispatcher.cpp", 689 "${services_path}/distributedfiledaemon/src/network/kernel_talker.cpp", 690 "${services_path}/distributedfiledaemon/src/network/network_agent_template.cpp", 691 "${services_path}/distributedfiledaemon/src/network/session_pool.cpp", 692 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_agent.cpp", 693 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_recv_listener.cpp", 694 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_send_listener.cpp", 695 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_receive_listener.cpp", 696 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_send_listener.cpp", 697 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler.cpp", 698 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler_asset.cpp", 699 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session.cpp", 700 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_dispatcher.cpp", 701 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_listener.cpp", 702 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_pool.cpp", 703 "network/softbus/softbus_agent_test.cpp", 704 ] 705 706 configs = [ 707 ":module_private_config", 708 "${utils_path}:compiler_configs", 709 ] 710 711 deps = [ 712 "${utils_path}:libdistributedfileutils", 713 "//third_party/googletest:gtest_main", 714 ] 715 716 external_deps = [ 717 "ability_base:want", 718 "ability_base:zuri", 719 "access_token:libaccesstoken_sdk", 720 "app_file_service:sandbox_helper_native", 721 "c_utils:utils", 722 "common_event_service:cesfwk_innerkits", 723 "dataclassification:data_transit_mgr", 724 "device_auth:deviceauth_sdk", 725 "device_manager:devicemanagersdk", 726 "dsoftbus:softbus_client", 727 "eventhandler:libeventhandler", 728 "hilog:libhilog", 729 "hisysevent:libhisysevent", 730 "init:libbegetutil", 731 "ipc:ipc_single", 732 "os_account:os_account_innerkits", 733 "safwk:system_ability_fwk", 734 "samgr:samgr_proxy", 735 "storage_service:storage_manager_sa_proxy", 736 "zlib:shared_libz", 737 ] 738 739 defines = [ 740 "private=public", 741 "protected=public", 742 ] 743} 744 745ohos_unittest("softbus_file_receive_listener_test") { 746 branch_protector_ret = "pac_ret" 747 sanitize = { 748 integer_overflow = true 749 cfi = true 750 cfi_cross_dso = true 751 debug = false 752 } 753 754 module_out_path = module_output_path 755 756 include_dirs = [ 757 "${distributedfile_path}/services/distributedfiledaemon/include/ipc", 758 "${distributedfile_path}/services/distributedfiledaemon/include/network/softbus", 759 ] 760 761 sources = [ 762 "${services_path}/distributedfiledaemon/src/all_connect/all_connect_manager.cpp", 763 "${services_path}/distributedfiledaemon/src/ipc/trans_mananger.cpp", 764 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_receive_listener.cpp", 765 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_send_listener.cpp", 766 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler.cpp", 767 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_listener.cpp", 768 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_pool.cpp", 769 "network/softbus/softbus_file_receive_listener_test.cpp", 770 ] 771 772 configs = [ 773 ":module_private_config", 774 "${utils_path}:compiler_configs", 775 ] 776 777 deps = [ 778 "${utils_path}:libdistributedfileutils", 779 "//third_party/googletest:gtest_main", 780 ] 781 782 external_deps = [ 783 "app_file_service:sandbox_helper_native", 784 "c_utils:utils", 785 "device_manager:devicemanagersdk", 786 "dsoftbus:softbus_client", 787 "hilog:libhilog", 788 "hisysevent:libhisysevent", 789 "os_account:os_account_innerkits", 790 ] 791 792 defines = [ "private=public" ] 793} 794 795ohos_unittest("softbus_file_send_listener_test") { 796 branch_protector_ret = "pac_ret" 797 sanitize = { 798 integer_overflow = true 799 cfi = true 800 cfi_cross_dso = true 801 debug = false 802 } 803 804 module_out_path = module_output_path 805 806 include_dirs = [ 807 "${distributedfile_path}/services/distributedfiledaemon/include/ipc", 808 "${distributedfile_path}/services/distributedfiledaemon/include/network/softbus", 809 ] 810 811 sources = [ 812 "${services_path}/distributedfiledaemon/src/all_connect/all_connect_manager.cpp", 813 "${services_path}/distributedfiledaemon/src/ipc/trans_mananger.cpp", 814 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_receive_listener.cpp", 815 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_send_listener.cpp", 816 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler.cpp", 817 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_listener.cpp", 818 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_pool.cpp", 819 "network/softbus/softbus_file_send_listener_test.cpp", 820 ] 821 822 configs = [ 823 ":module_private_config", 824 "${utils_path}:compiler_configs", 825 ] 826 827 deps = [ 828 "${utils_path}:libdistributedfileutils", 829 "//third_party/googletest:gtest_main", 830 ] 831 832 external_deps = [ 833 "app_file_service:sandbox_helper_native", 834 "c_utils:utils", 835 "device_manager:devicemanagersdk", 836 "dsoftbus:softbus_client", 837 "hilog:libhilog", 838 "hisysevent:libhisysevent", 839 "os_account:os_account_innerkits", 840 ] 841 842 defines = [ "private=public" ] 843} 844 845ohos_unittest("softbus_session_dispatcher_test") { 846 branch_protector_ret = "pac_ret" 847 sanitize = { 848 integer_overflow = true 849 cfi = true 850 cfi_cross_dso = true 851 debug = false 852 } 853 854 module_out_path = module_output_path 855 856 sources = [ 857 "${distributedfile_path}/frameworks/native/distributed_file_inner/src/asset/asset_obj.cpp", 858 "${services_path}/distributedfiledaemon/src/all_connect/all_connect_manager.cpp", 859 "${services_path}/distributedfiledaemon/src/device/device_info.cpp", 860 "${services_path}/distributedfiledaemon/src/device/device_manager_agent.cpp", 861 "${services_path}/distributedfiledaemon/src/ipc/asset_callback_manager.cpp", 862 "${services_path}/distributedfiledaemon/src/ipc/asset_recv_callback_proxy.cpp", 863 "${services_path}/distributedfiledaemon/src/ipc/asset_send_callback_proxy.cpp", 864 "${services_path}/distributedfiledaemon/src/ipc/connection_detector.cpp", 865 "${services_path}/distributedfiledaemon/src/ipc/daemon.cpp", 866 "${services_path}/distributedfiledaemon/src/ipc/daemon_eventhandler.cpp", 867 "${services_path}/distributedfiledaemon/src/ipc/daemon_execute.cpp", 868 "${services_path}/distributedfiledaemon/src/ipc/daemon_stub.cpp", 869 "${services_path}/distributedfiledaemon/src/ipc/file_trans_listener_proxy.cpp", 870 "${services_path}/distributedfiledaemon/src/ipc/trans_mananger.cpp", 871 "${services_path}/distributedfiledaemon/src/mountpoint/mount_manager.cpp", 872 "${services_path}/distributedfiledaemon/src/mountpoint/mount_point.cpp", 873 "${services_path}/distributedfiledaemon/src/multiuser/os_account_observer.cpp", 874 "${services_path}/distributedfiledaemon/src/network/devsl_dispatcher.cpp", 875 "${services_path}/distributedfiledaemon/src/network/kernel_talker.cpp", 876 "${services_path}/distributedfiledaemon/src/network/network_agent_template.cpp", 877 "${services_path}/distributedfiledaemon/src/network/session_pool.cpp", 878 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_agent.cpp", 879 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_recv_listener.cpp", 880 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_send_listener.cpp", 881 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_receive_listener.cpp", 882 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_send_listener.cpp", 883 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler.cpp", 884 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler_asset.cpp", 885 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session.cpp", 886 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_dispatcher.cpp", 887 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_listener.cpp", 888 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_pool.cpp", 889 "network/softbus/softbus_session_dispatcher_test.cpp", 890 ] 891 892 configs = [ 893 ":module_private_config", 894 "${utils_path}:compiler_configs", 895 ] 896 897 deps = [ 898 "${utils_path}:libdistributedfileutils", 899 "//third_party/googletest:gtest_main", 900 ] 901 902 external_deps = [ 903 "ability_base:want", 904 "ability_base:zuri", 905 "access_token:libaccesstoken_sdk", 906 "app_file_service:sandbox_helper_native", 907 "c_utils:utils", 908 "common_event_service:cesfwk_innerkits", 909 "dataclassification:data_transit_mgr", 910 "device_auth:deviceauth_sdk", 911 "device_manager:devicemanagersdk", 912 "dsoftbus:softbus_client", 913 "eventhandler:libeventhandler", 914 "hilog:libhilog", 915 "hisysevent:libhisysevent", 916 "init:libbegetutil", 917 "ipc:ipc_single", 918 "os_account:os_account_innerkits", 919 "safwk:system_ability_fwk", 920 "samgr:samgr_proxy", 921 "storage_service:storage_manager_sa_proxy", 922 "zlib:shared_libz", 923 ] 924 925 defines = [ "private=public" ] 926} 927 928ohos_unittest("softbus_session_test") { 929 branch_protector_ret = "pac_ret" 930 sanitize = { 931 integer_overflow = true 932 cfi = true 933 cfi_cross_dso = true 934 debug = false 935 } 936 937 module_out_path = module_output_path 938 939 sources = [ 940 "${distributedfile_path}/frameworks/native/distributed_file_inner/src/asset/asset_obj.cpp", 941 "${services_path}/distributedfiledaemon/src/all_connect/all_connect_manager.cpp", 942 "${services_path}/distributedfiledaemon/src/device/device_info.cpp", 943 "${services_path}/distributedfiledaemon/src/device/device_manager_agent.cpp", 944 "${services_path}/distributedfiledaemon/src/ipc/asset_callback_manager.cpp", 945 "${services_path}/distributedfiledaemon/src/ipc/asset_recv_callback_proxy.cpp", 946 "${services_path}/distributedfiledaemon/src/ipc/asset_send_callback_proxy.cpp", 947 "${services_path}/distributedfiledaemon/src/ipc/connection_detector.cpp", 948 "${services_path}/distributedfiledaemon/src/ipc/daemon.cpp", 949 "${services_path}/distributedfiledaemon/src/ipc/daemon_eventhandler.cpp", 950 "${services_path}/distributedfiledaemon/src/ipc/daemon_execute.cpp", 951 "${services_path}/distributedfiledaemon/src/ipc/daemon_stub.cpp", 952 "${services_path}/distributedfiledaemon/src/ipc/file_trans_listener_proxy.cpp", 953 "${services_path}/distributedfiledaemon/src/ipc/trans_mananger.cpp", 954 "${services_path}/distributedfiledaemon/src/mountpoint/mount_manager.cpp", 955 "${services_path}/distributedfiledaemon/src/mountpoint/mount_point.cpp", 956 "${services_path}/distributedfiledaemon/src/multiuser/os_account_observer.cpp", 957 "${services_path}/distributedfiledaemon/src/network/devsl_dispatcher.cpp", 958 "${services_path}/distributedfiledaemon/src/network/kernel_talker.cpp", 959 "${services_path}/distributedfiledaemon/src/network/network_agent_template.cpp", 960 "${services_path}/distributedfiledaemon/src/network/session_pool.cpp", 961 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_agent.cpp", 962 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_recv_listener.cpp", 963 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_send_listener.cpp", 964 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_receive_listener.cpp", 965 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_send_listener.cpp", 966 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler.cpp", 967 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler_asset.cpp", 968 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session.cpp", 969 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_dispatcher.cpp", 970 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_listener.cpp", 971 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_pool.cpp", 972 "network/softbus/softbus_session_test.cpp", 973 ] 974 975 configs = [ 976 ":module_private_config", 977 "${utils_path}:compiler_configs", 978 ] 979 980 deps = [ 981 "${utils_path}:libdistributedfileutils", 982 "//third_party/googletest:gtest_main", 983 ] 984 985 external_deps = [ 986 "ability_base:want", 987 "ability_base:zuri", 988 "access_token:libaccesstoken_sdk", 989 "app_file_service:sandbox_helper_native", 990 "c_utils:utils", 991 "common_event_service:cesfwk_innerkits", 992 "dataclassification:data_transit_mgr", 993 "device_auth:deviceauth_sdk", 994 "device_manager:devicemanagersdk", 995 "dsoftbus:softbus_client", 996 "eventhandler:libeventhandler", 997 "hilog:libhilog", 998 "hisysevent:libhisysevent", 999 "init:libbegetutil", 1000 "ipc:ipc_single", 1001 "os_account:os_account_innerkits", 1002 "safwk:system_ability_fwk", 1003 "samgr:samgr_proxy", 1004 "storage_service:storage_manager_sa_proxy", 1005 "zlib:shared_libz", 1006 ] 1007 1008 defines = [ "private=public" ] 1009} 1010 1011ohos_unittest("softbus_handler_asset_test") { 1012 branch_protector_ret = "pac_ret" 1013 sanitize = { 1014 integer_overflow = true 1015 cfi = true 1016 cfi_cross_dso = true 1017 debug = false 1018 blocklist = "${distributedfile_path}/cfi_blocklist.txt" 1019 } 1020 1021 module_out_path = module_output_path 1022 1023 include_dirs = [ "${distributedfile_path}/services/distributedfiledaemon/include/network/softbus" ] 1024 1025 sources = [ 1026 "${distributedfile_path}/frameworks/native/distributed_file_inner/src/asset/asset_obj.cpp", 1027 "${distributedfile_path}/test/mock/device_manager_impl_mock.cpp", 1028 "${distributedfile_path}/test/mock/socket_mock.cpp", 1029 "${distributedfile_path}/test/mock/softbus_bus_center_mock.cpp", 1030 "${services_path}/distributedfiledaemon/src/ipc/trans_mananger.cpp", 1031 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_recv_listener.cpp", 1032 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_send_listener.cpp", 1033 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_receive_listener.cpp", 1034 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_send_listener.cpp", 1035 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler.cpp", 1036 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler_asset.cpp", 1037 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_listener.cpp", 1038 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_pool.cpp", 1039 "network/softbus/softbus_handler_asset_test.cpp", 1040 ] 1041 1042 configs = [ 1043 ":module_private_config", 1044 "${utils_path}:compiler_configs", 1045 ] 1046 1047 deps = [ 1048 "${services_path}/distributedfiledaemon:libdistributedfiledaemon", 1049 "${utils_path}:libdistributedfileutils", 1050 "//third_party/googletest:gmock_main", 1051 "//third_party/googletest:gtest_main", 1052 ] 1053 1054 external_deps = [ 1055 "access_token:libaccesstoken_sdk", 1056 "app_file_service:sandbox_helper_native", 1057 "c_utils:utils", 1058 "device_manager:devicemanagersdk", 1059 "dsoftbus:softbus_client", 1060 "hilog:libhilog", 1061 "hisysevent:libhisysevent", 1062 "ipc:ipc_core", 1063 "os_account:os_account_innerkits", 1064 "zlib:shared_libz", 1065 ] 1066 1067 defines = [ "private=public" ] 1068} 1069 1070ohos_unittest("softbus_handler_test") { 1071 branch_protector_ret = "pac_ret" 1072 sanitize = { 1073 integer_overflow = true 1074 cfi = true 1075 cfi_cross_dso = true 1076 debug = false 1077 blocklist = "${distributedfile_path}/cfi_blocklist.txt" 1078 } 1079 1080 module_out_path = module_output_path 1081 1082 include_dirs = [ "${distributedfile_path}/services/distributedfiledaemon/include/network/softbus" ] 1083 1084 sources = [ 1085 "${distributedfile_path}/test/mock/socket_mock.cpp", 1086 "${services_path}/distributedfiledaemon/src/all_connect/all_connect_manager.cpp", 1087 "${services_path}/distributedfiledaemon/src/ipc/trans_mananger.cpp", 1088 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_receive_listener.cpp", 1089 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_send_listener.cpp", 1090 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler.cpp", 1091 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_listener.cpp", 1092 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_pool.cpp", 1093 "network/softbus/softbus_handler_test.cpp", 1094 ] 1095 1096 configs = [ 1097 ":module_private_config", 1098 "${utils_path}:compiler_configs", 1099 ] 1100 1101 deps = [ 1102 "${utils_path}:libdistributedfileutils", 1103 "//third_party/googletest:gmock_main", 1104 "//third_party/googletest:gtest_main", 1105 ] 1106 1107 external_deps = [ 1108 "access_token:libaccesstoken_sdk", 1109 "app_file_service:sandbox_helper_native", 1110 "c_utils:utils", 1111 "device_manager:devicemanagersdk", 1112 "dsoftbus:softbus_client", 1113 "hilog:libhilog", 1114 "hisysevent:libhisysevent", 1115 "os_account:os_account_innerkits", 1116 ] 1117 1118 defines = [ "private=public" ] 1119} 1120 1121ohos_unittest("softbus_session_pool_test") { 1122 branch_protector_ret = "pac_ret" 1123 sanitize = { 1124 integer_overflow = true 1125 cfi = true 1126 cfi_cross_dso = true 1127 debug = false 1128 } 1129 1130 module_out_path = module_output_path 1131 1132 include_dirs = [ "${distributedfile_path}/services/distributedfiledaemon/include/network/softbus" ] 1133 1134 sources = [ 1135 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_pool.cpp", 1136 "network/softbus/softbus_session_pool_test.cpp", 1137 ] 1138 1139 configs = [ 1140 ":module_private_config", 1141 "${utils_path}:compiler_configs", 1142 ] 1143 1144 deps = [ 1145 "${utils_path}:libdistributedfileutils", 1146 "//third_party/googletest:gtest_main", 1147 ] 1148 1149 external_deps = [ 1150 "access_token:libaccesstoken_sdk", 1151 "c_utils:utils", 1152 "dsoftbus:softbus_client", 1153 "hilog:libhilog", 1154 ] 1155} 1156 1157ohos_unittest("softbus_session_listener_test") { 1158 branch_protector_ret = "pac_ret" 1159 sanitize = { 1160 integer_overflow = true 1161 cfi = true 1162 cfi_cross_dso = true 1163 debug = false 1164 } 1165 1166 module_out_path = module_output_path 1167 1168 include_dirs = [ "${distributedfile_path}/services/distributedfiledaemon/include/network/softbus" ] 1169 1170 sources = [ 1171 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_listener.cpp", 1172 "network/softbus/softbus_session_listener_test.cpp", 1173 ] 1174 1175 configs = [ 1176 ":module_private_config", 1177 "${utils_path}:compiler_configs", 1178 ] 1179 1180 deps = [ 1181 "${utils_path}:libdistributedfileutils", 1182 "//third_party/googletest:gtest_main", 1183 ] 1184 1185 external_deps = [ 1186 "ability_base:zuri", 1187 "access_token:libaccesstoken_sdk", 1188 "app_file_service:sandbox_helper_native", 1189 "c_utils:utils", 1190 "dsoftbus:softbus_client", 1191 "hilog:libhilog", 1192 "os_account:os_account_innerkits", 1193 ] 1194 1195 defines = [ "private=public" ] 1196} 1197 1198ohos_unittest("softbus_asset_recv_listener_test") { 1199 branch_protector_ret = "pac_ret" 1200 sanitize = { 1201 integer_overflow = true 1202 cfi = true 1203 cfi_cross_dso = true 1204 debug = false 1205 } 1206 1207 module_out_path = module_output_path 1208 1209 include_dirs = [ 1210 "${distributedfile_path}/frameworks/native/distributed_file_inner/include/asset", 1211 "${distributedfile_path}/services/distributedfiledaemon/include/ipc", 1212 "${distributedfile_path}/services/distributedfiledaemon/include/network/softbus", 1213 ] 1214 1215 sources = [ 1216 "${distributedfile_path}/frameworks/native/distributed_file_inner/src/asset/asset_obj.cpp", 1217 "${services_path}/distributedfiledaemon/src/ipc/asset_callback_manager.cpp", 1218 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_recv_listener.cpp", 1219 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_send_listener.cpp", 1220 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler_asset.cpp", 1221 "network/softbus/softbus_asset_recv_listener_test.cpp", 1222 ] 1223 1224 configs = [ 1225 ":module_private_config", 1226 "${utils_path}:compiler_configs", 1227 ] 1228 1229 deps = [ 1230 "${utils_path}:libdistributedfileutils", 1231 "//third_party/googletest:gtest_main", 1232 ] 1233 1234 external_deps = [ 1235 "access_token:libaccesstoken_sdk", 1236 "c_utils:utils", 1237 "device_manager:devicemanagersdk", 1238 "dsoftbus:softbus_client", 1239 "hilog:libhilog", 1240 "os_account:os_account_innerkits", 1241 "zlib:shared_libz", 1242 ] 1243 1244 defines = [ "private=public" ] 1245} 1246 1247ohos_unittest("softbus_asset_send_listener_test") { 1248 branch_protector_ret = "pac_ret" 1249 sanitize = { 1250 integer_overflow = true 1251 cfi = true 1252 cfi_cross_dso = true 1253 debug = false 1254 } 1255 1256 module_out_path = module_output_path 1257 1258 include_dirs = [ 1259 "${distributedfile_path}/frameworks/native/distributed_file_inner/include/asset", 1260 "${distributedfile_path}/services/distributedfiledaemon/include/ipc", 1261 "${distributedfile_path}/services/distributedfiledaemon/include/network/softbus", 1262 ] 1263 1264 sources = [ 1265 "${distributedfile_path}/frameworks/native/distributed_file_inner/src/asset/asset_obj.cpp", 1266 "${services_path}/distributedfiledaemon/src/ipc/asset_callback_manager.cpp", 1267 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_recv_listener.cpp", 1268 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_send_listener.cpp", 1269 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler_asset.cpp", 1270 "network/softbus/softbus_asset_send_listener_test.cpp", 1271 ] 1272 1273 configs = [ 1274 ":module_private_config", 1275 "${utils_path}:compiler_configs", 1276 ] 1277 1278 deps = [ 1279 "${utils_path}:libdistributedfileutils", 1280 "//third_party/googletest:gmock_main", 1281 "//third_party/googletest:gtest_main", 1282 ] 1283 1284 external_deps = [ 1285 "access_token:libaccesstoken_sdk", 1286 "c_utils:utils", 1287 "device_manager:devicemanagersdk", 1288 "dsoftbus:softbus_client", 1289 "hilog:libhilog", 1290 "os_account:os_account_innerkits", 1291 "zlib:shared_libz", 1292 ] 1293 1294 defines = [ "private=public" ] 1295} 1296 1297group("unittest") { 1298 testonly = true 1299 deps = [ 1300 ":device_info_test", 1301 ":device_manager_agent_sup_test", 1302 ":device_manager_agent_test", 1303 ":devsl_dispatcher_test", 1304 ":kernel_talker_test", 1305 ":os_account_observer_test", 1306 ":session_pool_test", 1307 ":softbus_agent_test", 1308 ":softbus_asset_recv_listener_test", 1309 ":softbus_asset_send_listener_test", 1310 ":softbus_file_receive_listener_test", 1311 ":softbus_file_send_listener_test", 1312 ":softbus_handler_asset_test", 1313 ":softbus_handler_test", 1314 ":softbus_session_dispatcher_test", 1315 ":softbus_session_listener_test", 1316 ":softbus_session_pool_test", 1317 ":softbus_session_test", 1318 ] 1319} 1320