From df135b5a8bc24af2bd8454dd61f4bf73b72a55b1 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Sat, 15 Sep 2018 07:41:26 +0200 Subject: Removed 'stringProxy' since COW std::string is no longer valid in C++11. --- tests/parser/stringContentHandlerTest.cpp | 31 ------------------------------- 1 file changed, 31 deletions(-) (limited to 'tests/parser/stringContentHandlerTest.cpp') 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 -- cgit v1.2.3