blob: 295bc9427ed7210e1ba44a1eb078fb4f261b36aa [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:
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};