blob: d2375b174e86b58f71f723964d5a64d96f784367 [file] [log] [blame]
Patrick Venture4bd518d2018-06-12 10:47:15 -07001#pragma once
2
Patrick Venture4bd518d2018-06-12 10:47:15 -07003#include "pid/controller.hpp"
Patrick Venture7a98c192020-08-12 08:35:16 -07004#include "pid/zone_interface.hpp"
Patrick Venture4bd518d2018-06-12 10:47:15 -07005
Patrick Ventureda4a5dd2018-08-31 09:42:48 -07006#include <gmock/gmock.h>
7
Patrick Venturea0764872020-08-08 07:48:43 -07008namespace pid_control
9{
10
Patrick Venture4bd518d2018-06-12 10:47:15 -070011class ControllerMock : public PIDController
12{
Patrick Ventureda4a5dd2018-08-31 09:42:48 -070013 public:
14 virtual ~ControllerMock() = default;
Patrick Venture4bd518d2018-06-12 10:47:15 -070015
Patrick Venture7a98c192020-08-12 08:35:16 -070016 ControllerMock(const std::string& id, ZoneInterface* owner) :
Patrick Ventureda4a5dd2018-08-31 09:42:48 -070017 PIDController(id, owner)
Patrick Venturea83a3ec2020-08-04 09:52:05 -070018 {}
Patrick Venture4bd518d2018-06-12 10:47:15 -070019
Patrick Venture5f59c0f2018-11-11 12:55:14 -080020 MOCK_METHOD0(inputProc, double());
21 MOCK_METHOD0(setptProc, double());
22 MOCK_METHOD1(outputProc, void(double));
Patrick Venture4bd518d2018-06-12 10:47:15 -070023};
Patrick Venturea0764872020-08-08 07:48:43 -070024
25} // namespace pid_control