diff options
Diffstat (limited to 'examples/imapresource/tests/imapserverproxytest.cpp')
-rw-r--r-- | examples/imapresource/tests/imapserverproxytest.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/imapresource/tests/imapserverproxytest.cpp b/examples/imapresource/tests/imapserverproxytest.cpp index d13a937..139597a 100644 --- a/examples/imapresource/tests/imapserverproxytest.cpp +++ b/examples/imapresource/tests/imapserverproxytest.cpp | |||
@@ -36,6 +36,8 @@ do {\ | |||
36 | return;\ | 36 | return;\ |
37 | } while (0) | 37 | } while (0) |
38 | 38 | ||
39 | using namespace Imap; | ||
40 | |||
39 | /** | 41 | /** |
40 | */ | 42 | */ |
41 | class ImapServerProxyTest : public QObject | 43 | class ImapServerProxyTest : public QObject |
@@ -77,7 +79,7 @@ private slots: | |||
77 | void testFetchFolders() | 79 | void testFetchFolders() |
78 | { | 80 | { |
79 | ImapServerProxy imap("localhost", 993); | 81 | ImapServerProxy imap("localhost", 993); |
80 | auto future = imap.fetchFolders([](const QStringList &){}); | 82 | auto future = imap.fetchFolders([](const QVector<Folder> &){}); |
81 | future.waitForFinished(); | 83 | future.waitForFinished(); |
82 | QVERIFY(!future.errorCode()); | 84 | QVERIFY(!future.errorCode()); |
83 | } | 85 | } |
@@ -85,7 +87,7 @@ private slots: | |||
85 | void testFetchFoldersFailure() | 87 | void testFetchFoldersFailure() |
86 | { | 88 | { |
87 | ImapServerProxy imap("foobar", 993); | 89 | ImapServerProxy imap("foobar", 993); |
88 | auto future = imap.fetchFolders([](const QStringList &){}); | 90 | auto future = imap.fetchFolders([](const QVector<Folder> &){}); |
89 | auto future2 = future; | 91 | auto future2 = future; |
90 | future2.waitForFinished(); | 92 | future2.waitForFinished(); |
91 | QVERIFY(future2.errorCode()); | 93 | QVERIFY(future2.errorCode()); |