mirror of
https://github.com/QuasarApp/CopyrightFixer.git
synced 2025-04-27 10:14:40 +00:00
33 lines
891 B
C
33 lines
891 B
C
|
//#
|
||
|
//# Copyright (C) 2020-2021 QuasarApp.
|
||
|
//# Distributed under the lgplv3 software license, see the accompanying
|
||
|
//# Everyone is permitted to copy and distribute verbatim copies
|
||
|
//# of this license document, but changing it is not allowed.
|
||
|
//#
|
||
|
|
||
|
|
||
|
#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
|