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