eive-obsw/unittest/mocks/EventManagerMock.h

27 lines
1.5 KiB
C
Raw Normal View History

2022-02-11 17:49:28 +01:00
#ifndef EVENTMANAGERMOCK_H_
#define EVENTMANAGERMOCK_H_
#include <fsfw/events/EventManagerIF.h>
class EventManagerMock {
public:
virtual MessageQueueId_t getEventReportQueue() override;
virtual ReturnValue_t registerListener(MessageQueueId_t listener,
bool forwardAllButSelected = false) override;
virtual ReturnValue_t subscribeToEvent(MessageQueueId_t listener, EventId_t event) override;
virtual ReturnValue_t subscribeToAllEventsFrom(MessageQueueId_t listener,
object_id_t object) override;
virtual ReturnValue_t subscribeToEventRange(MessageQueueId_t listener, EventId_t idFrom = 0,
EventId_t idTo = 0, bool idInverted = false,
object_id_t reporterFrom = 0,
object_id_t reporterTo = 0,
bool reporterInverted = false) override;
virtual ReturnValue_t unsubscribeFromEventRange(MessageQueueId_t listener, EventId_t idFrom = 0,
EventId_t idTo = 0, bool idInverted = false,
object_id_t reporterFrom = 0,
object_id_t reporterTo = 0,
bool reporterInverted = false) override;
};
#endif /* EVENTMANAGERMOCK_H_ */