blob: 48b7e9a056593f0c0ed5f44f6866b0faff848968 [file] [log] [blame]
Patrick Venturea58197c2018-06-11 15:29:45 -07001#pragma once
2
Patrick Venture1a153792020-08-11 08:41:47 -07003#include "pid/zone_interface.hpp"
Patrick Ventureda4a5dd2018-08-31 09:42:48 -07004
Patrick Venturea58197c2018-06-11 15:29:45 -07005#include <string>
6
Patrick Ventureda4a5dd2018-08-31 09:42:48 -07007#include <gmock/gmock.h>
Patrick Venturea58197c2018-06-11 15:29:45 -07008
Patrick Venturea0764872020-08-08 07:48:43 -07009namespace pid_control
10{
11
Patrick Venturea58197c2018-06-11 15:29:45 -070012class ZoneMock : public ZoneInterface
13{
Patrick Ventureda4a5dd2018-08-31 09:42:48 -070014 public:
15 virtual ~ZoneMock() = default;
Patrick Venturea58197c2018-06-11 15:29:45 -070016
Patrick Venture7a98c192020-08-12 08:35:16 -070017 MOCK_METHOD0(updateFanTelemetry, void());
18 MOCK_METHOD0(updateSensors, void());
19 MOCK_METHOD0(initializeCache, void());
Patrick Ventureda4a5dd2018-08-31 09:42:48 -070020 MOCK_METHOD1(getCachedValue, double(const std::string&));
Patrick Venture7a98c192020-08-12 08:35:16 -070021
Patrick Venture9bbf3332019-07-16 10:50:37 -070022 MOCK_METHOD1(addSetPoint, void(double));
Patrick Venture7a98c192020-08-12 08:35:16 -070023 MOCK_METHOD0(clearSetPoints, void());
James Feist608304d2019-02-25 10:01:42 -080024 MOCK_METHOD1(addRPMCeiling, void(double));
Patrick Venture7a98c192020-08-12 08:35:16 -070025 MOCK_METHOD0(clearRPMCeilings, void());
26 MOCK_METHOD0(determineMaxSetPointRequest, void());
Patrick Venturef7a2dd52019-07-16 14:31:13 -070027 MOCK_CONST_METHOD0(getMaxSetPointRequest, double());
Patrick Venture7a98c192020-08-12 08:35:16 -070028
29 MOCK_METHOD0(processFans, void());
30 MOCK_METHOD0(processThermals, void());
31
32 MOCK_CONST_METHOD0(getManualMode, bool());
Patrick Ventureda4a5dd2018-08-31 09:42:48 -070033 MOCK_CONST_METHOD0(getFailSafeMode, bool());
Patrick Venture5f59c0f2018-11-11 12:55:14 -080034 MOCK_CONST_METHOD0(getFailSafePercent, double());
Patrick Venture7a98c192020-08-12 08:35:16 -070035
Patrick Venture2d8e7852018-10-30 19:14:07 -070036 MOCK_METHOD1(getSensor, Sensor*(const std::string&));
Patrick Venture7a98c192020-08-12 08:35:16 -070037
38 MOCK_METHOD0(initializeLog, void());
39 MOCK_METHOD1(writeLog, void(const std::string&));
Patrick Venturea58197c2018-06-11 15:29:45 -070040};
Patrick Venturea0764872020-08-08 07:48:43 -070041
42} // namespace pid_control