blob: 6ce63c845aadec5a0e74482e3aef97aaa2c5c3bc [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
Patrick Venturea0764872020-08-08 07:48:43 -070011namespace pid_control
12{
13
Patrick Venture0df7c0f2018-06-13 09:02:13 -070014class DbusHelperMock : public DbusHelperInterface
15{
Patrick Ventureda4a5dd2018-08-31 09:42:48 -070016 public:
17 virtual ~DbusHelperMock() = default;
Patrick Venture0df7c0f2018-06-13 09:02:13 -070018
Patrick Venture563a3562018-10-30 09:31:26 -070019 MOCK_METHOD3(getService,
Patrick Ventureda4a5dd2018-08-31 09:42:48 -070020 std::string(sdbusplus::bus::bus&, const std::string&,
21 const std::string&));
Patrick Venture563a3562018-10-30 09:31:26 -070022 MOCK_METHOD4(getProperties,
Patrick Ventureda4a5dd2018-08-31 09:42:48 -070023 void(sdbusplus::bus::bus&, const std::string&,
24 const std::string&, struct SensorProperties*));
James Feist36b7d8e2018-10-05 15:39:01 -070025
Patrick Venture563a3562018-10-30 09:31:26 -070026 MOCK_METHOD3(thresholdsAsserted,
James Feist36b7d8e2018-10-05 15:39:01 -070027 bool(sdbusplus::bus::bus& bus, const std::string& service,
28 const std::string& path));
Patrick Venture0df7c0f2018-06-13 09:02:13 -070029};
Patrick Venturea0764872020-08-08 07:48:43 -070030
31} // namespace pid_control