Robobo
ArduinoMock.h
1 #ifndef ARDUINOMOCK_INCLUDED
2 #define ARDUINOMOCK_INCLUDED
3 
4 #include "gmock/gmock.h"
5 #include <string>
6 
8 {
9  public:
10  virtual ~ArduinoMock(){}
11  MOCK_METHOD1(digitalRead, uint8_t (uint8_t pin) );
12  MOCK_METHOD2(digitalWrite, void (uint8_t pin, uint8_t val) );
13  MOCK_METHOD2(analogWrite, void (uint8_t pin, int val) );
14  MOCK_METHOD0(micros, uint32_t ( void ));
15 };
16 
18 {
19  public:
20  virtual ~ArduinoSerialMock(){}
21  MOCK_METHOD1(println, size_t (int) );
22  MOCK_METHOD1(println, size_t (std::string) );
23  MOCK_METHOD1(print, size_t (int) );
24  MOCK_METHOD1(print, size_t (std::string) );
25 };
26 
27 #endif
Definition: ArduinoMock.h:17
Definition: ArduinoMock.h:7