blob: 0d4221d69b09a6268a6d9d32cc54eab365d9feb1 [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&,
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