blob: 646ddd17fe89548b505ff42767a344ee960d7d9f [file] [log] [blame]
Patrick Venture0df7c0f2018-06-13 09:02:13 -07001#pragma once
2
Patrick Williams7df3c272025-01-30 19:44:28 -05003#include "dbus/dbushelper_interface.hpp"
Patrick Ventureda4a5dd2018-08-31 09:42:48 -07004
Patrick Venture0df7c0f2018-06-13 09:02:13 -07005#include <string>
6
Patrick Ventureda4a5dd2018-08-31 09:42:48 -07007#include <gmock/gmock.h>
Patrick Venturea0764872020-08-08 07:48:43 -07008namespace pid_control
9{
10
Patrick Venture0df7c0f2018-06-13 09:02:13 -070011class DbusHelperMock : public DbusHelperInterface
12{
Patrick Ventureda4a5dd2018-08-31 09:42:48 -070013 public:
Ed Tanousd2768c52025-06-26 11:42:57 -070014 ~DbusHelperMock() override = default;
Patrick Venture0df7c0f2018-06-13 09:02:13 -070015
Patrick Venture9b936922020-08-10 11:28:39 -070016 MOCK_METHOD2(getService,
17 std::string(const std::string&, const std::string&));
18 MOCK_METHOD3(getProperties, void(const std::string&, const std::string&,
Patrick Venture1df9e872020-10-08 15:35:01 -070019 SensorProperties*));
James Feist36b7d8e2018-10-05 15:39:01 -070020
Patrick Venture9b936922020-08-10 11:28:39 -070021 MOCK_METHOD2(thresholdsAsserted,
22 bool(const std::string& service, const std::string& path));
Patrick Venture0df7c0f2018-06-13 09:02:13 -070023};
Patrick Venturea0764872020-08-08 07:48:43 -070024
25} // namespace pid_control