From 7ab35173bce99c6c9a5f189cdd83f93fcb3e9086 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Wed, 12 Jun 2013 14:02:40 +0200 Subject: Moved POP3 connection-related things to POP3Connection object. --- tests/net/pop3/POP3UtilsTest.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests/net/pop3/POP3UtilsTest.cpp') diff --git a/tests/net/pop3/POP3UtilsTest.cpp b/tests/net/pop3/POP3UtilsTest.cpp index ac92056a..9d443ddb 100644 --- a/tests/net/pop3/POP3UtilsTest.cpp +++ b/tests/net/pop3/POP3UtilsTest.cpp @@ -23,6 +23,8 @@ #include "tests/testUtils.hpp" +#include "tests/net/pop3/POP3TestUtils.hpp" + #include "vmime/net/pop3/POP3Utils.hpp" #include "vmime/net/pop3/POP3Response.hpp" @@ -42,6 +44,9 @@ VMIME_TEST_SUITE_BEGIN(POP3UtilsTest) vmime::ref socket = vmime::create (); vmime::ref toh = vmime::create (); + vmime::ref conn = vmime::create + (socket.dynamicCast (), toh); + socket->localSend("+OK Response Text\r\n"); socket->localSend("1 abcdef\r\n"); socket->localSend("23 ghijkl\r\n"); @@ -51,7 +56,7 @@ VMIME_TEST_SUITE_BEGIN(POP3UtilsTest) socket->localSend(".\r\n"); vmime::ref resp = - POP3Response::readMultilineResponse(socket, toh); + POP3Response::readMultilineResponse(conn); std::map result; POP3Utils::parseMultiListOrUidlResponse(resp, result); -- cgit v1.2.3