diff options
author | Vincent Richard <[email protected]> | 2013-06-20 09:02:39 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2013-06-20 09:02:39 +0000 |
commit | eee80fc81e007baacbce80afe55e69a52bcfd1f6 (patch) | |
tree | 4ed1aeecac70ef7ab614f2956e306bbc427fe837 /tests/testUtils.hpp | |
parent | Moved SMTP connection-related things to SMTPConnection object. (diff) | |
download | vmime-eee80fc81e007baacbce80afe55e69a52bcfd1f6.tar.gz vmime-eee80fc81e007baacbce80afe55e69a52bcfd1f6.zip |
Added support for CHUNKING SMTP extension (RFC-3030). More robust unit tests for SMTP.
Diffstat (limited to 'tests/testUtils.hpp')
-rw-r--r-- | tests/testUtils.hpp | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/tests/testUtils.hpp b/tests/testUtils.hpp index 1e138301..7ff3b40f 100644 --- a/tests/testUtils.hpp +++ b/tests/testUtils.hpp @@ -256,16 +256,31 @@ public: /** Send data to client. * - * @buffer data to send + * @param buffer data to send */ void localSend(const vmime::string& buffer); /** Receive data from client. * - * @buffer buffer in which to store received data + * @param buffer buffer in which to store received data */ void localReceive(vmime::string& buffer); + /** Receive a line from client. + * + * @param buffer buffer in which to store received line + * @return true if a line has been read, or false otherwise + */ + bool localReceiveLine(vmime::string& buffer); + + /** Receive data from client. + * + * @param buffer buffer in which to store received data + * @param count number of bytes to receive + * @return number of bytes received + */ + testSocket::size_type localReceiveRaw(char* buffer, const size_type count); + protected: /** Called when the client has sent some data. |