40 void CTestWorker::singleShot()
43 CEventLoop::processEventsFor(0);
44 QVERIFY2(future.
isFinished(),
"Future is finished after slot has returned");
45 QVERIFY2(future.
result() == 123,
"Future provides access to slot's return value");
53#include "testworker.moc"
Aviation classes basic tests.
CTestWorker(QObject *parent=nullptr)
Standard test case constructor.
Free functions in swift::misc.
auto singleShot(int msec, QObject *target, F &&task)
Starts a single-shot timer which will call a task in the thread of the given object when it times out...
bool isFinished() const const
QObject * parent() const const
#define SWIFTTEST_APPLESS_MAIN(TestObject)
Implements a main() function that executes all tests in TestObject without instantiating a QApplicati...