blob: d7dbcbbe8ed988b2fb29c5a3b64e8e21ae094c29 [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*));
James Feist36b7d8e2018-10-05 15:39:01 -070021
22 MOCK_METHOD3(ThresholdsAsserted,
23 bool(sdbusplus::bus::bus& bus, const std::string& service,
24 const std::string& path));
Patrick Venture0df7c0f2018-06-13 09:02:13 -070025};