From 964f0003584a0b745045db75ca6184f54eddd859 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sun, 4 Jun 2017 15:21:05 +0200 Subject: Rely on isAttachment to collect attachments --- .../src/domain/mime/mimetreeparser/autotests/attachmenttest.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'framework/src/domain/mime/mimetreeparser/autotests/attachmenttest.cpp') diff --git a/framework/src/domain/mime/mimetreeparser/autotests/attachmenttest.cpp b/framework/src/domain/mime/mimetreeparser/autotests/attachmenttest.cpp index 47b5cbce..789c9049 100644 --- a/framework/src/domain/mime/mimetreeparser/autotests/attachmenttest.cpp +++ b/framework/src/domain/mime/mimetreeparser/autotests/attachmenttest.cpp @@ -22,6 +22,7 @@ #include "setupenv.h" #include +#include using namespace MimeTreeParser; @@ -58,10 +59,10 @@ void AttachmentTest::testEncryptedAttachment() ObjectTreeParser otp(&nodeHelper); otp.parseObjectTree(msg.data()); otp.decryptParts(); + otp.print(); - auto attachments = msg->attachments(); - auto encAtts = nodeHelper.attachmentsOfExtraContents(); - QCOMPARE(attachments.size() + encAtts.size(), 2); + auto attachmentParts = otp.collectAttachmentParts(); + QCOMPARE(attachmentParts.size(), 2); } #include "attachmenttest.moc" -- cgit v1.2.3