From eee80fc81e007baacbce80afe55e69a52bcfd1f6 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Thu, 20 Jun 2013 11:02:39 +0200 Subject: Added support for CHUNKING SMTP extension (RFC-3030). More robust unit tests for SMTP. --- tests/testUtils.hpp | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'tests/testUtils.hpp') 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. -- cgit v1.2.3