diff options
author | Vincent Richard <[email protected]> | 2014-02-05 19:18:20 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2014-02-05 19:18:20 +0000 |
commit | 0d20ee083b69d0cbde5a57a745386b987752af46 (patch) | |
tree | bbcbc887fc23cb6e6b2fdc05acd446ce89921319 /tests | |
parent | Merge branch 'master' of https://github.com/kisli/vmime (diff) | |
download | vmime-0d20ee083b69d0cbde5a57a745386b987752af46.tar.gz vmime-0d20ee083b69d0cbde5a57a745386b987752af46.zip |
Better polling. Fixed possible connection issues on POSIX with slow network. Better error handling in POSIX sockets.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testUtils.cpp | 12 | ||||
-rw-r--r-- | tests/testUtils.hpp | 3 |
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/testUtils.cpp b/tests/testUtils.cpp index ee642bea..c4fce447 100644 --- a/tests/testUtils.cpp +++ b/tests/testUtils.cpp @@ -85,6 +85,18 @@ vmime::shared_ptr <vmime::net::timeoutHandler> testSocket::getTimeoutHandler() } +bool testSocket::waitForRead(const int msecs) +{ + return true; +} + + +bool testSocket::waitForWrite(const int msecs) +{ + return true; +} + + void testSocket::receive(vmime::string& buffer) { buffer = m_inBuffer; diff --git a/tests/testUtils.hpp b/tests/testUtils.hpp index 9e72158a..20ebdf20 100644 --- a/tests/testUtils.hpp +++ b/tests/testUtils.hpp @@ -248,6 +248,9 @@ public: bool isConnected() const; + bool waitForWrite(const int msecs = 30000); + bool waitForRead(const int msecs = 30000); + void receive(vmime::string& buffer); void send(const vmime::string& buffer); void send(const char* str); |