diff options
author | Vincent Richard <[email protected]> | 2013-06-12 12:02:40 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2013-06-12 12:02:40 +0000 |
commit | 7ab35173bce99c6c9a5f189cdd83f93fcb3e9086 (patch) | |
tree | 3fb077645ba770932adaa1f629b7c2f0931a6cf0 /tests/net/pop3/POP3UtilsTest.cpp | |
parent | Moved POP3 client command related things to POP3Command class. (diff) | |
download | vmime-7ab35173bce99c6c9a5f189cdd83f93fcb3e9086.tar.gz vmime-7ab35173bce99c6c9a5f189cdd83f93fcb3e9086.zip |
Moved POP3 connection-related things to POP3Connection object.
Diffstat (limited to 'tests/net/pop3/POP3UtilsTest.cpp')
-rw-r--r-- | tests/net/pop3/POP3UtilsTest.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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 <testSocket> socket = vmime::create <testSocket>(); vmime::ref <vmime::net::timeoutHandler> toh = vmime::create <testTimeoutHandler>(); + vmime::ref <POP3ConnectionTest> conn = vmime::create <POP3ConnectionTest> + (socket.dynamicCast <vmime::net::socket>(), 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 <POP3Response> resp = - POP3Response::readMultilineResponse(socket, toh); + POP3Response::readMultilineResponse(conn); std::map <int, vmime::string> result; POP3Utils::parseMultiListOrUidlResponse(resp, result); |