1 #pragma once 2 3 #include "dbus/util.hpp" 4 5 #include <sdbusplus/bus.hpp> 6 #include <string> 7 8 #include <gmock/gmock.h> 9 10 class DbusHelperMock : public DbusHelperInterface 11 { 12 public: 13 virtual ~DbusHelperMock() = default; 14 15 MOCK_METHOD3(GetService, 16 std::string(sdbusplus::bus::bus&, const std::string&, 17 const std::string&)); 18 MOCK_METHOD4(GetProperties, 19 void(sdbusplus::bus::bus&, const std::string&, 20 const std::string&, struct SensorProperties*)); 21 22 MOCK_METHOD3(ThresholdsAsserted, 23 bool(sdbusplus::bus::bus& bus, const std::string& service, 24 const std::string& path)); 25 }; 26