From 5bb003ad1f6b7c706ce9c46fe5ee1c362cc28510 Mon Sep 17 00:00:00 2001 From: l30054665 Date: Mon, 5 Feb 2024 20:27:17 +0800 Subject: [PATCH] add mock Signed-off-by: l30054665 --- interfaces/ipc/test/clientunittest/BUILD.gn | 1 - .../ipc/test/clientunittest/mock_samanager.cpp | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/interfaces/ipc/test/clientunittest/BUILD.gn b/interfaces/ipc/test/clientunittest/BUILD.gn index 034aa52..301d546 100644 --- a/interfaces/ipc/test/clientunittest/BUILD.gn +++ b/interfaces/ipc/test/clientunittest/BUILD.gn @@ -59,7 +59,6 @@ ohos_unittest("distributed_input_client_test") { "${ipc_path}/src/add_white_list_infos_call_back_stub.cpp", "${ipc_path}/src/del_white_list_infos_call_back_proxy.cpp", "${ipc_path}/src/del_white_list_infos_call_back_stub.cpp", - "${ipc_path}/src/dinput_sa_manager.cpp", "${ipc_path}/src/distributed_input_client.cpp", "${ipc_path}/src/distributed_input_sink_proxy.cpp", "${ipc_path}/src/distributed_input_sink_stub.cpp", diff --git a/interfaces/ipc/test/clientunittest/mock_samanager.cpp b/interfaces/ipc/test/clientunittest/mock_samanager.cpp index 7da39f4..25e1be5 100644 --- a/interfaces/ipc/test/clientunittest/mock_samanager.cpp +++ b/interfaces/ipc/test/clientunittest/mock_samanager.cpp @@ -97,6 +97,23 @@ bool DInputSAManager::SetDInputSinkProxy(const sptr &remoteObject } return true; } + +int32_t DInputSAManager::RestoreRegisterListenerAndCallback() +{ + return DH_SUCCESS; +} + +void DInputSAManager::AddSimEventListenerToCache(sptr listener) +{} + +void DInputSAManager::RemoveSimEventListenerFromCache(sptr listener) +{} + +void DInputSAManager::AddSessionStateCbToCache(const sptr callback) +{} + +void DInputSAManager::RemoveSessionStateCbFromCache() +{} } // namespace DistributedInput } // namespace DistributedHardware } // namespace OHOS \ No newline at end of file