Krzysztof Grobelny | 73da690 | 2020-09-24 13:42:04 +0200 | [diff] [blame] | 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_METHOD2(store, void(const FilePath&, const nlohmann::json&)); | ||||
11 | MOCK_METHOD1(remove, bool(const FilePath&)); | ||||
12 | MOCK_CONST_METHOD1(load, std::optional<nlohmann::json>(const FilePath&)); | ||||
13 | MOCK_CONST_METHOD1(list, std::vector<FilePath>(const DirectoryPath&)); | ||||
14 | }; |