blob: d3d9e6450c7d88e992ace96f6428a5e00ebb38c8 [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, getReadings())
.WillByDefault(ReturnRefOfCopy(std::vector<MetricValue>()));
}
MOCK_METHOD(const std::vector<MetricValue>&, getReadings, (),
(const, override));
MOCK_METHOD(nlohmann::json, to_json, (), (const, override));
};