2022-08-09 19:00:47 +02:00
|
|
|
#ifndef FSFW_TESTS_CFDP_USERMOCK_H
|
|
|
|
#define FSFW_TESTS_CFDP_USERMOCK_H
|
|
|
|
|
|
|
|
#include "fsfw/cfdp/handler/UserBase.h"
|
|
|
|
namespace cfdp {
|
|
|
|
|
2022-08-09 21:03:56 +02:00
|
|
|
class UserMock : public UserBase {
|
2022-08-09 19:00:47 +02:00
|
|
|
explicit UserMock(HasFileSystemIF& vfs);
|
2022-08-09 21:03:56 +02:00
|
|
|
|
2022-08-09 19:00:47 +02:00
|
|
|
public:
|
|
|
|
void transactionIndication(TransactionId id) override;
|
|
|
|
void eofSentIndication(TransactionId id) override;
|
|
|
|
void abandonedIndication(TransactionId id, ConditionCode code, uint64_t progress) override;
|
|
|
|
void eofRecvIndication(TransactionId id) override;
|
2022-08-09 21:03:56 +02:00
|
|
|
void transactionFinishedIndication(TransactionFinishedParams params) override;
|
|
|
|
void metadataRecvdIndication(MetadataRecvParams params) override;
|
2022-08-10 09:39:57 +02:00
|
|
|
void fileSegmentRecvdIndication(FileSegmentRecvdParams params) override;
|
2022-08-09 19:00:47 +02:00
|
|
|
void reportIndication() override;
|
|
|
|
void suspendedIndication() override;
|
|
|
|
void resumedIndication() override;
|
|
|
|
};
|
|
|
|
|
2022-08-09 21:03:56 +02:00
|
|
|
} // namespace cfdp
|
2022-08-09 19:00:47 +02:00
|
|
|
|
|
|
|
#endif // FSFW_TESTS_CFDP_USERMOCK_H
|