SecretService 0.13.2d47dfe
SecretService is base back end library for your c++ Qt projects.
testutils.h
Go to the documentation of this file.
1//#
2//# Copyright (C) 2024-2024 QuasarApp.
3//# Distributed under the GPLv3 software license, see the accompanying
4//# Everyone is permitted to copy and distribute verbatim copies
5//# of this license document, but changing it is not allowed.
6//#
7
8
9#ifndef TESTUTILS_H
10#define TESTUTILS_H
11
12#include "functional"
13#include <QMetaObject>
14#include "testcore/global.h"
15
16namespace testcore {
17
19{
20public:
21 TestUtils();
22 virtual ~TestUtils();
23 bool wait(const std::function<bool()> &forWait, int msec) const;
24
25
26 bool funcPrivateConnect(const std::function<bool ()> &requestFunc,
27 const std::function<bool ()> &checkFunc,
28 const std::function<QMetaObject::Connection ()> &connectFunction) const;
29
30 bool funcPrivateConnect(const std::function<bool ()> &requestFunc,
31 const std::function<bool ()> &checkFunc) const;
32
33};
34}
35#endif // TESTUTILS_H
#define TEST_CORE_EXPORT
Definition global.h:16