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