blob: 4ad944c163d79e3e476c2761c26d344252e1d89a [file] [log] [blame]
Patrick Venture50552372018-06-07 10:53:56 -07001#pragma once
2
3#include <gmock/gmock.h>
4
5#include "hwmonio.hpp"
6
7namespace hwmonio {
8
9class 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