mirror of
https://github.com/QuasarApp/CMakeProject.git
synced 2025-04-27 06:04:33 +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
|