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/utility/outputStreamSocketAdapterTest.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/utility/outputStreamSocketAdapterTest.cpp')
| -rw-r--r-- | tests/utility/outputStreamSocketAdapterTest.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/tests/utility/outputStreamSocketAdapterTest.cpp b/tests/utility/outputStreamSocketAdapterTest.cpp index 4920a75c..a869ed74 100644 --- a/tests/utility/outputStreamSocketAdapterTest.cpp +++ b/tests/utility/outputStreamSocketAdapterTest.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 @@ -35,8 +35,8 @@ VMIME_TEST_SUITE_BEGIN(outputStreamSocketAdapterTest) VMIME_TEST_LIST_END - void testWrite() - { + void testWrite() { + vmime::shared_ptr <testSocket> socket = vmime::make_shared <testSocket>(); vmime::utility::outputStreamSocketAdapter stream(*socket); @@ -49,8 +49,8 @@ VMIME_TEST_SUITE_BEGIN(outputStreamSocketAdapterTest) VASSERT_EQ("Write", "some data", buffer); } - void testWriteBinary() - { + void testWriteBinary() { + const char binaryData[] = "\xc5\x9a\xc3\xb8\xc9\xb1\xc9\x9b\x20\xc9\x93\xc9\xa8\xc9\xb2\xc9" "\x91\xc5\x95\xc9\xa3\x20\xc9\x96\xc9\x90\xca\x88\xc9\x92"; @@ -67,8 +67,8 @@ VMIME_TEST_SUITE_BEGIN(outputStreamSocketAdapterTest) VASSERT_EQ("Write", 0, memcmp(binaryData, buffer.data(), sizeof(binaryData))); } - void testWriteCRLF() - { + void testWriteCRLF() { + vmime::shared_ptr <testSocket> socket = vmime::make_shared <testSocket>(); vmime::utility::outputStreamSocketAdapter stream(*socket); @@ -85,4 +85,3 @@ VMIME_TEST_SUITE_BEGIN(outputStreamSocketAdapterTest) } VMIME_TEST_SUITE_END - |
