From 04e38f456f956ed01fc67ba3702d6475d46dfe97 Mon Sep 17 00:00:00 2001 From: zhuhan Date: Sat, 8 Oct 2022 17:01:49 +0800 Subject: [PATCH] ces error fix, mock in ans need fix Signed-off-by: zhuhan Change-Id: I543ea57757413a56f0adc98ac943c999f71e8124 --- .../test/moduletest/mock/mock_common_event_manager.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frameworks/test/moduletest/mock/mock_common_event_manager.cpp b/frameworks/test/moduletest/mock/mock_common_event_manager.cpp index 852a17470..49007e0b3 100644 --- a/frameworks/test/moduletest/mock/mock_common_event_manager.cpp +++ b/frameworks/test/moduletest/mock/mock_common_event_manager.cpp @@ -21,6 +21,7 @@ namespace OHOS { namespace EventFwk { namespace { std::list> subscriberList; +constexpr int32_t ERR_OK = 0; } bool CommonEventManager::PublishCommonEvent(const CommonEventData &data) { @@ -30,9 +31,9 @@ bool CommonEventManager::PublishCommonEvent(const CommonEventData &data) return true; } -bool CommonEventManager::PublishCommonEvent(const CommonEventData &data, const CommonEventPublishInfo &publishInfo) +int32_t CommonEventManager::PublishCommonEvent(const CommonEventData &data, const CommonEventPublishInfo &publishInfo) { - return true; + return ERR_OK; } bool CommonEventManager::PublishCommonEvent(const CommonEventData &data, const CommonEventPublishInfo &publishInfo, -- Gitee