summaryrefslogtreecommitdiffstats
path: root/examples/imapresource/tests/imapserverproxytest.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-07-11 11:55:29 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-07-11 11:55:29 +0200
commit3a3118e768e1447dc7524328e84b8d7faef81fe1 (patch)
treeaf5582170ed6164fffc9365f34b17bf449c0db40 /examples/imapresource/tests/imapserverproxytest.cpp
parentf9379318d801df204cc50385c5eca1f28e91755e (diff)
parentce2fd2666f084eebe443598f6f3740a02913091e (diff)
downloadsink-3a3118e768e1447dc7524328e84b8d7faef81fe1.tar.gz
sink-3a3118e768e1447dc7524328e84b8d7faef81fe1.zip
Merge branch 'feature/notifications' into develop
Diffstat (limited to 'examples/imapresource/tests/imapserverproxytest.cpp')
-rw-r--r--examples/imapresource/tests/imapserverproxytest.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/examples/imapresource/tests/imapserverproxytest.cpp b/examples/imapresource/tests/imapserverproxytest.cpp
index e32298c..ef695b3 100644
--- a/examples/imapresource/tests/imapserverproxytest.cpp
+++ b/examples/imapresource/tests/imapserverproxytest.cpp
@@ -2,6 +2,7 @@
2 2
3#include <QString> 3#include <QString>
4#include <KMime/Message> 4#include <KMime/Message>
5#include <QTcpSocket>
5 6
6#include "../imapserverproxy.h" 7#include "../imapserverproxy.h"
7 8
@@ -11,6 +12,8 @@
11 12
12using namespace Imap; 13using namespace Imap;
13 14
15SINK_DEBUG_AREA("imapserverproxytest")
16
14/** 17/**
15 */ 18 */
16class ImapServerProxyTest : public QObject 19class ImapServerProxyTest : public QObject
@@ -22,7 +25,9 @@ class ImapServerProxyTest : public QObject
22private slots: 25private slots:
23 void initTestCase() 26 void initTestCase()
24 { 27 {
25 Sink::Log::setDebugOutputLevel(Sink::Log::Trace); 28 QTcpSocket socket;
29 socket.connectToHost("localhost", 993);
30 QVERIFY(socket.waitForConnected(200));
26 system("resetmailbox.sh"); 31 system("resetmailbox.sh");
27 } 32 }
28 33
@@ -77,8 +82,8 @@ private slots:
77 const QMap<qint64,KIMAP::MessageAttribute> &attrs, 82 const QMap<qint64,KIMAP::MessageAttribute> &attrs,
78 const QMap<qint64,KIMAP::MessageFlags> &flags, 83 const QMap<qint64,KIMAP::MessageFlags> &flags,
79 const QMap<qint64,KIMAP::MessagePtr> &messages) { 84 const QMap<qint64,KIMAP::MessagePtr> &messages) {
80 Trace() << "Received " << uids.size() << " messages from " << mailbox; 85 SinkTrace() << "Received " << uids.size() << " messages from " << mailbox;
81 Trace() << uids.size() << sizes.size() << attrs.size() << flags.size() << messages.size(); 86 SinkTrace() << uids.size() << sizes.size() << attrs.size() << flags.size() << messages.size();
82 count += uids.size(); 87 count += uids.size();
83 })); 88 }));
84 89
@@ -102,8 +107,8 @@ private slots:
102 const QMap<qint64,KIMAP::MessageAttribute> &attrs, 107 const QMap<qint64,KIMAP::MessageAttribute> &attrs,
103 const QMap<qint64,KIMAP::MessageFlags> &flags, 108 const QMap<qint64,KIMAP::MessageFlags> &flags,
104 const QMap<qint64,KIMAP::MessagePtr> &messages) { 109 const QMap<qint64,KIMAP::MessagePtr> &messages) {
105 Trace() << "Received " << uids.size() << " messages from " << mailbox; 110 SinkTrace() << "Received " << uids.size() << " messages from " << mailbox;
106 Trace() << uids.size() << sizes.size() << attrs.size() << flags.size() << messages.size(); 111 SinkTrace() << uids.size() << sizes.size() << attrs.size() << flags.size() << messages.size();
107 count += uids.size(); 112 count += uids.size();
108 })); 113 }));
109 114