| Patrick Venture | aca9813 | 2019-03-18 11:14:16 -0700 | [diff] [blame^] | 1 | #pragma once |
| 2 | |||||
| 3 | #include "handler.hpp" | ||||
| 4 | |||||
| 5 | #include <cstdint> | ||||
| 6 | #include <string> | ||||
| 7 | |||||
| 8 | #include <gmock/gmock.h> | ||||
| 9 | |||||
| 10 | namespace ethstats | ||||
| 11 | { | ||||
| 12 | |||||
| 13 | class HandlerMock : public EthStatsInterface | ||||
| 14 | { | ||||
| 15 | public: | ||||
| 16 | ~HandlerMock() = default; | ||||
| 17 | |||||
| 18 | MOCK_CONST_METHOD1(validIfNameAndField, bool(const std::string&)); | ||||
| 19 | MOCK_CONST_METHOD1(readStatistic, std::uint64_t(const std::string&)); | ||||
| 20 | }; | ||||
| 21 | |||||
| 22 | } // namespace ethstats | ||||