diff options
author | Vincent Richard <[email protected]> | 2014-06-01 17:57:43 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2014-06-01 17:57:43 +0000 |
commit | 17d764d65ce67d9bdf0a267afa004a2454a2f9cf (patch) | |
tree | ec051b6fbf63e68372443637a0db6f611dff12ad /tests | |
parent | Fixed auto_ptr<> not to be used with new[]. (diff) | |
download | vmime-17d764d65ce67d9bdf0a267afa004a2454a2f9cf.tar.gz vmime-17d764d65ce67d9bdf0a267afa004a2454a2f9cf.zip |
Fixed segfault in POP3 test.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/net/pop3/POP3TestUtils.hpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/net/pop3/POP3TestUtils.hpp b/tests/net/pop3/POP3TestUtils.hpp index 1c6e8935..beb202b8 100644 --- a/tests/net/pop3/POP3TestUtils.hpp +++ b/tests/net/pop3/POP3TestUtils.hpp @@ -25,13 +25,25 @@ #include "vmime/net/pop3/POP3Store.hpp" +class POP3TestStore : public vmime::net::pop3::POP3Store +{ +public: + + POP3TestStore() + : POP3Store(vmime::make_shared <vmime::net::session>(), + vmime::shared_ptr <vmime::security::authenticator>()) + { + } +}; + + class POP3ConnectionTest : public vmime::net::pop3::POP3Connection { public: POP3ConnectionTest(vmime::shared_ptr <vmime::net::socket> socket, vmime::shared_ptr <vmime::net::timeoutHandler> timeoutHandler) - : POP3Connection(vmime::shared_ptr <vmime::net::pop3::POP3Store>(), + : POP3Connection(vmime::make_shared <POP3TestStore>(), vmime::shared_ptr <vmime::security::authenticator>()), m_socket(socket), m_timeoutHandler(timeoutHandler) { |