Robin Mueller
d2c4d546c3
All checks were successful
fsfw/fsfw/pipeline/pr-development This commit looks good
- Add new mock class for event reporting proxies - Add basic setup for unittesting the CFDP destination handler
22 lines
572 B
C++
22 lines
572 B
C++
#ifndef FSFW_TESTS_EVENTREPORTPROXYMOCK_H
|
|
#define FSFW_TESTS_EVENTREPORTPROXYMOCK_H
|
|
|
|
#include <queue>
|
|
|
|
#include "fsfw/events/EventReportingProxyIF.h"
|
|
|
|
class EventReportingProxyMock : public EventReportingProxyIF {
|
|
public:
|
|
void forwardEvent(Event event, uint32_t parameter1, uint32_t parameter2) const override;
|
|
|
|
struct EventInfo {
|
|
EventInfo(Event event, uint32_t p1, uint32_t p2) : event(event), p1(p1), p2(p2) {}
|
|
|
|
Event event;
|
|
uint32_t p1;
|
|
uint32_t p2;
|
|
};
|
|
mutable std::queue<EventInfo> eventQueue;
|
|
};
|
|
#endif // FSFW_TESTS_EVENTREPORTPROXYMOCK_H
|