blob: 38d0446b7ceca1053de3c5af55651d88f08fdb10 [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)
14 {
15 }
Patrick Venture4bd518d2018-06-12 10:47:15 -070016
Patrick Ventureda4a5dd2018-08-31 09:42:48 -070017 MOCK_METHOD0(input_proc, float());
18 MOCK_METHOD0(setpt_proc, float());
19 MOCK_METHOD1(output_proc, void(float));
Patrick Venture4bd518d2018-06-12 10:47:15 -070020};