xref: /openbmc/phosphor-pid-control/test/dbushelper_mock.hpp (revision 7df3c27fbfa520bcb484a0c82eb37b84a22061fe)
1 #pragma once
2 
3 #include "dbus/dbushelper_interface.hpp"
4 #include "util.hpp"
5 
6 #include <string>
7 
8 #include <gmock/gmock.h>
9 namespace pid_control
10 {
11 
12 class DbusHelperMock : public DbusHelperInterface
13 {
14   public:
15     virtual ~DbusHelperMock() = default;
16 
17     MOCK_METHOD2(getService,
18                  std::string(const std::string&, const std::string&));
19     MOCK_METHOD3(getProperties, void(const std::string&, const std::string&,
20                                      SensorProperties*));
21 
22     MOCK_METHOD2(thresholdsAsserted,
23                  bool(const std::string& service, const std::string& path));
24 };
25 
26 } // namespace pid_control
27