blob: 99ecd4184304fe4ac7c428f37d1b974e77818e72 [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));
13 MOCK_METHOD(std::optional<nlohmann::json>, load, (const FilePath&),
14 (const, override));
15 MOCK_METHOD(std::vector<FilePath>, list, (const DirectoryPath&),
16 (const, override));
Krzysztof Grobelny73da6902020-09-24 13:42:04 +020017};