more mocking an such in unittests
Some checks failed
EIVE/eive-obsw/pipeline/head There was a failure building this commit

This commit is contained in:
Ulrich Mohr 2022-02-11 17:49:28 +01:00
parent 587e9451ea
commit 0f42790aa1
2 changed files with 31 additions and 0 deletions

View File

@ -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>

View 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_ */