diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-22 15:27:52 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-22 15:27:52 +0200 |
commit | f38554ad4c7ff918bf7792413e6599e69d30cf3a (patch) | |
tree | 8f971c3c5349166e6f2b488c7983bc868627e524 /examples/imapresource/tests/imapserverproxytest.cpp | |
parent | 1613964dd195a21eb7ff28699b76db8d41fb8408 (diff) | |
download | sink-f38554ad4c7ff918bf7792413e6599e69d30cf3a.tar.gz sink-f38554ad4c7ff918bf7792413e6599e69d30cf3a.zip |
Support for folder hierarchies
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()); |