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