blob: b11eff3661592f7256e36ebba04077e111c92ace [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"
James Feist0c8223b2019-05-08 15:33:33 -07004#include "util.hpp"
Patrick Ventureda4a5dd2018-08-31 09:42:48 -07005
Patrick Venture0df7c0f2018-06-13 09:02:13 -07006#include <string>
7
Patrick Ventureda4a5dd2018-08-31 09:42:48 -07008#include <gmock/gmock.h>
Patrick Venturea0764872020-08-08 07:48:43 -07009namespace pid_control
10{
11
Patrick Venture0df7c0f2018-06-13 09:02:13 -070012class DbusHelperMock : public DbusHelperInterface
13{
Patrick Ventureda4a5dd2018-08-31 09:42:48 -070014 public:
Ed Tanousd2768c52025-06-26 11:42:57 -070015 ~DbusHelperMock() override = default;
Patrick Venture0df7c0f2018-06-13 09:02:13 -070016
Patrick Venture9b936922020-08-10 11:28:39 -070017 MOCK_METHOD2(getService,
18 std::string(const std::string&, const std::string&));
19 MOCK_METHOD3(getProperties, void(const std::string&, const std::string&,
Patrick Venture1df9e872020-10-08 15:35:01 -070020 SensorProperties*));
James Feist36b7d8e2018-10-05 15:39:01 -070021
Patrick Venture9b936922020-08-10 11:28:39 -070022 MOCK_METHOD2(thresholdsAsserted,
23 bool(const std::string& service, const std::string& path));
Patrick Venture0df7c0f2018-06-13 09:02:13 -070024};
Patrick Venturea0764872020-08-08 07:48:43 -070025
26} // namespace pid_control