blob: 0af7d7c1e42828ca827aed4f475db2cec0e0ed32 [file] [log] [blame]
Kun Yi73380f62019-01-09 13:35:28 -08001#pragma once
2
3#include "sys.hpp"
4
5#include <gmock/gmock.h>
6
7namespace binstore
8{
9namespace internal
10{
11
12class SysMock : public internal::Sys
13{
14 public:
15 MOCK_CONST_METHOD2(open, int(const char*, int));
16 MOCK_CONST_METHOD1(close, int(int));
17 MOCK_CONST_METHOD3(lseek, off_t(int, off_t, int));
18 MOCK_CONST_METHOD3(read, ssize_t(int, void*, size_t));
19 MOCK_CONST_METHOD3(write, ssize_t(int, const void*, size_t));
20};
21
22} // namespace internal
23
24} // namespace binstore