mirror of
https://github.com/QuasarApp/Credits.git
synced 2025-04-29 19:24:39 +00:00
25 lines
643 B
C
25 lines
643 B
C
|
#ifndef TESTUTILS_H
|
||
|
#define TESTUTILS_H
|
||
|
|
||
|
#include "functional"
|
||
|
#include <QMetaObject>
|
||
|
|
||
|
class TestUtils
|
||
|
{
|
||
|
public:
|
||
|
TestUtils();
|
||
|
virtual ~TestUtils();
|
||
|
bool wait(const std::function<bool()> &forWait, int msec) const;
|
||
|
|
||
|
|
||
|
bool funcPrivateConnect(const std::function<bool ()> &requestFunc,
|
||
|
const std::function<bool ()> &checkFunc,
|
||
|
const std::function<QMetaObject::Connection ()> &connectFunction) const;
|
||
|
|
||
|
bool funcPrivateConnect(const std::function<bool ()> &requestFunc,
|
||
|
const std::function<bool ()> &checkFunc) const;
|
||
|
|
||
|
};
|
||
|
|
||
|
#endif // TESTUTILS_H
|