platform-mc: Support pollForPlatFormEventMessage
Supports polling all events synchronously when the terminus sends
`pldmMessagePollEvent` with the event id. BMC will use the received
event id as input for `pollForPlatformEventMessage` command to retrieve
the event data.
Change-Id: If01f63f30d3f57f8423c863ec776e83dda8e3042
Signed-off-by: Dung Cao <dung@os.amperecomputing.com>
Signed-off-by: Thu Nguyen <thu@os.amperecomputing.com>
diff --git a/platform-mc/test/mock_event_manager.hpp b/platform-mc/test/mock_event_manager.hpp
index 116e7f1..8e2349e 100644
--- a/platform-mc/test/mock_event_manager.hpp
+++ b/platform-mc/test/mock_event_manager.hpp
@@ -14,6 +14,11 @@
public:
MockEventManager(TerminusManager& terminusManager, TerminiMapper& termini) :
EventManager(terminusManager, termini) {};
+
+ MOCK_METHOD(int, processCperEvent,
+ (pldm_tid_t tid, uint16_t eventId, const uint8_t* eventData,
+ size_t eventDataSize),
+ (override));
};
} // namespace platform_mc