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: |
Krzysztof Grobelny | b564594 | 2020-09-29 11:52:45 +0200 | [diff] [blame] | 10 | MOCK_METHOD(void, store, (const FilePath&, const nlohmann::json&), |
| 11 | (override)); |
| 12 | MOCK_METHOD(bool, remove, (const FilePath&), (override)); |
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 13 | MOCK_METHOD(bool, exist, (const FilePath&), (const, override)); |
Krzysztof Grobelny | b564594 | 2020-09-29 11:52:45 +0200 | [diff] [blame] | 14 | MOCK_METHOD(std::optional<nlohmann::json>, load, (const FilePath&), |
| 15 | (const, override)); |
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 16 | MOCK_METHOD(std::vector<FilePath>, list, (), (const, override)); |
Krzysztof Grobelny | 73da690 | 2020-09-24 13:42:04 +0200 | [diff] [blame] | 17 | }; |