diff --git a/services/distributedfiledaemon/test/unittest/BUILD.gn b/services/distributedfiledaemon/test/unittest/BUILD.gn index 1412181820ae0ff64fdee05d1f1c8b4e04e64ee9..b37b27de14c3e04b774a70dbd297d5f7e5194aaf 100644 --- a/services/distributedfiledaemon/test/unittest/BUILD.gn +++ b/services/distributedfiledaemon/test/unittest/BUILD.gn @@ -23,35 +23,33 @@ config("module_private_config") { "//foundation/distributedhardware/devicemanager/interfaces/inner_kits/native_cpp/include", "//base/security/deviceauth/interfaces/innerkits", "//third_party/json/include", + "//utils/system/safwk/native/include", ] } ohos_unittest("DeviceManagerAgentTest") { module_out_path = module_output_path - sources = [ - ] + sources = [] sources += [ "device/device_manager_agent_test.cpp" ] configs = [ ":module_private_config", - "${utils_path}:compiler_configs" + "${utils_path}:compiler_configs", ] deps = [ - "//third_party/googletest:gtest_main", "${utils_path}:libdistributedfileutils", - "//foundation/distributedhardware/devicemanager/interfaces/inner_kits/native_cpp:devicemanagersdk", "//base/security/deviceauth/services:deviceauth_sdk", + "//foundation/distributedhardware/devicemanager/interfaces/inner_kits/native_cpp:devicemanagersdk", + "//third_party/googletest:gtest_main", ] - defines = [ - "private=public" - ] + defines = [ "private=public" ] } group("unittest") { testonly = true - deps = [":DeviceManagerAgentTest"] -} \ No newline at end of file + deps = [ ":DeviceManagerAgentTest" ] +} diff --git a/test/moduletest/BUILD.gn b/test/moduletest/BUILD.gn index 82f1d1aa5b9b40325ab626bb1565c513bc7d59c5..f6b76d4a340141ce55b2d6e3da5476df78059dec 100644 --- a/test/moduletest/BUILD.gn +++ b/test/moduletest/BUILD.gn @@ -26,6 +26,7 @@ config("module_private_config") { "//foundation/communication/dsoftbus/interfaces/kits/common", "//base/security/deviceauth/interfaces/innerkits", "//third_party/json/include", + "//utils/system/safwk/native/include", ] } @@ -33,38 +34,36 @@ ohos_moduletest("DistributedFileDaemonServiceTest") { module_out_path = module_output_path sources = [ - "${services_path}/distributedfiledaemon/src/mountpoint/mount_point.cpp", - "${services_path}/distributedfiledaemon/src/mountpoint/mount_manager.cpp", - "${services_path}/distributedfiledaemon/src/device/device_manager_agent.cpp", "${services_path}/distributedfiledaemon/src/device/device_info.cpp", - "${services_path}/distributedfiledaemon/src/ipc/daemon_stub.cpp", + "${services_path}/distributedfiledaemon/src/device/device_manager_agent.cpp", "${services_path}/distributedfiledaemon/src/ipc/daemon.cpp", - "${services_path}/distributedfiledaemon/src/network/network_agent_template.cpp", + "${services_path}/distributedfiledaemon/src/ipc/daemon_stub.cpp", + "${services_path}/distributedfiledaemon/src/mountpoint/mount_manager.cpp", + "${services_path}/distributedfiledaemon/src/mountpoint/mount_point.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_session_dispatcher.cpp", "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session.cpp", + "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_dispatcher.cpp", ] sources += [ "src/distributedfiledaemon_service_test.cpp" ] configs = [ ":module_private_config", - "${utils_path}:compiler_configs" + "${utils_path}:compiler_configs", ] - defines = [ - "private=public" - ] + defines = [ "private=public" ] deps = [ - "//third_party/googletest:gtest_main", - "//third_party/googletest:gmock", "${utils_path}:libdistributedfileutils", + "//base/security/deviceauth/services:deviceauth_sdk", "//foundation/distributedhardware/devicemanager/interfaces/inner_kits/native_cpp:devicemanagersdk", "//foundation/filemanagement/dfs_service/services/distributedfiledaemon:libdistributedfiledaemon", - "//base/security/deviceauth/services:deviceauth_sdk", + "//third_party/googletest:gmock", + "//third_party/googletest:gtest_main", ] external_deps = [ @@ -76,5 +75,5 @@ ohos_moduletest("DistributedFileDaemonServiceTest") { group("moduletest") { testonly = true - deps = [":DistributedFileDaemonServiceTest"] -} \ No newline at end of file + deps = [ ":DistributedFileDaemonServiceTest" ] +}