ifw-daq
2.1.0-pre1
IFW Data Acquisition modules
|
Defines shared test progress utilities. More...
#include <thread>
#include <chrono>
#include <boost/chrono.hpp>
#include <boost/asio/io_context.hpp>
#include <gtest/gtest.h>
Go to the source code of this file.
Namespaces | |
daq | |
daq::test | |
Functions | |
template<class Predicate > | |
void | daq::test::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 | daq::test::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 progress utilities.
Definition in file progress.hpp.