blob: b4ba4b16cb0192993113700b5ffccbab0e1cf67d [file] [log] [blame]
Patrick Venture123b5c02019-03-05 14:01:00 -08001#pragma once
2
3#include <unistd.h>
4
5#include <ipmiblob/internal/sys.hpp>
6
7#include <gmock/gmock.h>
8
9namespace internal
10{
11
12class InternalSysMock : public Sys
13{
14 public:
15 virtual ~InternalSysMock() = default;
16
17 MOCK_CONST_METHOD2(open, int(const char*, int));
18 MOCK_CONST_METHOD3(read, int(int, void*, std::size_t));
19 MOCK_CONST_METHOD1(close, int(int));
20 MOCK_CONST_METHOD6(mmap, void*(void*, std::size_t, int, int, int, off_t));
21 MOCK_CONST_METHOD2(munmap, int(void*, std::size_t));
22 MOCK_CONST_METHOD0(getpagesize, int());
23 MOCK_CONST_METHOD3(ioctl, int(int, unsigned long, void*));
24 MOCK_CONST_METHOD3(poll, int(struct pollfd*, nfds_t, int));
25};
26
27} // namespace internal