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/POP3CommandTest.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/POP3CommandTest.cpp')
| -rw-r--r-- | tests/net/pop3/POP3CommandTest.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/net/pop3/POP3CommandTest.cpp b/tests/net/pop3/POP3CommandTest.cpp index 35a3629d..14c92be4 100644 --- a/tests/net/pop3/POP3CommandTest.cpp +++ b/tests/net/pop3/POP3CommandTest.cpp @@ -23,6 +23,8 @@ #include "tests/testUtils.hpp" +#include "tests/net/pop3/POP3TestUtils.hpp" + #include "vmime/net/pop3/POP3Command.hpp" @@ -212,7 +214,10 @@ VMIME_TEST_SUITE_BEGIN(POP3CommandTest) vmime::ref <POP3Command> cmd = POP3Command::createCommand("MY_COMMAND param1 param2"); vmime::ref <testSocket> sok = vmime::create <testSocket>(); - cmd->writeToSocket(sok); + vmime::ref <POP3ConnectionTest> conn = vmime::create <POP3ConnectionTest> + (sok.dynamicCast <vmime::net::socket>(), vmime::null); + + cmd->send(conn); vmime::string response; sok->localReceive(response); |
