blob: 42abe2f17dafaa0547f24213b41c1ba23e4ba278 [file] [log] [blame]
Patrick Venture8b588562018-11-18 08:44:33 -08001#pragma once
2
3#include "internal/sys.hpp"
4
5#include <unistd.h>
6
7#include <gmock/gmock.h>
8
9namespace blobs
10{
11namespace flash
12{
13namespace internal
14{
15
16class InternalSysMock : public Sys
17{
18 public:
19 virtual ~InternalSysMock() = default;
20
21 MOCK_CONST_METHOD2(open, int(const char*, int));
22 MOCK_CONST_METHOD1(close, int(int));
23 MOCK_CONST_METHOD6(mmap, void*(void*, size_t, int, int, int, off_t));
24 MOCK_CONST_METHOD2(munmap, int(void*, size));
25 MOCK_CONST_METHOD0(getpagesize, int());
26};
27
28} // namespace internal
29} // namespace flash
30} // namespace blobs