diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-31 15:11:54 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-31 15:11:54 +0200 |
commit | 2061ba0cf16b6a0a3313f861f79b90cf2905efce (patch) | |
tree | c0e28aa0ff2271140bb58d6a0f1b51c9fc28a103 /tests/mailsynctest.h | |
parent | 4798de83c9f198bfc0a802a987c9002968fb6c2c (diff) | |
download | sink-2061ba0cf16b6a0a3313f861f79b90cf2905efce.tar.gz sink-2061ba0cf16b6a0a3313f861f79b90cf2905efce.zip |
The maildir resource passes the maildirmailsync test
Diffstat (limited to 'tests/mailsynctest.h')
-rw-r--r-- | tests/mailsynctest.h | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/tests/mailsynctest.h b/tests/mailsynctest.h index f9ee7be..b0fda7c 100644 --- a/tests/mailsynctest.h +++ b/tests/mailsynctest.h | |||
@@ -45,6 +45,13 @@ do {\ | |||
45 | 45 | ||
46 | namespace Sink { | 46 | namespace Sink { |
47 | 47 | ||
48 | /** | ||
49 | * Tests if the resource can synchronize (read-only) emails. | ||
50 | * | ||
51 | * The default testenvironment is: | ||
52 | * * INBOX | ||
53 | * * INBOX.test | ||
54 | */ | ||
48 | class MailSyncTest : public QObject | 55 | class MailSyncTest : public QObject |
49 | { | 56 | { |
50 | Q_OBJECT | 57 | Q_OBJECT |
@@ -59,8 +66,8 @@ protected: | |||
59 | virtual void removeResourceFromDisk(const QByteArray &mResourceInstanceIdentifier) = 0; | 66 | virtual void removeResourceFromDisk(const QByteArray &mResourceInstanceIdentifier) = 0; |
60 | virtual void createFolder(const QStringList &folderPath) = 0; | 67 | virtual void createFolder(const QStringList &folderPath) = 0; |
61 | virtual void removeFolder(const QStringList &folderPath) = 0; | 68 | virtual void removeFolder(const QStringList &folderPath) = 0; |
62 | virtual void createMessage(const QStringList &folderPath, const QByteArray &message) = 0; | 69 | virtual QByteArray createMessage(const QStringList &folderPath, const QByteArray &message) = 0; |
63 | virtual void removeMessage(const QStringList &folderPath, const QByteArray &message) = 0; | 70 | virtual void removeMessage(const QStringList &folderPath, const QByteArray &messageIdentifier) = 0; |
64 | 71 | ||
65 | private slots: | 72 | private slots: |
66 | void initTestCase(); | 73 | void initTestCase(); |
@@ -68,13 +75,14 @@ private slots: | |||
68 | void cleanup(); | 75 | void cleanup(); |
69 | 76 | ||
70 | void testListFolders(); | 77 | void testListFolders(); |
78 | void testListNewFolder(); | ||
79 | void testListRemovedFolder(); | ||
71 | void testListFolderHierarchy(); | 80 | void testListFolderHierarchy(); |
72 | void testListNewFolders(); | 81 | void testListNewSubFolder(); |
73 | void testListRemovedFolders(); | 82 | void testListRemovedSubFolder(); |
74 | 83 | ||
75 | void testListMails(); | 84 | void testListMails(); |
76 | void testFetchNewMessages(); | 85 | void testFetchNewRemovedMessages(); |
77 | void testFetchRemovedMessages(); | ||
78 | 86 | ||
79 | void testFailingSync(); | 87 | void testFailingSync(); |
80 | }; | 88 | }; |