blob: 94c7cb50c4892d98c0a8409a0a7367f761c7626f [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 Venture5f59c0f2018-11-11 12:55:14 -080017 MOCK_METHOD0(inputProc, double());
18 MOCK_METHOD0(setptProc, double());
19 MOCK_METHOD1(outputProc, void(double));
Patrick Venture4bd518d2018-06-12 10:47:15 -070020};