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