Patrick Venture | c18e2b6 | 2018-11-21 14:19:28 -0800 | [diff] [blame] | 1 | #pragma once |
2 | |||||
3 | #include "internal/sys.hpp" | ||||
4 | |||||
5 | #include <gmock/gmock.h> | ||||
6 | |||||
7 | namespace blobs | ||||
8 | { | ||||
9 | namespace internal | ||||
10 | { | ||||
11 | |||||
12 | class InternalDlSysMock : public DlSysInterface | ||||
13 | { | ||||
14 | public: | ||||
15 | virtual ~InternalDlSysMock() = default; | ||||
16 | |||||
17 | MOCK_CONST_METHOD0(dlerror, const char*()); | ||||
18 | MOCK_CONST_METHOD2(dlopen, void*(const char*, int)); | ||||
19 | MOCK_CONST_METHOD2(dlsym, void*(void*, const char*)); | ||||
20 | }; | ||||
21 | |||||
22 | } // namespace internal | ||||
23 | } // namespace blobs |