blob: 541f95cd753a321b82942c38690749a2b9967c5f [file] [log] [blame]
Patrick Venturea58197c2018-06-11 15:29:45 -07001#pragma once
2
Patrick Ventureda4a5dd2018-08-31 09:42:48 -07003#include "pid/zone.hpp"
4
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 Ventureda4a5dd2018-08-31 09:42:48 -070017 MOCK_METHOD1(getCachedValue, double(const std::string&));
Patrick Venture9bbf3332019-07-16 10:50:37 -070018 MOCK_METHOD1(addSetPoint, void(double));
James Feist608304d2019-02-25 10:01:42 -080019 MOCK_METHOD1(addRPMCeiling, void(double));
Patrick Venturef7a2dd52019-07-16 14:31:13 -070020 MOCK_CONST_METHOD0(getMaxSetPointRequest, double());
Patrick Ventureda4a5dd2018-08-31 09:42:48 -070021 MOCK_CONST_METHOD0(getFailSafeMode, bool());
Patrick Venture5f59c0f2018-11-11 12:55:14 -080022 MOCK_CONST_METHOD0(getFailSafePercent, double());
Patrick Venture2d8e7852018-10-30 19:14:07 -070023 MOCK_METHOD1(getSensor, Sensor*(const std::string&));
Patrick Venturea58197c2018-06-11 15:29:45 -070024};
Patrick Venturea0764872020-08-08 07:48:43 -070025
26} // namespace pid_control