blob: e373f8a2e40904d8600374d288d724b88273c866 [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 Venture563a3562018-10-30 09:31:26 -070015 MOCK_METHOD3(getService,
Patrick Ventureda4a5dd2018-08-31 09:42:48 -070016 std::string(sdbusplus::bus::bus&, const std::string&,
17 const std::string&));
Patrick Venture563a3562018-10-30 09:31:26 -070018 MOCK_METHOD4(getProperties,
Patrick Ventureda4a5dd2018-08-31 09:42:48 -070019 void(sdbusplus::bus::bus&, const std::string&,
20 const std::string&, struct SensorProperties*));
James Feist36b7d8e2018-10-05 15:39:01 -070021
Patrick Venture563a3562018-10-30 09:31:26 -070022 MOCK_METHOD3(thresholdsAsserted,
James Feist36b7d8e2018-10-05 15:39:01 -070023 bool(sdbusplus::bus::bus& bus, const std::string& service,
24 const std::string& path));
Patrick Venture0df7c0f2018-06-13 09:02:13 -070025};