RoveComm C++ 3.0.0
Welcome to the RoveComm C++ repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of RoveComm C++. The RoveComm C++ project is the RoveComm interface for high level systems and should not be used for microcontrollers.
Loading...
Searching...
No Matches
TestUtils.h
Go to the documentation of this file.
1
10
11#ifndef ROVECOMM_TESTUTILS_H
12#define ROVECOMM_TESTUTILS_H
13
14#include <chrono>
15#include <condition_variable>
16#include <functional>
17#include <gtest/gtest.h>
18#include <iostream>
19#include <thread>
20
21
27namespace testutils
28{
29 // Run a test with a timeout and retries.
30 extern void RunTimedTest(const std::function<void()>& fnTestCode, int nMaxRetries, int nTimeoutMS);
31} // namespace testutils
32
33#endif // ROVECOMM_TESTUTILS_H
The testutils namespace contains utility functions for running tests.
Definition TestUtils.cc:20
void RunTimedTest(const std::function< void()> &fnTestCode, int nMaxRetries, int nTimeoutMS)
Run a test with a timeout and retries.
Definition TestUtils.cc:31