Robobo
FreeRTOSMock.h
1 #ifndef FREERTOSMOCK_INCLUDED
2 #define FREERTOSMOCK_INCLUDED
3 #include "gmock/gmock.h"
4 #include <iostream>
5 #include "Arduino_FreeRTOS.h"
6 #include "timers.h"
7 using namespace std;
8 
10 {
11  public:
12  FreeRTOSMock()
13  {
14  }
15 
16  virtual ~FreeRTOSMock(){}
17  MOCK_METHOD5(xTimerCreate,
18  TimerHandle_t
19  ( const char * const,
20  const TickType_t,
21  const UBaseType_t,
22  void * const , TimerCallbackFunction_t) );
23 
24  MOCK_METHOD1(pvTimerGetTimerID, void *(const TimerHandle_t xTimer));
25 
26  MOCK_METHOD5(xTimerGenericCommand, BaseType_t (TimerHandle_t ,
27  const BaseType_t ,
28  const TickType_t ,
29  BaseType_t * const ,
30  const TickType_t ) );
31 
32  MOCK_METHOD0 (xTaskGetTickCount, TickType_t ());
33 };
34 
35 #endif
Definition: FreeRTOSMock.h:9