1 #pragma once
2 
3 #include "interfaces/json_storage.hpp"
4 
5 #include <gmock/gmock.h>
6 
7 class StorageMock : public interfaces::JsonStorage
8 {
9   public:
10     MOCK_METHOD(void, store, (const FilePath&, const nlohmann::json&),
11                 (override));
12     MOCK_METHOD(bool, remove, (const FilePath&), (override));
13     MOCK_METHOD(bool, exist, (const FilePath&), (const, override));
14     MOCK_METHOD(std::optional<nlohmann::json>, load, (const FilePath&),
15                 (const, override));
16     MOCK_METHOD(std::vector<FilePath>, list, (), (const, override));
17 };
18