blob: 0af7d7c1e42828ca827aed4f475db2cec0e0ed32 [file] [log] [blame]
#pragma once
#include "sys.hpp"
#include <gmock/gmock.h>
namespace binstore
{
namespace internal
{
class SysMock : public internal::Sys
{
public:
MOCK_CONST_METHOD2(open, int(const char*, int));
MOCK_CONST_METHOD1(close, int(int));
MOCK_CONST_METHOD3(lseek, off_t(int, off_t, int));
MOCK_CONST_METHOD3(read, ssize_t(int, void*, size_t));
MOCK_CONST_METHOD3(write, ssize_t(int, const void*, size_t));
};
} // namespace internal
} // namespace binstore