blob: 7792e74aef1b7aa70092ca1b9df36bd14473622c [file] [log] [blame]
Kun Yi68c81142018-12-18 11:17:14 -08001#pragma once
2
3#include "binarystore.hpp"
4
5#include <gmock/gmock.h>
6
7namespace binstore
8{
9
10class MockBinaryStore : public BinaryStoreInterface
11{
12 public:
13 MOCK_CONST_METHOD0(getBaseBlobId, std::string());
14 MOCK_CONST_METHOD1(canHandleBlob, bool(const std::string&));
15 MOCK_CONST_METHOD0(getBlobIds, std::vector<std::string>());
Kun Yi38146a02018-12-18 21:54:26 -080016 MOCK_METHOD2(openOrCreateBlob, bool(const std::string&, uint16_t));
Kun Yic0adbc32018-12-18 22:35:29 -080017 MOCK_METHOD1(deleteBlob, bool(const std::string&));
Kun Yi68c81142018-12-18 11:17:14 -080018 MOCK_METHOD2(read, std::vector<uint8_t>(uint32_t, uint32_t));
19 MOCK_METHOD2(write, bool(uint32_t, const std::vector<uint8_t>&));
20 MOCK_METHOD0(commit, bool());
21 MOCK_METHOD0(close, bool());
22 MOCK_METHOD0(stat, bool());
23};
24
25} // namespace binstore