blob: 21f773385d0d043be2404817ee950f14b0f0c773 [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
14 ON_CALL(*this, getReadings())
15 .WillByDefault(ReturnRefOfCopy(std::vector<MetricValue>()));
16 }
17
Krzysztof Grobelny6ccfcbf2020-11-04 09:31:36 +010018 MOCK_METHOD(void, initialize, (), (override));
Krzysztof Grobelnyc8e3a642020-10-23 12:29:16 +020019 MOCK_METHOD(const std::vector<MetricValue>&, getReadings, (),
20 (const, override));
Wludzik, Jozefe2362792020-10-27 17:23:55 +010021 MOCK_METHOD(nlohmann::json, to_json, (), (const, override));
Krzysztof Grobelnyc8e3a642020-10-23 12:29:16 +020022};