blob: ab764593aa2576260e53364b4bd4137905ef0679 [file] [log] [blame]
Krzysztof Grobelny73da6902020-09-24 13:42:04 +02001#pragma once
2
3#include "interfaces/json_storage.hpp"
4
5#include <gmock/gmock.h>
6
7class StorageMock : public interfaces::JsonStorage
8{
9 public:
Krzysztof Grobelnyb5645942020-09-29 11:52:45 +020010 MOCK_METHOD(void, store, (const FilePath&, const nlohmann::json&),
11 (override));
12 MOCK_METHOD(bool, remove, (const FilePath&), (override));
Wludzik, Jozefe2362792020-10-27 17:23:55 +010013 MOCK_METHOD(bool, exist, (const FilePath&), (const, override));
Krzysztof Grobelnyb5645942020-09-29 11:52:45 +020014 MOCK_METHOD(std::optional<nlohmann::json>, load, (const FilePath&),
15 (const, override));
Wludzik, Jozefe2362792020-10-27 17:23:55 +010016 MOCK_METHOD(std::vector<FilePath>, list, (), (const, override));
Krzysztof Grobelny73da6902020-09-24 13:42:04 +020017};