fsfw/unittests/mocks/PusVerificationReporterMock.h

26 lines
956 B
C
Raw Normal View History

2022-07-26 14:10:24 +02:00
#ifndef FSFW_TESTS_PUSVERIFICATIONREPORTERMOCK_H
#define FSFW_TESTS_PUSVERIFICATIONREPORTERMOCK_H
#include <queue>
2022-07-26 18:58:36 +02:00
#include "fsfw/objectmanager/SystemObject.h"
2022-07-26 14:10:24 +02:00
#include "fsfw/tmtcservices/VerificationReporterIF.h"
2022-07-26 18:58:36 +02:00
class PusVerificationReporterMock : public SystemObject, public VerificationReporterIF {
2022-07-26 14:10:24 +02:00
public:
std::queue<VerifSuccessParams> successParams;
std::queue<VerifFailureParams> failParams;
2022-07-26 18:58:36 +02:00
PusVerificationReporterMock();
explicit PusVerificationReporterMock(object_id_t registeredId);
2022-07-26 14:10:24 +02:00
[[nodiscard]] size_t successCallCount() const;
VerifSuccessParams& getNextSuccessCallParams();
void popNextSuccessParams();
[[nodiscard]] size_t failCallCount() const;
VerifFailureParams& getNextFailCallParams();
void popNextFailParams();
ReturnValue_t sendSuccessReport(VerifSuccessParams params) override;
ReturnValue_t sendFailureReport(VerifFailureParams params) override;
2022-07-26 14:10:24 +02:00
};
#endif // FSFW_TESTS_PUSVERIFICATIONREPORTERMOCK_H