qt,tests: Add asyncDone signal to base class of all tests

* lang/qt/tests/t-support.h (class QGpgMETest): Add signal asyncDone.
* lang/qt/tests/t-changeexpiryjob.cpp,
lang/qt/tests/t-encrypt.cpp,
lang/qt/tests/t-import.cpp,
lang/qt/tests/t-keylist.cpp,
lang/qt/tests/t-keylocate.cpp,
lang/qt/tests/t-ownertrust.cpp,
lang/qt/tests/t-remarks.cpp,
lang/qt/tests/t-tofuinfo.cpp,
lang/qt/tests/t-trustsignatures.cpp,
lang/qt/tests/t-various.cpp,
lang/qt/tests/t-wkdlookup.cpp,
lang/qt/tests/t-wkspublish.cpp: Remove signal asyncDone from the test
classes.
--

This reduces duplication and makes it possible to use the signal in
the base class.

GnuPG-bug-id: 5770
This commit is contained in:
Ingo Klöcker 2022-01-13 11:36:35 +01:00
parent a4dcb17486
commit a54402fc2d
13 changed files with 4 additions and 35 deletions

View File

@ -52,9 +52,6 @@ class TestChangeExpiryJob: public QGpgMETest
{
Q_OBJECT
Q_SIGNALS:
void asyncDone();
private Q_SLOTS:
void test_change_expiration_default_without_subkeys()
{

View File

@ -63,9 +63,6 @@ class EncryptionTest : public QGpgMETest
{
Q_OBJECT
Q_SIGNALS:
void asyncDone();
private Q_SLOTS:
void testSimpleEncryptDecrypt()

View File

@ -58,9 +58,6 @@ class ImportTest : public QGpgMETest
private:
QTemporaryDir tempGpgHome;
Q_SIGNALS:
void asyncDone();
private Q_SLOTS:
void initTestCase()
{

View File

@ -57,9 +57,6 @@ class KeyListTest : public QGpgMETest
{
Q_OBJECT
Q_SIGNALS:
void asyncDone();
private Q_SLOTS:
void testSingleKeyListSync()
{

View File

@ -51,9 +51,6 @@ class KeyLocateTest : public QGpgMETest
{
Q_OBJECT
Q_SIGNALS:
void asyncDone();
private Q_SLOTS:
#ifdef DO_ONLINE_TESTS

View File

@ -51,9 +51,6 @@ class ChangeOwnerTrustTest: public QGpgMETest
{
Q_OBJECT
Q_SIGNALS:
void asyncDone();
private Q_SLOTS:
void testChangeOwnerTrust()

View File

@ -54,9 +54,6 @@ class TestRemarks: public QGpgMETest
{
Q_OBJECT
Q_SIGNALS:
void asyncDone();
public:
// This test is disabled (no slot) because the behavior
// is not clearly defined. Better to prevent that

View File

@ -69,6 +69,10 @@ bool loopbackSupported();
class QGpgMETest : public QObject
{
Q_OBJECT
Q_SIGNALS:
void asyncDone();
protected:
static bool doOnlineTests();

View File

@ -116,8 +116,6 @@ static const char conflictMsg2[] = "-----BEGIN PGP MESSAGE-----\n"
class TofuInfoTest: public QGpgMETest
{
Q_OBJECT
Q_SIGNALS:
void asyncDone();
private:
bool testSupported()

View File

@ -52,9 +52,6 @@ class TestTrustSignatures: public QGpgMETest
{
Q_OBJECT
Q_SIGNALS:
void asyncDone();
private Q_SLOTS:
void test_tsign_single_uid_key_and_then_tsign_it_again()
{

View File

@ -71,9 +71,6 @@ class TestVarious: public QGpgMETest
{
Q_OBJECT
Q_SIGNALS:
void asyncDone();
private Q_SLOTS:
void testDN()
{

View File

@ -70,9 +70,6 @@ class WKDLookupTest : public QGpgMETest
{
Q_OBJECT
Q_SIGNALS:
void asyncDone();
private Q_SLOTS:
void testWKDLookupAsync()

View File

@ -118,9 +118,6 @@ class WKSPublishTest : public QGpgMETest
{
Q_OBJECT
Q_SIGNALS:
void asyncDone();
private Q_SLOTS:
void testUnsupported()
{