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:
parent
a4dcb17486
commit
a54402fc2d
@ -52,9 +52,6 @@ class TestChangeExpiryJob: public QGpgMETest
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
Q_SIGNALS:
|
|
||||||
void asyncDone();
|
|
||||||
|
|
||||||
private Q_SLOTS:
|
private Q_SLOTS:
|
||||||
void test_change_expiration_default_without_subkeys()
|
void test_change_expiration_default_without_subkeys()
|
||||||
{
|
{
|
||||||
|
@ -63,9 +63,6 @@ class EncryptionTest : public QGpgMETest
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
Q_SIGNALS:
|
|
||||||
void asyncDone();
|
|
||||||
|
|
||||||
private Q_SLOTS:
|
private Q_SLOTS:
|
||||||
|
|
||||||
void testSimpleEncryptDecrypt()
|
void testSimpleEncryptDecrypt()
|
||||||
|
@ -58,9 +58,6 @@ class ImportTest : public QGpgMETest
|
|||||||
private:
|
private:
|
||||||
QTemporaryDir tempGpgHome;
|
QTemporaryDir tempGpgHome;
|
||||||
|
|
||||||
Q_SIGNALS:
|
|
||||||
void asyncDone();
|
|
||||||
|
|
||||||
private Q_SLOTS:
|
private Q_SLOTS:
|
||||||
void initTestCase()
|
void initTestCase()
|
||||||
{
|
{
|
||||||
|
@ -57,9 +57,6 @@ class KeyListTest : public QGpgMETest
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
Q_SIGNALS:
|
|
||||||
void asyncDone();
|
|
||||||
|
|
||||||
private Q_SLOTS:
|
private Q_SLOTS:
|
||||||
void testSingleKeyListSync()
|
void testSingleKeyListSync()
|
||||||
{
|
{
|
||||||
|
@ -51,9 +51,6 @@ class KeyLocateTest : public QGpgMETest
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
Q_SIGNALS:
|
|
||||||
void asyncDone();
|
|
||||||
|
|
||||||
private Q_SLOTS:
|
private Q_SLOTS:
|
||||||
|
|
||||||
#ifdef DO_ONLINE_TESTS
|
#ifdef DO_ONLINE_TESTS
|
||||||
|
@ -51,9 +51,6 @@ class ChangeOwnerTrustTest: public QGpgMETest
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
Q_SIGNALS:
|
|
||||||
void asyncDone();
|
|
||||||
|
|
||||||
private Q_SLOTS:
|
private Q_SLOTS:
|
||||||
|
|
||||||
void testChangeOwnerTrust()
|
void testChangeOwnerTrust()
|
||||||
|
@ -54,9 +54,6 @@ class TestRemarks: public QGpgMETest
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
Q_SIGNALS:
|
|
||||||
void asyncDone();
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// This test is disabled (no slot) because the behavior
|
// This test is disabled (no slot) because the behavior
|
||||||
// is not clearly defined. Better to prevent that
|
// is not clearly defined. Better to prevent that
|
||||||
|
@ -69,6 +69,10 @@ bool loopbackSupported();
|
|||||||
class QGpgMETest : public QObject
|
class QGpgMETest : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
|
Q_SIGNALS:
|
||||||
|
void asyncDone();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
static bool doOnlineTests();
|
static bool doOnlineTests();
|
||||||
|
|
||||||
|
@ -116,8 +116,6 @@ static const char conflictMsg2[] = "-----BEGIN PGP MESSAGE-----\n"
|
|||||||
class TofuInfoTest: public QGpgMETest
|
class TofuInfoTest: public QGpgMETest
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
Q_SIGNALS:
|
|
||||||
void asyncDone();
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool testSupported()
|
bool testSupported()
|
||||||
|
@ -52,9 +52,6 @@ class TestTrustSignatures: public QGpgMETest
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
Q_SIGNALS:
|
|
||||||
void asyncDone();
|
|
||||||
|
|
||||||
private Q_SLOTS:
|
private Q_SLOTS:
|
||||||
void test_tsign_single_uid_key_and_then_tsign_it_again()
|
void test_tsign_single_uid_key_and_then_tsign_it_again()
|
||||||
{
|
{
|
||||||
|
@ -71,9 +71,6 @@ class TestVarious: public QGpgMETest
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
Q_SIGNALS:
|
|
||||||
void asyncDone();
|
|
||||||
|
|
||||||
private Q_SLOTS:
|
private Q_SLOTS:
|
||||||
void testDN()
|
void testDN()
|
||||||
{
|
{
|
||||||
|
@ -70,9 +70,6 @@ class WKDLookupTest : public QGpgMETest
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
Q_SIGNALS:
|
|
||||||
void asyncDone();
|
|
||||||
|
|
||||||
private Q_SLOTS:
|
private Q_SLOTS:
|
||||||
|
|
||||||
void testWKDLookupAsync()
|
void testWKDLookupAsync()
|
||||||
|
@ -118,9 +118,6 @@ class WKSPublishTest : public QGpgMETest
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
Q_SIGNALS:
|
|
||||||
void asyncDone();
|
|
||||||
|
|
||||||
private Q_SLOTS:
|
private Q_SLOTS:
|
||||||
void testUnsupported()
|
void testUnsupported()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user