diff options
author | Vincent Richard <[email protected]> | 2018-09-15 05:41:26 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2018-09-15 05:41:26 +0000 |
commit | df135b5a8bc24af2bd8454dd61f4bf73b72a55b1 (patch) | |
tree | b07124f50d2bf84cb836eeb737326dce52d5f24c /tests/parser/stringContentHandlerTest.cpp | |
parent | Merge pull request #183 from josusky/master (diff) | |
download | vmime-df135b5a8bc24af2bd8454dd61f4bf73b72a55b1.tar.gz vmime-df135b5a8bc24af2bd8454dd61f4bf73b72a55b1.zip |
Removed 'stringProxy' since COW std::string is no longer valid in C++11.
Diffstat (limited to 'tests/parser/stringContentHandlerTest.cpp')
-rw-r--r-- | tests/parser/stringContentHandlerTest.cpp | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/tests/parser/stringContentHandlerTest.cpp b/tests/parser/stringContentHandlerTest.cpp index 0f886f76..c8563012 100644 --- a/tests/parser/stringContentHandlerTest.cpp +++ b/tests/parser/stringContentHandlerTest.cpp @@ -38,7 +38,6 @@ VMIME_TEST_SUITE_BEGIN(stringContentHandlerTest) VMIME_TEST(testExtractRaw_Encoded) VMIME_TEST(testGenerate) VMIME_TEST(testGenerate_Encoded) - VMIME_TEST(testStringProxy) VMIME_TEST_LIST_END @@ -163,34 +162,4 @@ VMIME_TEST_SUITE_BEGIN(stringContentHandlerTest) VASSERT_EQ("generate", "Zm9vEjRWYmFy", oss.str()); } - void testStringProxy() { - - // With 'stringProxy' object - vmime::utility::stringProxy str("This is the data buffer", 12, 12 + 4); - vmime::stringContentHandler cth(str); - - VASSERT_FALSE("empty", cth.isEmpty()); - VASSERT_EQ("length", 4, cth.getLength()); - - std::ostringstream oss; - vmime::utility::outputStreamAdapter osa(oss); - - cth.extract(osa); - - VASSERT_EQ("extract", "data", oss.str()); - - // Directly with constructor - vmime::stringContentHandler cth2("This is the data buffer", 12, 12 + 4); - - VASSERT_FALSE("empty", cth2.isEmpty()); - VASSERT_EQ("length", 4, cth2.getLength()); - - std::ostringstream oss2; - vmime::utility::outputStreamAdapter osa2(oss2); - - cth2.extract(osa2); - - VASSERT_EQ("extract", "data", oss2.str()); - } - VMIME_TEST_SUITE_END |