blob: 44b3bea33765656be17ebdf2096d0829cef5d62c [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 <string>
6
Patrick Ventureda4a5dd2018-08-31 09:42:48 -07007#include <gmock/gmock.h>
Patrick Venture0df7c0f2018-06-13 09:02:13 -07008
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:
15 virtual ~DbusHelperMock() = 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&,
20 struct 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