blob: 6d3464eea827367ae9b0adb05f4c26c49570b715 [file] [log] [blame]
Patrick Venture0df7c0f2018-06-13 09:02:13 -07001#pragma once
2
Patrick Ventureda4a5dd2018-08-31 09:42:48 -07003#include "dbus/util.hpp"
4
Patrick Venture0df7c0f2018-06-13 09:02:13 -07005#include <sdbusplus/bus.hpp>
6#include <string>
7
Patrick Ventureda4a5dd2018-08-31 09:42:48 -07008#include <gmock/gmock.h>
Patrick Venture0df7c0f2018-06-13 09:02:13 -07009
10class DbusHelperMock : public DbusHelperInterface
11{
Patrick Ventureda4a5dd2018-08-31 09:42:48 -070012 public:
13 virtual ~DbusHelperMock() = default;
Patrick Venture0df7c0f2018-06-13 09:02:13 -070014
Patrick Ventureda4a5dd2018-08-31 09:42:48 -070015 MOCK_METHOD3(GetService,
16 std::string(sdbusplus::bus::bus&, const std::string&,
17 const std::string&));
18 MOCK_METHOD4(GetProperties,
19 void(sdbusplus::bus::bus&, const std::string&,
20 const std::string&, struct SensorProperties*));
Patrick Venture0df7c0f2018-06-13 09:02:13 -070021};