fsfw/unittests/mocks/PusVerificationReporterMock.h

24 lines
818 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>
#include "fsfw/tmtcservices/VerificationReporterIF.h"
class PusVerificationReporterMock : public VerificationReporterIF {
public:
std::queue<VerifSuccessParams> successParams;
std::queue<VerifFailureParams> failParams;
[[nodiscard]] size_t successCallCount() const;
VerifSuccessParams& getNextSuccessCallParams();
void popNextSuccessParams();
[[nodiscard]] size_t failCallCount() const;
VerifFailureParams& getNextFailCallParams();
void popNextFailParams();
ReturnValue_t sendSuccessReport(VerifSuccessParams params) override { return 0; }
ReturnValue_t sendFailureReport(VerifFailureParams params) override { return 0; }
};
#endif // FSFW_TESTS_PUSVERIFICATIONREPORTERMOCK_H