Krzysztof Grobelny | c8e3a64 | 2020-10-23 12:29:16 +0200 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include "interfaces/metric.hpp" |
| 4 | |
| 5 | #include <gmock/gmock.h> |
| 6 | |
| 7 | class MetricMock : public interfaces::Metric |
| 8 | { |
| 9 | public: |
| 10 | MetricMock() |
| 11 | { |
| 12 | using namespace testing; |
| 13 | |
Krzysztof Grobelny | dcc4e19 | 2021-03-08 09:09:34 +0000 | [diff] [blame] | 14 | ON_CALL(*this, getReadings()) |
Krzysztof Grobelny | 8069771 | 2021-03-04 09:49:27 +0000 | [diff] [blame^] | 15 | .WillByDefault(Return(std::vector<MetricValue>())); |
Krzysztof Grobelny | c8e3a64 | 2020-10-23 12:29:16 +0200 | [diff] [blame] | 16 | } |
| 17 | |
Krzysztof Grobelny | 6ccfcbf | 2020-11-04 09:31:36 +0100 | [diff] [blame] | 18 | MOCK_METHOD(void, initialize, (), (override)); |
Krzysztof Grobelny | 8069771 | 2021-03-04 09:49:27 +0000 | [diff] [blame^] | 19 | MOCK_METHOD(std::vector<MetricValue>, getReadings, (), (const, override)); |
Krzysztof Grobelny | d223819 | 2020-12-02 09:27:28 +0000 | [diff] [blame] | 20 | MOCK_METHOD(LabeledMetricParameters, dumpConfiguration, (), |
| 21 | (const, override)); |
Krzysztof Grobelny | c8e3a64 | 2020-10-23 12:29:16 +0200 | [diff] [blame] | 22 | }; |