From 3ae86373f2238bcd771392f329b52d7b8923d003 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 16 Jun 2016 22:17:54 +0200 Subject: Central place for test macros --- .../imapresource/tests/imapserverproxytest.cpp | 29 +--------------------- 1 file changed, 1 insertion(+), 28 deletions(-) (limited to 'examples/imapresource/tests/imapserverproxytest.cpp') diff --git a/examples/imapresource/tests/imapserverproxytest.cpp b/examples/imapresource/tests/imapserverproxytest.cpp index 3761dac..e32298c 100644 --- a/examples/imapresource/tests/imapserverproxytest.cpp +++ b/examples/imapresource/tests/imapserverproxytest.cpp @@ -7,34 +7,7 @@ #include "log.h" #include "test.h" - -#define ASYNCCOMPARE(actual, expected) \ -do {\ - if (!QTest::qCompare(actual, expected, #actual, #expected, __FILE__, __LINE__))\ - return KAsync::error(1, "Comparison failed.");\ -} while (0) - -#define ASYNCVERIFY(statement) \ -do {\ - if (!QTest::qVerify((statement), #statement, "", __FILE__, __LINE__))\ - return KAsync::error(1, "Verify failed.");\ -} while (0) - -#define VERIFYEXEC(statement) \ -do {\ - auto result = statement.exec(); \ - result.waitForFinished(); \ - if (!QTest::qVerify(!result.errorCode(), #statement, "", __FILE__, __LINE__))\ - return;\ -} while (0) - -#define VERIFYEXEC_FAIL(statement) \ -do {\ - auto result = statement.exec(); \ - result.waitForFinished(); \ - if (!QTest::qVerify(result.errorCode(), #statement, "", __FILE__, __LINE__))\ - return;\ -} while (0) +#include "tests/testutils.h" using namespace Imap; -- cgit v1.2.3