# Copyright (C) 2021-2024 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/test.gni") import("//foundation/filemanagement/dfs_service/distributedfile.gni") module_output_path = "storage_distributed_file_manager/distributedfiledaemon" config("module_private_config") { visibility = [ ":*" ] include_dirs = [ "${distributedfile_path}/frameworks/native/distributed_file_inner/include", "${distributedfile_path}/test/mock", "${services_path}/distributedfiledaemon/include", "${services_path}/distributedfiledaemon/include/ipc", "//third_party/json/include", ] } ohos_unittest("device_info_test") { branch_protector_ret = "pac_ret" sanitize = { integer_overflow = true cfi = true cfi_cross_dso = true debug = false } module_out_path = module_output_path sources = [ "${services_path}/distributedfiledaemon/src/device/device_info.cpp" ] sources += [ "device/device_info_test.cpp" ] configs = [ ":module_private_config", "${utils_path}:compiler_configs", ] deps = [ "${utils_path}:libdistributedfileutils", "//third_party/googletest:gmock_main", "//third_party/googletest:gtest_main", ] external_deps = [ "c_utils:utils", "device_manager:devicemanagersdk", "hilog:libhilog", ] defines = [ "private=public" ] } ohos_unittest("device_manager_agent_sup_test") { branch_protector_ret = "pac_ret" sanitize = { integer_overflow = true cfi = true cfi_cross_dso = true debug = false blocklist = "${distributedfile_path}/cfi_blocklist.txt" } module_out_path = module_output_path include_dirs = [ "device/include/" ] sources = [ "${distributedfile_path}/frameworks/native/distributed_file_inner/src/asset/asset_obj.cpp", "${distributedfile_path}/test/mock/device_manager_impl_mock.cpp", "${distributedfile_path}/test/mock/device_manager_mock.cpp", "${distributedfile_path}/test/mock/softbus_bus_center_mock.cpp", "${services_path}/distributedfiledaemon/src/all_connect/all_connect_manager.cpp", "${services_path}/distributedfiledaemon/src/device/device_info.cpp", "${services_path}/distributedfiledaemon/src/device/device_manager_agent.cpp", "${services_path}/distributedfiledaemon/src/ipc/asset_callback_manager.cpp", "${services_path}/distributedfiledaemon/src/ipc/asset_recv_callback_proxy.cpp", "${services_path}/distributedfiledaemon/src/ipc/asset_send_callback_proxy.cpp", "${services_path}/distributedfiledaemon/src/ipc/connection_detector.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon_eventhandler.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon_execute.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon_stub.cpp", "${services_path}/distributedfiledaemon/src/ipc/file_trans_listener_proxy.cpp", "${services_path}/distributedfiledaemon/src/ipc/trans_mananger.cpp", "${services_path}/distributedfiledaemon/src/mountpoint/mount_manager.cpp", "${services_path}/distributedfiledaemon/src/mountpoint/mount_point.cpp", "${services_path}/distributedfiledaemon/src/multiuser/os_account_observer.cpp", "${services_path}/distributedfiledaemon/src/network/devsl_dispatcher.cpp", "${services_path}/distributedfiledaemon/src/network/kernel_talker.cpp", "${services_path}/distributedfiledaemon/src/network/network_agent_template.cpp", "${services_path}/distributedfiledaemon/src/network/session_pool.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_agent.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_recv_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_send_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_receive_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_send_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler_asset.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_dispatcher.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_pool.cpp", ] sources += [ "device/device_manager_agent_sup_test.cpp", "device/mock_other_method.cpp", ] configs = [ ":module_private_config", "${utils_path}:compiler_configs", ] deps = [ "${utils_path}:libdistributedfileutils", "//third_party/googletest:gmock_main", "//third_party/googletest:gtest_main", ] external_deps = [ "ability_base:want", "ability_base:zuri", "access_token:libaccesstoken_sdk", "app_file_service:sandbox_helper_native", "c_utils:utils", "common_event_service:cesfwk_innerkits", "dataclassification:data_transit_mgr", "device_auth:deviceauth_sdk", "device_manager:devicemanagersdk", "dsoftbus:softbus_client", "eventhandler:libeventhandler", "hilog:libhilog", "hisysevent:libhisysevent", "init:libbegetutil", "ipc:ipc_single", "os_account:os_account_innerkits", "safwk:system_ability_fwk", "samgr:samgr_proxy", "storage_service:storage_manager_sa_proxy", "zlib:shared_libz", ] defines = [ "private=public" ] } ohos_unittest("device_manager_agent_test") { branch_protector_ret = "pac_ret" sanitize = { integer_overflow = true cfi = true cfi_cross_dso = true debug = false blocklist = "${distributedfile_path}/cfi_blocklist.txt" } module_out_path = module_output_path sources = [ "${distributedfile_path}/frameworks/native/distributed_file_inner/src/asset/asset_obj.cpp", "${distributedfile_path}/test/mock/device_manager_impl_mock.cpp", "${distributedfile_path}/test/mock/device_manager_mock.cpp", "${distributedfile_path}/test/mock/softbus_bus_center_mock.cpp", "${services_path}/distributedfiledaemon/src/all_connect/all_connect_manager.cpp", "${services_path}/distributedfiledaemon/src/device/device_info.cpp", "${services_path}/distributedfiledaemon/src/device/device_manager_agent.cpp", "${services_path}/distributedfiledaemon/src/ipc/asset_callback_manager.cpp", "${services_path}/distributedfiledaemon/src/ipc/asset_recv_callback_proxy.cpp", "${services_path}/distributedfiledaemon/src/ipc/asset_send_callback_proxy.cpp", "${services_path}/distributedfiledaemon/src/ipc/connection_detector.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon_eventhandler.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon_execute.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon_stub.cpp", "${services_path}/distributedfiledaemon/src/ipc/file_trans_listener_proxy.cpp", "${services_path}/distributedfiledaemon/src/ipc/trans_mananger.cpp", "${services_path}/distributedfiledaemon/src/mountpoint/mount_manager.cpp", "${services_path}/distributedfiledaemon/src/mountpoint/mount_point.cpp", "${services_path}/distributedfiledaemon/src/multiuser/os_account_observer.cpp", "${services_path}/distributedfiledaemon/src/network/devsl_dispatcher.cpp", "${services_path}/distributedfiledaemon/src/network/kernel_talker.cpp", "${services_path}/distributedfiledaemon/src/network/network_agent_template.cpp", "${services_path}/distributedfiledaemon/src/network/session_pool.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_agent.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_recv_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_send_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_receive_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_send_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler_asset.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_dispatcher.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_pool.cpp", ] sources += [ "device/device_manager_agent_test.cpp" ] configs = [ ":module_private_config", "${utils_path}:compiler_configs", ] deps = [ "${utils_path}:libdistributedfileutils", "//third_party/googletest:gmock_main", "//third_party/googletest:gtest_main", ] external_deps = [ "ability_base:want", "ability_base:zuri", "access_token:libaccesstoken_sdk", "app_file_service:sandbox_helper_native", "c_utils:utils", "common_event_service:cesfwk_innerkits", "dataclassification:data_transit_mgr", "device_auth:deviceauth_sdk", "device_manager:devicemanagersdk", "dsoftbus:softbus_client", "eventhandler:libeventhandler", "hilog:libhilog", "hisysevent:libhisysevent", "init:libbegetutil", "ipc:ipc_single", "os_account:os_account_innerkits", "safwk:system_ability_fwk", "samgr:samgr_proxy", "storage_service:storage_manager_sa_proxy", "zlib:shared_libz", ] defines = [ "private=public" ] } ohos_unittest("os_account_observer_test") { branch_protector_ret = "pac_ret" sanitize = { integer_overflow = true cfi = true cfi_cross_dso = true debug = false } module_out_path = module_output_path sources = [ "${distributedfile_path}/frameworks/native/distributed_file_inner/src/asset/asset_obj.cpp", "${services_path}/distributedfiledaemon/src/all_connect/all_connect_manager.cpp", "${services_path}/distributedfiledaemon/src/device/device_info.cpp", "${services_path}/distributedfiledaemon/src/device/device_manager_agent.cpp", "${services_path}/distributedfiledaemon/src/ipc/asset_callback_manager.cpp", "${services_path}/distributedfiledaemon/src/ipc/asset_recv_callback_proxy.cpp", "${services_path}/distributedfiledaemon/src/ipc/asset_send_callback_proxy.cpp", "${services_path}/distributedfiledaemon/src/ipc/connection_detector.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon_eventhandler.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon_execute.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon_stub.cpp", "${services_path}/distributedfiledaemon/src/ipc/file_trans_listener_proxy.cpp", "${services_path}/distributedfiledaemon/src/ipc/trans_mananger.cpp", "${services_path}/distributedfiledaemon/src/mountpoint/mount_manager.cpp", "${services_path}/distributedfiledaemon/src/mountpoint/mount_point.cpp", "${services_path}/distributedfiledaemon/src/multiuser/os_account_observer.cpp", "${services_path}/distributedfiledaemon/src/network/devsl_dispatcher.cpp", "${services_path}/distributedfiledaemon/src/network/kernel_talker.cpp", "${services_path}/distributedfiledaemon/src/network/network_agent_template.cpp", "${services_path}/distributedfiledaemon/src/network/session_pool.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_agent.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_recv_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_send_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_receive_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_send_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler_asset.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_dispatcher.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_pool.cpp", ] sources += [ "multiuser/os_account_observer_test.cpp" ] configs = [ ":module_private_config", "${utils_path}:compiler_configs", ] deps = [ "${utils_path}:libdistributedfileutils", "//third_party/googletest:gtest_main", ] external_deps = [ "ability_base:want", "ability_base:zuri", "access_token:libaccesstoken_sdk", "app_file_service:sandbox_helper_native", "c_utils:utils", "common_event_service:cesfwk_innerkits", "dataclassification:data_transit_mgr", "device_auth:deviceauth_sdk", "device_manager:devicemanagersdk", "dsoftbus:softbus_client", "eventhandler:libeventhandler", "hilog:libhilog", "hisysevent:libhisysevent", "init:libbegetutil", "ipc:ipc_single", "os_account:os_account_innerkits", "safwk:system_ability_fwk", "samgr:samgr_proxy", "storage_service:storage_manager_sa_proxy", "zlib:shared_libz", ] defines = [ "private=public" ] } ohos_unittest("devsl_dispatcher_test") { branch_protector_ret = "pac_ret" sanitize = { integer_overflow = true cfi = true cfi_cross_dso = true debug = false } module_out_path = module_output_path sources = [ "${distributedfile_path}/frameworks/native/distributed_file_inner/src/asset/asset_obj.cpp", "${services_path}/distributedfiledaemon/src/all_connect/all_connect_manager.cpp", "${services_path}/distributedfiledaemon/src/device/device_info.cpp", "${services_path}/distributedfiledaemon/src/device/device_manager_agent.cpp", "${services_path}/distributedfiledaemon/src/ipc/asset_callback_manager.cpp", "${services_path}/distributedfiledaemon/src/ipc/asset_recv_callback_proxy.cpp", "${services_path}/distributedfiledaemon/src/ipc/asset_send_callback_proxy.cpp", "${services_path}/distributedfiledaemon/src/ipc/connection_detector.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon_eventhandler.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon_execute.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon_stub.cpp", "${services_path}/distributedfiledaemon/src/ipc/file_trans_listener_proxy.cpp", "${services_path}/distributedfiledaemon/src/ipc/trans_mananger.cpp", "${services_path}/distributedfiledaemon/src/mountpoint/mount_manager.cpp", "${services_path}/distributedfiledaemon/src/mountpoint/mount_point.cpp", "${services_path}/distributedfiledaemon/src/multiuser/os_account_observer.cpp", "${services_path}/distributedfiledaemon/src/network/devsl_dispatcher.cpp", "${services_path}/distributedfiledaemon/src/network/kernel_talker.cpp", "${services_path}/distributedfiledaemon/src/network/network_agent_template.cpp", "${services_path}/distributedfiledaemon/src/network/session_pool.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_agent.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_recv_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_send_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_receive_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_send_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler_asset.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_dispatcher.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_pool.cpp", "network/devsl_dispatcher_test.cpp", ] configs = [ ":module_private_config", "${utils_path}:compiler_configs", ] deps = [ "${utils_path}:libdistributedfileutils", "//third_party/googletest:gtest_main", ] external_deps = [ "ability_base:want", "ability_base:zuri", "access_token:libaccesstoken_sdk", "app_file_service:sandbox_helper_native", "c_utils:utils", "common_event_service:cesfwk_innerkits", "dataclassification:data_transit_mgr", "device_auth:deviceauth_sdk", "device_manager:devicemanagersdk", "dsoftbus:softbus_client", "eventhandler:libeventhandler", "hilog:libhilog", "hisysevent:libhisysevent", "init:libbegetutil", "ipc:ipc_single", "os_account:os_account_innerkits", "safwk:system_ability_fwk", "samgr:samgr_proxy", "storage_service:storage_manager_sa_proxy", "zlib:shared_libz", ] defines = [ "private=public" ] } ohos_unittest("kernel_talker_test") { branch_protector_ret = "pac_ret" sanitize = { integer_overflow = true cfi = true cfi_cross_dso = true debug = false } module_out_path = module_output_path sources = [ "${distributedfile_path}/frameworks/native/distributed_file_inner/src/asset/asset_obj.cpp", "${services_path}/distributedfiledaemon/src/all_connect/all_connect_manager.cpp", "${services_path}/distributedfiledaemon/src/device/device_info.cpp", "${services_path}/distributedfiledaemon/src/device/device_manager_agent.cpp", "${services_path}/distributedfiledaemon/src/ipc/asset_callback_manager.cpp", "${services_path}/distributedfiledaemon/src/ipc/asset_recv_callback_proxy.cpp", "${services_path}/distributedfiledaemon/src/ipc/asset_send_callback_proxy.cpp", "${services_path}/distributedfiledaemon/src/ipc/connection_detector.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon_eventhandler.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon_execute.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon_stub.cpp", "${services_path}/distributedfiledaemon/src/ipc/file_trans_listener_proxy.cpp", "${services_path}/distributedfiledaemon/src/ipc/trans_mananger.cpp", "${services_path}/distributedfiledaemon/src/mountpoint/mount_manager.cpp", "${services_path}/distributedfiledaemon/src/mountpoint/mount_point.cpp", "${services_path}/distributedfiledaemon/src/multiuser/os_account_observer.cpp", "${services_path}/distributedfiledaemon/src/network/devsl_dispatcher.cpp", "${services_path}/distributedfiledaemon/src/network/kernel_talker.cpp", "${services_path}/distributedfiledaemon/src/network/network_agent_template.cpp", "${services_path}/distributedfiledaemon/src/network/session_pool.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_agent.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_recv_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_send_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_receive_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_send_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler_asset.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_dispatcher.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_pool.cpp", "network/kernel_talker_test.cpp", ] configs = [ ":module_private_config", "${utils_path}:compiler_configs", ] deps = [ "${utils_path}:libdistributedfileutils", "//third_party/googletest:gtest_main", ] external_deps = [ "ability_base:want", "ability_base:zuri", "access_token:libaccesstoken_sdk", "app_file_service:sandbox_helper_native", "c_utils:utils", "common_event_service:cesfwk_innerkits", "dataclassification:data_transit_mgr", "device_auth:deviceauth_sdk", "device_manager:devicemanagersdk", "dsoftbus:softbus_client", "eventhandler:libeventhandler", "hilog:libhilog", "hisysevent:libhisysevent", "init:libbegetutil", "ipc:ipc_single", "os_account:os_account_innerkits", "safwk:system_ability_fwk", "samgr:samgr_proxy", "storage_service:storage_manager_sa_proxy", "zlib:shared_libz", ] defines = [ "private=public" ] } ohos_unittest("network_agent_template_test") { branch_protector_ret = "pac_ret" sanitize = { integer_overflow = true cfi = true cfi_cross_dso = true debug = false } module_out_path = module_output_path sources = [ "${services_path}/distributedfiledaemon/src/all_connect/all_connect_manager.cpp", "${services_path}/distributedfiledaemon/src/device/device_info.cpp", "${services_path}/distributedfiledaemon/src/device/device_manager_agent.cpp", "${services_path}/distributedfiledaemon/src/ipc/connection_detector.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon_eventhandler.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon_execute.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon_stub.cpp", "${services_path}/distributedfiledaemon/src/ipc/file_trans_listener_proxy.cpp", "${services_path}/distributedfiledaemon/src/ipc/trans_mananger.cpp", "${services_path}/distributedfiledaemon/src/mountpoint/mount_manager.cpp", "${services_path}/distributedfiledaemon/src/mountpoint/mount_point.cpp", "${services_path}/distributedfiledaemon/src/multiuser/os_account_observer.cpp", "${services_path}/distributedfiledaemon/src/network/devsl_dispatcher.cpp", "${services_path}/distributedfiledaemon/src/network/kernel_talker.cpp", "${services_path}/distributedfiledaemon/src/network/network_agent_template.cpp", "${services_path}/distributedfiledaemon/src/network/session_pool.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_agent.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_recv_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_send_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_receive_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_send_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler_asset.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_dispatcher.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_pool.cpp", "network/network_agent_template_test.cpp", ] configs = [ ":module_private_config", "${utils_path}:compiler_configs", ] deps = [ "${utils_path}:libdistributedfileutils", "//third_party/googletest:gtest_main", ] external_deps = [ "ability_base:want", "ability_base:zuri", "access_token:libaccesstoken_sdk", "app_file_service:sandbox_helper_native", "c_utils:utils", "common_event_service:cesfwk_innerkits", "dataclassification:data_transit_mgr", "device_auth:deviceauth_sdk", "device_manager:devicemanagersdk", "dsoftbus:softbus_client", "eventhandler:libeventhandler", "hilog:libhilog", "init:libbegetutil", "ipc:ipc_single", "os_account:os_account_innerkits", "safwk:system_ability_fwk", "samgr:samgr_proxy", "storage_service:storage_manager_sa_proxy", "zlib:shared_libz", ] defines = [ "private=public" ] } ohos_unittest("session_pool_test") { branch_protector_ret = "pac_ret" sanitize = { integer_overflow = true cfi = true cfi_cross_dso = true debug = false } module_out_path = module_output_path sources = [ "${distributedfile_path}/frameworks/native/distributed_file_inner/src/asset/asset_obj.cpp", "${services_path}/distributedfiledaemon/src/all_connect/all_connect_manager.cpp", "${services_path}/distributedfiledaemon/src/device/device_info.cpp", "${services_path}/distributedfiledaemon/src/device/device_manager_agent.cpp", "${services_path}/distributedfiledaemon/src/ipc/asset_callback_manager.cpp", "${services_path}/distributedfiledaemon/src/ipc/asset_recv_callback_proxy.cpp", "${services_path}/distributedfiledaemon/src/ipc/asset_send_callback_proxy.cpp", "${services_path}/distributedfiledaemon/src/ipc/connection_detector.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon_eventhandler.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon_execute.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon_stub.cpp", "${services_path}/distributedfiledaemon/src/ipc/file_trans_listener_proxy.cpp", "${services_path}/distributedfiledaemon/src/ipc/trans_mananger.cpp", "${services_path}/distributedfiledaemon/src/mountpoint/mount_manager.cpp", "${services_path}/distributedfiledaemon/src/mountpoint/mount_point.cpp", "${services_path}/distributedfiledaemon/src/multiuser/os_account_observer.cpp", "${services_path}/distributedfiledaemon/src/network/devsl_dispatcher.cpp", "${services_path}/distributedfiledaemon/src/network/network_agent_template.cpp", "${services_path}/distributedfiledaemon/src/network/session_pool.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_agent.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_recv_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_send_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_receive_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_send_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler_asset.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_dispatcher.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_pool.cpp", "network/session_pool_test.cpp", ] configs = [ ":module_private_config", "${utils_path}:compiler_configs", ] deps = [ "${utils_path}:libdistributedfileutils", "//third_party/googletest:gtest_main", ] external_deps = [ "ability_base:want", "ability_base:zuri", "access_token:libaccesstoken_sdk", "app_file_service:sandbox_helper_native", "c_utils:utils", "common_event_service:cesfwk_innerkits", "dataclassification:data_transit_mgr", "device_auth:deviceauth_sdk", "device_manager:devicemanagersdk", "dsoftbus:softbus_client", "eventhandler:libeventhandler", "hilog:libhilog", "hisysevent:libhisysevent", "init:libbegetutil", "ipc:ipc_single", "os_account:os_account_innerkits", "safwk:system_ability_fwk", "samgr:samgr_proxy", "storage_service:storage_manager_sa_proxy", "zlib:shared_libz", ] defines = [ "private=public" ] } ohos_unittest("softbus_agent_test") { branch_protector_ret = "pac_ret" sanitize = { integer_overflow = true cfi = true cfi_cross_dso = true debug = false } module_out_path = module_output_path sources = [ "${distributedfile_path}/frameworks/native/distributed_file_inner/src/asset/asset_obj.cpp", "${services_path}/distributedfiledaemon/src/all_connect/all_connect_manager.cpp", "${services_path}/distributedfiledaemon/src/device/device_info.cpp", "${services_path}/distributedfiledaemon/src/device/device_manager_agent.cpp", "${services_path}/distributedfiledaemon/src/ipc/asset_callback_manager.cpp", "${services_path}/distributedfiledaemon/src/ipc/asset_recv_callback_proxy.cpp", "${services_path}/distributedfiledaemon/src/ipc/asset_send_callback_proxy.cpp", "${services_path}/distributedfiledaemon/src/ipc/connection_detector.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon_eventhandler.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon_execute.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon_stub.cpp", "${services_path}/distributedfiledaemon/src/ipc/file_trans_listener_proxy.cpp", "${services_path}/distributedfiledaemon/src/ipc/trans_mananger.cpp", "${services_path}/distributedfiledaemon/src/mountpoint/mount_manager.cpp", "${services_path}/distributedfiledaemon/src/mountpoint/mount_point.cpp", "${services_path}/distributedfiledaemon/src/multiuser/os_account_observer.cpp", "${services_path}/distributedfiledaemon/src/network/devsl_dispatcher.cpp", "${services_path}/distributedfiledaemon/src/network/kernel_talker.cpp", "${services_path}/distributedfiledaemon/src/network/network_agent_template.cpp", "${services_path}/distributedfiledaemon/src/network/session_pool.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_agent.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_recv_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_send_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_receive_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_send_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler_asset.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_dispatcher.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_pool.cpp", "network/softbus/softbus_agent_test.cpp", ] configs = [ ":module_private_config", "${utils_path}:compiler_configs", ] deps = [ "${utils_path}:libdistributedfileutils", "//third_party/googletest:gtest_main", ] external_deps = [ "ability_base:want", "ability_base:zuri", "access_token:libaccesstoken_sdk", "app_file_service:sandbox_helper_native", "c_utils:utils", "common_event_service:cesfwk_innerkits", "dataclassification:data_transit_mgr", "device_auth:deviceauth_sdk", "device_manager:devicemanagersdk", "dsoftbus:softbus_client", "eventhandler:libeventhandler", "hilog:libhilog", "hisysevent:libhisysevent", "init:libbegetutil", "ipc:ipc_single", "os_account:os_account_innerkits", "safwk:system_ability_fwk", "samgr:samgr_proxy", "storage_service:storage_manager_sa_proxy", "zlib:shared_libz", ] defines = [ "private=public", "protected=public", ] } ohos_unittest("softbus_file_receive_listener_test") { branch_protector_ret = "pac_ret" sanitize = { integer_overflow = true cfi = true cfi_cross_dso = true debug = false } module_out_path = module_output_path include_dirs = [ "${distributedfile_path}/services/distributedfiledaemon/include/ipc", "${distributedfile_path}/services/distributedfiledaemon/include/network/softbus", ] sources = [ "${services_path}/distributedfiledaemon/src/all_connect/all_connect_manager.cpp", "${services_path}/distributedfiledaemon/src/ipc/trans_mananger.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_receive_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_send_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_pool.cpp", "network/softbus/softbus_file_receive_listener_test.cpp", ] configs = [ ":module_private_config", "${utils_path}:compiler_configs", ] deps = [ "${utils_path}:libdistributedfileutils", "//third_party/googletest:gtest_main", ] external_deps = [ "app_file_service:sandbox_helper_native", "c_utils:utils", "device_manager:devicemanagersdk", "dsoftbus:softbus_client", "hilog:libhilog", "hisysevent:libhisysevent", "os_account:os_account_innerkits", ] defines = [ "private=public" ] } ohos_unittest("softbus_file_send_listener_test") { branch_protector_ret = "pac_ret" sanitize = { integer_overflow = true cfi = true cfi_cross_dso = true debug = false } module_out_path = module_output_path include_dirs = [ "${distributedfile_path}/services/distributedfiledaemon/include/ipc", "${distributedfile_path}/services/distributedfiledaemon/include/network/softbus", ] sources = [ "${services_path}/distributedfiledaemon/src/all_connect/all_connect_manager.cpp", "${services_path}/distributedfiledaemon/src/ipc/trans_mananger.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_receive_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_send_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_pool.cpp", "network/softbus/softbus_file_send_listener_test.cpp", ] configs = [ ":module_private_config", "${utils_path}:compiler_configs", ] deps = [ "${utils_path}:libdistributedfileutils", "//third_party/googletest:gtest_main", ] external_deps = [ "app_file_service:sandbox_helper_native", "c_utils:utils", "device_manager:devicemanagersdk", "dsoftbus:softbus_client", "hilog:libhilog", "hisysevent:libhisysevent", "os_account:os_account_innerkits", ] defines = [ "private=public" ] } ohos_unittest("softbus_session_dispatcher_test") { branch_protector_ret = "pac_ret" sanitize = { integer_overflow = true cfi = true cfi_cross_dso = true debug = false } module_out_path = module_output_path sources = [ "${distributedfile_path}/frameworks/native/distributed_file_inner/src/asset/asset_obj.cpp", "${services_path}/distributedfiledaemon/src/all_connect/all_connect_manager.cpp", "${services_path}/distributedfiledaemon/src/device/device_info.cpp", "${services_path}/distributedfiledaemon/src/device/device_manager_agent.cpp", "${services_path}/distributedfiledaemon/src/ipc/asset_callback_manager.cpp", "${services_path}/distributedfiledaemon/src/ipc/asset_recv_callback_proxy.cpp", "${services_path}/distributedfiledaemon/src/ipc/asset_send_callback_proxy.cpp", "${services_path}/distributedfiledaemon/src/ipc/connection_detector.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon_eventhandler.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon_execute.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon_stub.cpp", "${services_path}/distributedfiledaemon/src/ipc/file_trans_listener_proxy.cpp", "${services_path}/distributedfiledaemon/src/ipc/trans_mananger.cpp", "${services_path}/distributedfiledaemon/src/mountpoint/mount_manager.cpp", "${services_path}/distributedfiledaemon/src/mountpoint/mount_point.cpp", "${services_path}/distributedfiledaemon/src/multiuser/os_account_observer.cpp", "${services_path}/distributedfiledaemon/src/network/devsl_dispatcher.cpp", "${services_path}/distributedfiledaemon/src/network/kernel_talker.cpp", "${services_path}/distributedfiledaemon/src/network/network_agent_template.cpp", "${services_path}/distributedfiledaemon/src/network/session_pool.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_agent.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_recv_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_send_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_receive_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_send_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler_asset.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_dispatcher.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_pool.cpp", "network/softbus/softbus_session_dispatcher_test.cpp", ] configs = [ ":module_private_config", "${utils_path}:compiler_configs", ] deps = [ "${utils_path}:libdistributedfileutils", "//third_party/googletest:gtest_main", ] external_deps = [ "ability_base:want", "ability_base:zuri", "access_token:libaccesstoken_sdk", "app_file_service:sandbox_helper_native", "c_utils:utils", "common_event_service:cesfwk_innerkits", "dataclassification:data_transit_mgr", "device_auth:deviceauth_sdk", "device_manager:devicemanagersdk", "dsoftbus:softbus_client", "eventhandler:libeventhandler", "hilog:libhilog", "hisysevent:libhisysevent", "init:libbegetutil", "ipc:ipc_single", "os_account:os_account_innerkits", "safwk:system_ability_fwk", "samgr:samgr_proxy", "storage_service:storage_manager_sa_proxy", "zlib:shared_libz", ] defines = [ "private=public" ] } ohos_unittest("softbus_session_test") { branch_protector_ret = "pac_ret" sanitize = { integer_overflow = true cfi = true cfi_cross_dso = true debug = false } module_out_path = module_output_path sources = [ "${distributedfile_path}/frameworks/native/distributed_file_inner/src/asset/asset_obj.cpp", "${services_path}/distributedfiledaemon/src/all_connect/all_connect_manager.cpp", "${services_path}/distributedfiledaemon/src/device/device_info.cpp", "${services_path}/distributedfiledaemon/src/device/device_manager_agent.cpp", "${services_path}/distributedfiledaemon/src/ipc/asset_callback_manager.cpp", "${services_path}/distributedfiledaemon/src/ipc/asset_recv_callback_proxy.cpp", "${services_path}/distributedfiledaemon/src/ipc/asset_send_callback_proxy.cpp", "${services_path}/distributedfiledaemon/src/ipc/connection_detector.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon_eventhandler.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon_execute.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon_stub.cpp", "${services_path}/distributedfiledaemon/src/ipc/file_trans_listener_proxy.cpp", "${services_path}/distributedfiledaemon/src/ipc/trans_mananger.cpp", "${services_path}/distributedfiledaemon/src/mountpoint/mount_manager.cpp", "${services_path}/distributedfiledaemon/src/mountpoint/mount_point.cpp", "${services_path}/distributedfiledaemon/src/multiuser/os_account_observer.cpp", "${services_path}/distributedfiledaemon/src/network/devsl_dispatcher.cpp", "${services_path}/distributedfiledaemon/src/network/kernel_talker.cpp", "${services_path}/distributedfiledaemon/src/network/network_agent_template.cpp", "${services_path}/distributedfiledaemon/src/network/session_pool.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_agent.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_recv_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_send_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_receive_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_send_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler_asset.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_dispatcher.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_pool.cpp", "network/softbus/softbus_session_test.cpp", ] configs = [ ":module_private_config", "${utils_path}:compiler_configs", ] deps = [ "${utils_path}:libdistributedfileutils", "//third_party/googletest:gtest_main", ] external_deps = [ "ability_base:want", "ability_base:zuri", "access_token:libaccesstoken_sdk", "app_file_service:sandbox_helper_native", "c_utils:utils", "common_event_service:cesfwk_innerkits", "dataclassification:data_transit_mgr", "device_auth:deviceauth_sdk", "device_manager:devicemanagersdk", "dsoftbus:softbus_client", "eventhandler:libeventhandler", "hilog:libhilog", "hisysevent:libhisysevent", "init:libbegetutil", "ipc:ipc_single", "os_account:os_account_innerkits", "safwk:system_ability_fwk", "samgr:samgr_proxy", "storage_service:storage_manager_sa_proxy", "zlib:shared_libz", ] defines = [ "private=public" ] } ohos_unittest("softbus_handler_asset_test") { branch_protector_ret = "pac_ret" sanitize = { integer_overflow = true cfi = true cfi_cross_dso = true debug = false blocklist = "${distributedfile_path}/cfi_blocklist.txt" } module_out_path = module_output_path include_dirs = [ "${distributedfile_path}/services/distributedfiledaemon/include/network/softbus" ] sources = [ "${distributedfile_path}/frameworks/native/distributed_file_inner/src/asset/asset_obj.cpp", "${distributedfile_path}/test/mock/device_manager_impl_mock.cpp", "${distributedfile_path}/test/mock/socket_mock.cpp", "${distributedfile_path}/test/mock/softbus_bus_center_mock.cpp", "${services_path}/distributedfiledaemon/src/ipc/trans_mananger.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_recv_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_send_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_receive_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_send_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler_asset.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_pool.cpp", "network/softbus/softbus_handler_asset_test.cpp", ] configs = [ ":module_private_config", "${utils_path}:compiler_configs", ] deps = [ "${services_path}/distributedfiledaemon:libdistributedfiledaemon", "${utils_path}:libdistributedfileutils", "//third_party/googletest:gmock_main", "//third_party/googletest:gtest_main", ] external_deps = [ "access_token:libaccesstoken_sdk", "app_file_service:sandbox_helper_native", "c_utils:utils", "device_manager:devicemanagersdk", "dsoftbus:softbus_client", "hilog:libhilog", "hisysevent:libhisysevent", "ipc:ipc_core", "os_account:os_account_innerkits", "zlib:shared_libz", ] defines = [ "private=public" ] } ohos_unittest("softbus_handler_test") { branch_protector_ret = "pac_ret" sanitize = { integer_overflow = true cfi = true cfi_cross_dso = true debug = false blocklist = "${distributedfile_path}/cfi_blocklist.txt" } module_out_path = module_output_path include_dirs = [ "${distributedfile_path}/services/distributedfiledaemon/include/network/softbus" ] sources = [ "${distributedfile_path}/test/mock/socket_mock.cpp", "${services_path}/distributedfiledaemon/src/all_connect/all_connect_manager.cpp", "${services_path}/distributedfiledaemon/src/ipc/trans_mananger.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_receive_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_send_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_pool.cpp", "network/softbus/softbus_handler_test.cpp", ] configs = [ ":module_private_config", "${utils_path}:compiler_configs", ] deps = [ "${utils_path}:libdistributedfileutils", "//third_party/googletest:gmock_main", "//third_party/googletest:gtest_main", ] external_deps = [ "access_token:libaccesstoken_sdk", "app_file_service:sandbox_helper_native", "c_utils:utils", "device_manager:devicemanagersdk", "dsoftbus:softbus_client", "hilog:libhilog", "hisysevent:libhisysevent", "os_account:os_account_innerkits", ] defines = [ "private=public" ] } ohos_unittest("softbus_session_pool_test") { branch_protector_ret = "pac_ret" sanitize = { integer_overflow = true cfi = true cfi_cross_dso = true debug = false } module_out_path = module_output_path include_dirs = [ "${distributedfile_path}/services/distributedfiledaemon/include/network/softbus" ] sources = [ "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_pool.cpp", "network/softbus/softbus_session_pool_test.cpp", ] configs = [ ":module_private_config", "${utils_path}:compiler_configs", ] deps = [ "${utils_path}:libdistributedfileutils", "//third_party/googletest:gtest_main", ] external_deps = [ "access_token:libaccesstoken_sdk", "c_utils:utils", "dsoftbus:softbus_client", "hilog:libhilog", ] } ohos_unittest("softbus_session_listener_test") { branch_protector_ret = "pac_ret" sanitize = { integer_overflow = true cfi = true cfi_cross_dso = true debug = false } module_out_path = module_output_path include_dirs = [ "${distributedfile_path}/services/distributedfiledaemon/include/network/softbus" ] sources = [ "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_listener.cpp", "network/softbus/softbus_session_listener_test.cpp", ] configs = [ ":module_private_config", "${utils_path}:compiler_configs", ] deps = [ "${utils_path}:libdistributedfileutils", "//third_party/googletest:gtest_main", ] external_deps = [ "ability_base:zuri", "access_token:libaccesstoken_sdk", "app_file_service:sandbox_helper_native", "c_utils:utils", "dsoftbus:softbus_client", "hilog:libhilog", "os_account:os_account_innerkits", ] defines = [ "private=public" ] } ohos_unittest("softbus_asset_recv_listener_test") { branch_protector_ret = "pac_ret" sanitize = { integer_overflow = true cfi = true cfi_cross_dso = true debug = false } module_out_path = module_output_path include_dirs = [ "${distributedfile_path}/frameworks/native/distributed_file_inner/include/asset", "${distributedfile_path}/services/distributedfiledaemon/include/ipc", "${distributedfile_path}/services/distributedfiledaemon/include/network/softbus", ] sources = [ "${distributedfile_path}/frameworks/native/distributed_file_inner/src/asset/asset_obj.cpp", "${services_path}/distributedfiledaemon/src/ipc/asset_callback_manager.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_recv_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_send_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler_asset.cpp", "network/softbus/softbus_asset_recv_listener_test.cpp", ] configs = [ ":module_private_config", "${utils_path}:compiler_configs", ] deps = [ "${utils_path}:libdistributedfileutils", "//third_party/googletest:gtest_main", ] external_deps = [ "access_token:libaccesstoken_sdk", "c_utils:utils", "device_manager:devicemanagersdk", "dsoftbus:softbus_client", "hilog:libhilog", "os_account:os_account_innerkits", "zlib:shared_libz", ] defines = [ "private=public" ] } ohos_unittest("softbus_asset_send_listener_test") { branch_protector_ret = "pac_ret" sanitize = { integer_overflow = true cfi = true cfi_cross_dso = true debug = false } module_out_path = module_output_path include_dirs = [ "${distributedfile_path}/frameworks/native/distributed_file_inner/include/asset", "${distributedfile_path}/services/distributedfiledaemon/include/ipc", "${distributedfile_path}/services/distributedfiledaemon/include/network/softbus", ] sources = [ "${distributedfile_path}/frameworks/native/distributed_file_inner/src/asset/asset_obj.cpp", "${services_path}/distributedfiledaemon/src/ipc/asset_callback_manager.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_recv_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_asset_send_listener.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler_asset.cpp", "network/softbus/softbus_asset_send_listener_test.cpp", ] configs = [ ":module_private_config", "${utils_path}:compiler_configs", ] deps = [ "${utils_path}:libdistributedfileutils", "//third_party/googletest:gmock_main", "//third_party/googletest:gtest_main", ] external_deps = [ "access_token:libaccesstoken_sdk", "c_utils:utils", "device_manager:devicemanagersdk", "dsoftbus:softbus_client", "hilog:libhilog", "os_account:os_account_innerkits", "zlib:shared_libz", ] defines = [ "private=public" ] } group("unittest") { testonly = true deps = [ ":device_info_test", ":device_manager_agent_sup_test", ":device_manager_agent_test", ":devsl_dispatcher_test", ":kernel_talker_test", ":os_account_observer_test", ":session_pool_test", ":softbus_agent_test", ":softbus_asset_recv_listener_test", ":softbus_asset_send_listener_test", ":softbus_file_receive_listener_test", ":softbus_file_send_listener_test", ":softbus_handler_asset_test", ":softbus_handler_test", ":softbus_session_dispatcher_test", ":softbus_session_listener_test", ":softbus_session_pool_test", ":softbus_session_test", ] }