aboutsummaryrefslogtreecommitdiffstats
path: root/tests/parser/messageTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/parser/messageTest.cpp')
-rw-r--r--tests/parser/messageTest.cpp19
1 files changed, 13 insertions, 6 deletions
diff --git a/tests/parser/messageTest.cpp b/tests/parser/messageTest.cpp
index 3891b47e..b89d63e5 100644
--- a/tests/parser/messageTest.cpp
+++ b/tests/parser/messageTest.cpp
@@ -1,6 +1,6 @@
//
// VMime library (http://www.vmime.org)
-// Copyright (C) 2002-2013 Vincent Richard <[email protected]>
+// Copyright (C) 2002 Vincent Richard <[email protected]>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License as
@@ -31,16 +31,24 @@ VMIME_TEST_SUITE_BEGIN(messageTest)
VMIME_TEST_LIST_END
- void testGetGeneratedSize()
- {
+ void testGetGeneratedSize() {
+
vmime::generationContext ctx;
vmime::shared_ptr <vmime::message> msg = vmime::make_shared <vmime::message>();
msg->getHeader()->getField("Foo")->setValue(vmime::string("bar"));
vmime::htmlTextPart textPart;
- textPart.setPlainText(vmime::make_shared <vmime::stringContentHandler>("Foo bar bazé foo foo foo"));
- textPart.setText(vmime::make_shared <vmime::stringContentHandler>("Foo bar <strong>bazé</strong> foo foo foo"));
+ textPart.setPlainText(
+ vmime::make_shared <vmime::stringContentHandler>(
+ "Foo bar bazé foo foo foo"
+ )
+ );
+ textPart.setText(
+ vmime::make_shared <vmime::stringContentHandler>(
+ "Foo bar <strong>bazé</strong> foo foo foo"
+ )
+ );
textPart.generateIn(msg, msg);
// Estimated/computed generated size must be greater than the actual generated size
@@ -54,4 +62,3 @@ VMIME_TEST_SUITE_BEGIN(messageTest)
}
VMIME_TEST_SUITE_END
-