blob: 52c21a90a9e41b97a4caa04a2de20d22f7ebc08b [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 Venture4bd518d2018-06-12 10:47:15 -07007class ControllerMock : public PIDController
8{
Patrick Ventureda4a5dd2018-08-31 09:42:48 -07009 public:
10 virtual ~ControllerMock() = default;
Patrick Venture4bd518d2018-06-12 10:47:15 -070011
Patrick Ventureda4a5dd2018-08-31 09:42:48 -070012 ControllerMock(const std::string& id, PIDZone* owner) :
13 PIDController(id, owner)
Patrick Venturea83a3ec2020-08-04 09:52:05 -070014 {}
Patrick Venture4bd518d2018-06-12 10:47:15 -070015
Patrick Venture5f59c0f2018-11-11 12:55:14 -080016 MOCK_METHOD0(inputProc, double());
17 MOCK_METHOD0(setptProc, double());
18 MOCK_METHOD1(outputProc, void(double));
Patrick Venture4bd518d2018-06-12 10:47:15 -070019};