blob: 2f31f1ea403bcb21be67f114e3e70897e8119504 [file] [log] [blame]
Krzysztof Grobelnyc8e3a642020-10-23 12:29:16 +02001#pragma once
2
3#include "interfaces/metric.hpp"
4
5#include <gmock/gmock.h>
6
7class MetricMock : public interfaces::Metric
8{
9 public:
10 MetricMock()
11 {
12 using namespace testing;
13
Krzysztof Grobelnye8fc5752021-02-05 14:30:45 +000014 ON_CALL(*this, getReading())
15 .WillByDefault(ReturnRefOfCopy(MetricValue()));
Krzysztof Grobelnyc8e3a642020-10-23 12:29:16 +020016 }
17
Krzysztof Grobelny6ccfcbf2020-11-04 09:31:36 +010018 MOCK_METHOD(void, initialize, (), (override));
Krzysztof Grobelnye8fc5752021-02-05 14:30:45 +000019 MOCK_METHOD(const MetricValue&, getReading, (), (const, override));
Krzysztof Grobelnyd2238192020-12-02 09:27:28 +000020 MOCK_METHOD(LabeledMetricParameters, dumpConfiguration, (),
21 (const, override));
Krzysztof Grobelnyc8e3a642020-10-23 12:29:16 +020022};