diff options
-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) { |