v1.9.0 #175
@ -4,6 +4,10 @@
|
||||
#include <fsfw/objectmanager.h>
|
||||
#include <fsfw/storagemanager/PoolManager.h>
|
||||
#include <fsfw/timemanager/TimeStamper.h>
|
||||
#include <fsfw/events/EventManagerIF.h>
|
||||
|
||||
|
||||
|
||||
#include <mission/controller/ThermalController.h>
|
||||
|
||||
#include <catch2/catch_test_macros.hpp>
|
||||
|
27
unittest/mocks/EventManagerMock.h
Normal file
27
unittest/mocks/EventManagerMock.h
Normal file
@ -0,0 +1,27 @@
|
||||
#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_ */
|
Loading…
Reference in New Issue
Block a user