summaryrefslogtreecommitdiffstats
path: root/examples/imapresource/tests/imapserverproxytest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/imapresource/tests/imapserverproxytest.cpp')
-rw-r--r--examples/imapresource/tests/imapserverproxytest.cpp29
1 files changed, 1 insertions, 28 deletions
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 @@
7 7
8#include "log.h" 8#include "log.h"
9#include "test.h" 9#include "test.h"
10 10#include "tests/testutils.h"
11#define ASYNCCOMPARE(actual, expected) \
12do {\
13 if (!QTest::qCompare(actual, expected, #actual, #expected, __FILE__, __LINE__))\
14 return KAsync::error<void>(1, "Comparison failed.");\
15} while (0)
16
17#define ASYNCVERIFY(statement) \
18do {\
19 if (!QTest::qVerify((statement), #statement, "", __FILE__, __LINE__))\
20 return KAsync::error<void>(1, "Verify failed.");\
21} while (0)
22
23#define VERIFYEXEC(statement) \
24do {\
25 auto result = statement.exec(); \
26 result.waitForFinished(); \
27 if (!QTest::qVerify(!result.errorCode(), #statement, "", __FILE__, __LINE__))\
28 return;\
29} while (0)
30
31#define VERIFYEXEC_FAIL(statement) \
32do {\
33 auto result = statement.exec(); \
34 result.waitForFinished(); \
35 if (!QTest::qVerify(result.errorCode(), #statement, "", __FILE__, __LINE__))\
36 return;\
37} while (0)
38 11
39using namespace Imap; 12using namespace Imap;
40 13