blob: 120c44dbf1d151e59e12ced3f26b238d7715ecfd [file] [log] [blame]
Patrick Venture0df7c0f2018-06-13 09:02:13 -07001#pragma once
2
James Feist0c8223b2019-05-08 15:33:33 -07003#include "util.hpp"
Patrick Ventureda4a5dd2018-08-31 09:42:48 -07004
Patrick Venture0df7c0f2018-06-13 09:02:13 -07005#include <sdbusplus/bus.hpp>
Patrick Venturea83a3ec2020-08-04 09:52:05 -07006
Patrick Venture0df7c0f2018-06-13 09:02:13 -07007#include <string>
8
Patrick Ventureda4a5dd2018-08-31 09:42:48 -07009#include <gmock/gmock.h>
Patrick Venture0df7c0f2018-06-13 09:02:13 -070010
11class DbusHelperMock : public DbusHelperInterface
12{
Patrick Ventureda4a5dd2018-08-31 09:42:48 -070013 public:
14 virtual ~DbusHelperMock() = default;
Patrick Venture0df7c0f2018-06-13 09:02:13 -070015
Patrick Venture563a3562018-10-30 09:31:26 -070016 MOCK_METHOD3(getService,
Patrick Ventureda4a5dd2018-08-31 09:42:48 -070017 std::string(sdbusplus::bus::bus&, const std::string&,
18 const std::string&));
Patrick Venture563a3562018-10-30 09:31:26 -070019 MOCK_METHOD4(getProperties,
Patrick Ventureda4a5dd2018-08-31 09:42:48 -070020 void(sdbusplus::bus::bus&, const std::string&,
21 const std::string&, struct SensorProperties*));
James Feist36b7d8e2018-10-05 15:39:01 -070022
Patrick Venture563a3562018-10-30 09:31:26 -070023 MOCK_METHOD3(thresholdsAsserted,
James Feist36b7d8e2018-10-05 15:39:01 -070024 bool(sdbusplus::bus::bus& bus, const std::string& service,
25 const std::string& path));
Patrick Venture0df7c0f2018-06-13 09:02:13 -070026};