diff options
| author | Vincent Richard <[email protected]> | 2014-01-19 16:36:45 +0100 |
|---|---|---|
| committer | Vincent Richard <[email protected]> | 2014-01-19 16:36:45 +0100 |
| commit | 2afe340b7b4621b81c3bad10ead23ce50ad83baa (patch) | |
| tree | 62bf88d2e85ea0e938c8ca22d5778447afe078d7 /tests | |
| parent | Fixed SMTP disconnection error caused by handshake failure. (diff) | |
| download | vmime-2afe340b7b4621b81c3bad10ead23ce50ad83baa.tar.gz vmime-2afe340b7b4621b81c3bad10ead23ce50ad83baa.zip | |
In SSL socket, use timeout handler of underlying socket. Throw exception when reading from/writing to disconnected SSL socket.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/testUtils.cpp | 6 | ||||
| -rw-r--r-- | tests/testUtils.hpp | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/testUtils.cpp b/tests/testUtils.cpp index 437b476b..ee642bea 100644 --- a/tests/testUtils.cpp +++ b/tests/testUtils.cpp @@ -79,6 +79,12 @@ const vmime::string testSocket::getPeerAddress() const } +vmime::shared_ptr <vmime::net::timeoutHandler> testSocket::getTimeoutHandler() +{ + return vmime::null; +} + + void testSocket::receive(vmime::string& buffer) { buffer = m_inBuffer; diff --git a/tests/testUtils.hpp b/tests/testUtils.hpp index f0ecf454..9e72158a 100644 --- a/tests/testUtils.hpp +++ b/tests/testUtils.hpp @@ -263,6 +263,8 @@ public: const vmime::string getPeerName() const; const vmime::string getPeerAddress() const; + vmime::shared_ptr <vmime::net::timeoutHandler> getTimeoutHandler(); + /** Send data to client. * * @param buffer data to send |
