diff options
| author | Vincent Richard <[email protected]> | 2018-09-07 20:32:51 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-09-07 20:32:51 +0200 |
| commit | 71968d978daea9beffdc22522e8e9a29d52c3e9e (patch) | |
| tree | 48854151c452290f9e174765da3320ea845d5c50 /tests/parser/messageTest.cpp | |
| parent | Add SMTPS with AUTH PLAIN without SASL (diff) | |
| parent | Useless mutex does not make nl_langinfo() thread-safe. (diff) | |
| download | vmime-71968d978daea9beffdc22522e8e9a29d52c3e9e.tar.gz vmime-71968d978daea9beffdc22522e8e9a29d52c3e9e.zip | |
Merge branch 'master' into master
Diffstat (limited to 'tests/parser/messageTest.cpp')
| -rw-r--r-- | tests/parser/messageTest.cpp | 19 |
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 - |
