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 class DbusHelperMock : public DbusHelperInterface 12 { 13 public: 14 virtual ~DbusHelperMock() = default; 15 16 MOCK_METHOD3(getService, 17 std::string(sdbusplus::bus::bus&, const std::string&, 18 const std::string&)); 19 MOCK_METHOD4(getProperties, 20 void(sdbusplus::bus::bus&, const std::string&, 21 const std::string&, struct SensorProperties*)); 22 23 MOCK_METHOD3(thresholdsAsserted, 24 bool(sdbusplus::bus::bus& bus, const std::string& service, 25 const std::string& path)); 26 }; 27