ifw-daq
3.0.0-pre2
IFW Data Acquisition modules
|
Defines shared test utilities. More...
#include <thread>
#include <chrono>
#include <boost/asio/io_context.hpp>
#include <gtest/gtest.h>
Go to the source code of this file.
Functions | |
template<class Predicate > | |
void | MakeTestProgressUntil (boost::asio::io_context &io_ctx, Predicate &&pred, std::chrono::milliseconds timeout=std::chrono::seconds(3)) |
Executes io_ctx::poll until pred returns true or it times out. More... | |
template<class Future = void> | |
void | MakeTestProgress (boost::asio::io_context &io_ctx, Future *fut=nullptr) |
Test helper that progress the test by executing pending jobs and optionally wait for a future to be ready. More... | |
Defines shared test utilities.
Definition in file utils.hpp.