blob: 6caa67edf8bd307c7dd578549611164a1c76ecf5 [file] [log] [blame]
Patrick Venture50552372018-06-07 10:53:56 -07001#pragma once
2
Patrick Venture50552372018-06-07 10:53:56 -07003#include "hwmonio.hpp"
4
Patrick Venture043d3232018-08-31 10:10:53 -07005#include <gmock/gmock.h>
6
7namespace hwmonio
8{
Patrick Venture50552372018-06-07 10:53:56 -07009
10class HwmonIOMock : public HwmonIOInterface
11{
Patrick Venture043d3232018-08-31 10:10:53 -070012 public:
13 virtual ~HwmonIOMock(){};
Patrick Venture50552372018-06-07 10:53:56 -070014
Patrick Venture043d3232018-08-31 10:10:53 -070015 MOCK_CONST_METHOD5(read, int64_t(const std::string&, const std::string&,
16 const std::string&, size_t,
17 std::chrono::milliseconds));
Patrick Venture50552372018-06-07 10:53:56 -070018
Patrick Venture043d3232018-08-31 10:10:53 -070019 MOCK_CONST_METHOD6(write, void(uint32_t, const std::string&,
20 const std::string&, const std::string&,
21 size_t, std::chrono::milliseconds));
Patrick Venture50552372018-06-07 10:53:56 -070022
Patrick Venture043d3232018-08-31 10:10:53 -070023 MOCK_CONST_METHOD0(path, std::string());
Patrick Venture50552372018-06-07 10:53:56 -070024};
25
26} // namespace hwmonio
27
28// vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4