blob: 2f31f1ea403bcb21be67f114e3e70897e8119504 [file] [log] [blame]
#pragma once
#include "interfaces/metric.hpp"
#include <gmock/gmock.h>
class MetricMock : public interfaces::Metric
{
public:
MetricMock()
{
using namespace testing;
ON_CALL(*this, getReading())
.WillByDefault(ReturnRefOfCopy(MetricValue()));
}
MOCK_METHOD(void, initialize, (), (override));
MOCK_METHOD(const MetricValue&, getReading, (), (const, override));
MOCK_METHOD(LabeledMetricParameters, dumpConfiguration, (),
(const, override));
};