Skip to content

Commit

Permalink
(#679) added dummy test functions for timer
Browse files Browse the repository at this point in the history
  • Loading branch information
knmcguire committed Feb 4, 2021
1 parent 99f8bf0 commit 6b4cb3a
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion test/modules/src/lighthouse/test_lighthouse_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,26 @@ lighthouseBaseStationType_t identifyBaseStationType(const lighthouseUartFrame_t*
void initializeGeoDataFromStorage();
initializeCalibDataFromStorage();

// Dummy mocks
// Dummy mocks timer
uint32_t xTaskGetTickCount() {return 0;}
void vTaskDelay(const uint32_t ignore) {}
struct tmrTimerControl;
typedef struct tmrTimerControl * TimerHandle_t;
int timerBuffer;
int timer;
void xTimerStart(int ignore, uint32_t ignore1 ) {}
int xTimerCreateStatic( const char * const pcTimerName,
uint32_t xTimerPeriodInTicks,
const unsigned long uxAutoReload,
void * const pvTimerID,
int ignore1,
int ignore2) {return 0;}
short xTimerGenericCommand( TimerHandle_t xTimer,
const short xCommandID,
const uint32_t xOptionalValue,
short * const pxHigherPriorityTaskWoken,
const uint32_t xTicksToWait ) {return 0;}


static int nrOfCallsToStorageFetchForCalib = 0;
static size_t mockStorageFetchForCalib(char* key, void* buffer, size_t length, int cmock_num_calls);
Expand Down

0 comments on commit 6b4cb3a

Please sign in to comment.