use new storage manager mock

This commit is contained in:
2022-08-09 12:50:50 +02:00
parent 22e1555f50
commit 192956c2c7
3 changed files with 19 additions and 4 deletions

View File

@ -6,6 +6,8 @@
class StorageManagerMock: public LocalPool {
public:
StorageManagerMock(object_id_t setObjectId, const LocalPoolConfig& poolConfig);
ReturnValue_t addData(store_address_t *storageId, const uint8_t *data, size_t size,
bool ignoreFault) override;
ReturnValue_t deleteData(store_address_t packet_id) override;
@ -26,7 +28,7 @@ class StorageManagerMock: public LocalPool {
std::pair<bool, ReturnValue_t> nextModifyDataCallFails;
std::pair<bool, ReturnValue_t> nextGetDataCallFails;
std::pair<bool, ReturnValue_t> nextDeleteDataCallFails;
std::pair<bool, ReturnValue_t> nextFreeElementCallFails;
void reset();
};
#endif // FSFW_TESTS_STORAGEMANAGERMOCK_H