diff --git a/frameworks/test/moduletest/mock/mock_common_event_manager.cpp b/frameworks/test/moduletest/mock/mock_common_event_manager.cpp index 852a174701b3097ab9bd30184aef77cef82abe86..49007e0b34dbe60b9c94fd39027ec7115014b656 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,