blob: f1c9d565da2738637bd58bcc4f1a679ce0945531 [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"
4
Patrick Ventureda4a5dd2018-08-31 09:42:48 -07005#include <gmock/gmock.h>
6
Patrick Venturea0764872020-08-08 07:48:43 -07007namespace pid_control
8{
9
Patrick Venture4bd518d2018-06-12 10:47:15 -070010class ControllerMock : public PIDController
11{
Patrick Ventureda4a5dd2018-08-31 09:42:48 -070012 public:
13 virtual ~ControllerMock() = default;
Patrick Venture4bd518d2018-06-12 10:47:15 -070014
Patrick Ventureda4a5dd2018-08-31 09:42:48 -070015 ControllerMock(const std::string& id, PIDZone* owner) :
16 PIDController(id, owner)
Patrick Venturea83a3ec2020-08-04 09:52:05 -070017 {}
Patrick Venture4bd518d2018-06-12 10:47:15 -070018
Patrick Venture5f59c0f2018-11-11 12:55:14 -080019 MOCK_METHOD0(inputProc, double());
20 MOCK_METHOD0(setptProc, double());
21 MOCK_METHOD1(outputProc, void(double));
Patrick Venture4bd518d2018-06-12 10:47:15 -070022};
Patrick Venturea0764872020-08-08 07:48:43 -070023
24} // namespace pid_control