eive-obsw/unittest/mocks/EventManagerMock.h

27 lines
756 B
C
Raw Normal View History

2022-02-11 17:49:28 +01:00
#ifndef EVENTMANAGERMOCK_H_
#define EVENTMANAGERMOCK_H_
#include <fsfw/events/EventManager.h>
2022-02-11 17:49:28 +01:00
#include <list>
class EventManagerMock : public EventManager {
2022-02-11 17:49:28 +01:00
public:
EventManagerMock();
2022-02-11 17:49:28 +01:00
virtual ReturnValue_t performOperation(uint8_t opCode) override;
const std::list<EventMessage>* getEventList();
void clearEventList();
bool isEventInEventList(object_id_t object, Event event);
bool isEventInEventList(object_id_t object, Event event, uint32_t parameter1, uint32_t parameter2);
bool isEventInEventList(object_id_t object, EventId_t eventId);
bool isEventInEventList(object_id_t object, EventId_t eventId, uint32_t parameter1, uint32_t parameter2);
private:
std::list<EventMessage> eventList;
2022-02-11 17:49:28 +01:00
};
#endif /* EVENTMANAGERMOCK_H_ */