created PSB mock

This commit is contained in:
2022-07-26 14:10:24 +02:00
parent 75c824ec80
commit 146a0e3828
7 changed files with 59 additions and 2 deletions

View File

@ -0,0 +1,23 @@
#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();
}
void PusVerificationReporterMock::popNextSuccessParams() {
if (not successParams.empty()) {
successParams.pop();
}
}