Patrick Venture | a58197c | 2018-06-11 15:29:45 -0700 | [diff] [blame] | 1 | #pragma once |
| 2 | |
Patrick Venture | 1a15379 | 2020-08-11 08:41:47 -0700 | [diff] [blame] | 3 | #include "pid/zone_interface.hpp" |
Patrick Venture | da4a5dd | 2018-08-31 09:42:48 -0700 | [diff] [blame] | 4 | |
Patrick Venture | a58197c | 2018-06-11 15:29:45 -0700 | [diff] [blame] | 5 | #include <string> |
| 6 | |
Patrick Venture | da4a5dd | 2018-08-31 09:42:48 -0700 | [diff] [blame] | 7 | #include <gmock/gmock.h> |
Patrick Venture | a58197c | 2018-06-11 15:29:45 -0700 | [diff] [blame] | 8 | |
Patrick Venture | a076487 | 2020-08-08 07:48:43 -0700 | [diff] [blame] | 9 | namespace pid_control |
| 10 | { |
| 11 | |
Patrick Venture | a58197c | 2018-06-11 15:29:45 -0700 | [diff] [blame] | 12 | class ZoneMock : public ZoneInterface |
| 13 | { |
Patrick Venture | da4a5dd | 2018-08-31 09:42:48 -0700 | [diff] [blame] | 14 | public: |
| 15 | virtual ~ZoneMock() = default; |
Patrick Venture | a58197c | 2018-06-11 15:29:45 -0700 | [diff] [blame] | 16 | |
Patrick Venture | 7a98c19 | 2020-08-12 08:35:16 -0700 | [diff] [blame] | 17 | MOCK_METHOD0(updateFanTelemetry, void()); |
| 18 | MOCK_METHOD0(updateSensors, void()); |
| 19 | MOCK_METHOD0(initializeCache, void()); |
Patrick Venture | da4a5dd | 2018-08-31 09:42:48 -0700 | [diff] [blame] | 20 | MOCK_METHOD1(getCachedValue, double(const std::string&)); |
Patrick Venture | 7a98c19 | 2020-08-12 08:35:16 -0700 | [diff] [blame] | 21 | |
Patrick Venture | 9bbf333 | 2019-07-16 10:50:37 -0700 | [diff] [blame] | 22 | MOCK_METHOD1(addSetPoint, void(double)); |
Patrick Venture | 7a98c19 | 2020-08-12 08:35:16 -0700 | [diff] [blame] | 23 | MOCK_METHOD0(clearSetPoints, void()); |
James Feist | 608304d | 2019-02-25 10:01:42 -0800 | [diff] [blame] | 24 | MOCK_METHOD1(addRPMCeiling, void(double)); |
Patrick Venture | 7a98c19 | 2020-08-12 08:35:16 -0700 | [diff] [blame] | 25 | MOCK_METHOD0(clearRPMCeilings, void()); |
| 26 | MOCK_METHOD0(determineMaxSetPointRequest, void()); |
Patrick Venture | f7a2dd5 | 2019-07-16 14:31:13 -0700 | [diff] [blame] | 27 | MOCK_CONST_METHOD0(getMaxSetPointRequest, double()); |
Patrick Venture | 7a98c19 | 2020-08-12 08:35:16 -0700 | [diff] [blame] | 28 | |
| 29 | MOCK_METHOD0(processFans, void()); |
| 30 | MOCK_METHOD0(processThermals, void()); |
| 31 | |
| 32 | MOCK_CONST_METHOD0(getManualMode, bool()); |
Patrick Venture | da4a5dd | 2018-08-31 09:42:48 -0700 | [diff] [blame] | 33 | MOCK_CONST_METHOD0(getFailSafeMode, bool()); |
Patrick Venture | 5f59c0f | 2018-11-11 12:55:14 -0800 | [diff] [blame] | 34 | MOCK_CONST_METHOD0(getFailSafePercent, double()); |
Patrick Venture | 7a98c19 | 2020-08-12 08:35:16 -0700 | [diff] [blame] | 35 | |
Patrick Venture | 2d8e785 | 2018-10-30 19:14:07 -0700 | [diff] [blame] | 36 | MOCK_METHOD1(getSensor, Sensor*(const std::string&)); |
Patrick Venture | 7a98c19 | 2020-08-12 08:35:16 -0700 | [diff] [blame] | 37 | |
| 38 | MOCK_METHOD0(initializeLog, void()); |
| 39 | MOCK_METHOD1(writeLog, void(const std::string&)); |
Patrick Venture | a58197c | 2018-06-11 15:29:45 -0700 | [diff] [blame] | 40 | }; |
Patrick Venture | a076487 | 2020-08-08 07:48:43 -0700 | [diff] [blame] | 41 | |
| 42 | } // namespace pid_control |