Kun Yi | 73380f6 | 2019-01-09 13:35:28 -0800 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include "sys.hpp" |
| 4 | |
| 5 | #include <gmock/gmock.h> |
| 6 | |
| 7 | namespace binstore |
| 8 | { |
| 9 | namespace internal |
| 10 | { |
| 11 | |
| 12 | class 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 |