2022-07-26 14:10:24 +02:00
|
|
|
#include "PusVerificationReporterMock.h"
|
|
|
|
|
|
|
|
size_t PusVerificationReporterMock::successCallCount() const { return successParams.size(); }
|
|
|
|
size_t PusVerificationReporterMock::failCallCount() const { return failParams.size(); }
|
|
|
|
|
|
|
|
VerifSuccessParams& PusVerificationReporterMock::getNextSuccessCallParams() {
|
|
|
|
return successParams.front();
|
|
|
|
}
|
|
|
|
|
|
|
|
void PusVerificationReporterMock::popNextFailParams() {
|
|
|
|
if (not failParams.empty()) {
|
|
|
|
failParams.pop();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
VerifFailureParams& PusVerificationReporterMock::getNextFailCallParams() {
|
|
|
|
return failParams.front();
|
|
|
|
}
|
2022-07-26 17:41:10 +02:00
|
|
|
|
2022-07-26 14:10:24 +02:00
|
|
|
void PusVerificationReporterMock::popNextSuccessParams() {
|
|
|
|
if (not successParams.empty()) {
|
|
|
|
successParams.pop();
|
|
|
|
}
|
|
|
|
}
|
2022-07-26 17:41:10 +02:00
|
|
|
|
|
|
|
ReturnValue_t PusVerificationReporterMock::sendSuccessReport(VerifSuccessParams params) {
|
|
|
|
successParams.push(params);
|
|
|
|
return HasReturnvaluesIF::RETURN_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
ReturnValue_t PusVerificationReporterMock::sendFailureReport(VerifFailureParams params) {
|
|
|
|
failParams.push(params);
|
|
|
|
return HasReturnvaluesIF::RETURN_OK;
|
|
|
|
}
|