Patrick Venture | 5055237 | 2018-06-07 10:53:56 -0700 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include <gmock/gmock.h> |
| 4 | |
| 5 | #include "hwmonio.hpp" |
| 6 | |
| 7 | namespace hwmonio { |
| 8 | |
| 9 | class HwmonIOMock : public HwmonIOInterface |
| 10 | { |
| 11 | public: |
| 12 | virtual ~HwmonIOMock(){}; |
| 13 | |
| 14 | MOCK_CONST_METHOD5(read, int64_t(const std::string&, |
| 15 | const std::string&, |
| 16 | const std::string&, |
| 17 | size_t, |
| 18 | std::chrono::milliseconds)); |
| 19 | |
| 20 | MOCK_CONST_METHOD6(write, void(uint32_t, |
| 21 | const std::string&, |
| 22 | const std::string&, |
| 23 | const std::string&, |
| 24 | size_t, |
| 25 | std::chrono::milliseconds)); |
| 26 | |
| 27 | MOCK_CONST_METHOD0(path, std::string()); |
| 28 | }; |
| 29 | |
| 30 | } // namespace hwmonio |
| 31 | |
| 32 | // vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 |