From f9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Thu, 21 Nov 2013 22:16:57 +0100 Subject: Boost/C++11 shared pointers. --- tests/parser/streamContentHandlerTest.cpp | 36 +++++++++++++++---------------- 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'tests/parser/streamContentHandlerTest.cpp') diff --git a/tests/parser/streamContentHandlerTest.cpp b/tests/parser/streamContentHandlerTest.cpp index 75b3d4d4..55680c93 100644 --- a/tests/parser/streamContentHandlerTest.cpp +++ b/tests/parser/streamContentHandlerTest.cpp @@ -51,8 +51,8 @@ VMIME_TEST_SUITE_BEGIN(streamContentHandlerTest) void testGetLength() { vmime::string data("Test Data"); - vmime::ref stream = - vmime::create (data); + vmime::shared_ptr stream = + vmime::make_shared (data); vmime::streamContentHandler cth(stream, data.length()); @@ -63,8 +63,8 @@ VMIME_TEST_SUITE_BEGIN(streamContentHandlerTest) void testIsEncoded() { vmime::string data("Test Data"); - vmime::ref stream = - vmime::create (data); + vmime::shared_ptr stream = + vmime::make_shared (data); vmime::streamContentHandler cth(stream, data.length()); @@ -73,8 +73,8 @@ VMIME_TEST_SUITE_BEGIN(streamContentHandlerTest) vmime::string data2("Zm9vEjRWYmFy="); - vmime::ref stream2 = - vmime::create (data2); + vmime::shared_ptr stream2 = + vmime::make_shared (data2); vmime::streamContentHandler cth2(stream2, data2.length(), vmime::encoding("base64")); @@ -85,8 +85,8 @@ VMIME_TEST_SUITE_BEGIN(streamContentHandlerTest) void testGetLength_Encoded() { vmime::string data("foo=12=34=56bar"); - vmime::ref stream = - vmime::create (data); + vmime::shared_ptr stream = + vmime::make_shared (data); vmime::streamContentHandler cth(stream, data.length(), vmime::encoding("quoted-printable")); @@ -97,8 +97,8 @@ VMIME_TEST_SUITE_BEGIN(streamContentHandlerTest) void testExtract() { vmime::string data("Test Data"); - vmime::ref stream = - vmime::create (data); + vmime::shared_ptr stream = + vmime::make_shared (data); vmime::streamContentHandler cth(stream, data.length()); @@ -114,8 +114,8 @@ VMIME_TEST_SUITE_BEGIN(streamContentHandlerTest) { vmime::string data ("QUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODk="); - vmime::ref stream = - vmime::create (data); + vmime::shared_ptr stream = + vmime::make_shared (data); vmime::streamContentHandler cth(stream, data.length(), vmime::encoding("base64")); @@ -133,8 +133,8 @@ VMIME_TEST_SUITE_BEGIN(streamContentHandlerTest) { vmime::string data ("QUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODk="); - vmime::ref stream = - vmime::create (data); + vmime::shared_ptr stream = + vmime::make_shared (data); vmime::streamContentHandler cth(stream, data.length(), vmime::encoding("base64")); @@ -151,8 +151,8 @@ VMIME_TEST_SUITE_BEGIN(streamContentHandlerTest) void testGenerate() { vmime::string data("foo\x12\x34\x56 bar"); - vmime::ref stream = - vmime::create (data); + vmime::shared_ptr stream = + vmime::make_shared (data); vmime::streamContentHandler cth(stream, data.length()); @@ -168,8 +168,8 @@ VMIME_TEST_SUITE_BEGIN(streamContentHandlerTest) void testGenerate_Encoded() { vmime::string data("foo=12=34=56bar"); - vmime::ref stream = - vmime::create (data); + vmime::shared_ptr stream = + vmime::make_shared (data); vmime::streamContentHandler cth(stream, data.length(), vmime::encoding("quoted-printable")); -- cgit v1.2.3