#pragma once #include "interfaces/metric.hpp" #include class MetricMock : public interfaces::Metric { public: MetricMock() { using namespace testing; ON_CALL(*this, getReadings()) .WillByDefault(ReturnRefOfCopy(std::vector())); } MOCK_METHOD(const std::vector&, getReadings, (), (const, override)); MOCK_METHOD(nlohmann::json, to_json, (), (const, override)); };