aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2014-03-25 22:34:03 +0000
committerVincent Richard <[email protected]>2014-03-25 22:34:03 +0000
commitbbfdcc36a00bdae294c45baa2023f850efce7375 (patch)
treefc4c497490437282c78525a878b60ecb862a1674 /tests
parentFixed issue #71. (diff)
downloadvmime-bbfdcc36a00bdae294c45baa2023f850efce7375.tar.gz
vmime-bbfdcc36a00bdae294c45baa2023f850efce7375.zip
Trace socket/connection events.
Diffstat (limited to 'tests')
-rw-r--r--tests/testUtils.cpp11
-rw-r--r--tests/testUtils.hpp3
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/testUtils.cpp b/tests/testUtils.cpp
index c4fce447..dcdb2a03 100644
--- a/tests/testUtils.cpp
+++ b/tests/testUtils.cpp
@@ -85,6 +85,17 @@ vmime::shared_ptr <vmime::net::timeoutHandler> testSocket::getTimeoutHandler()
}
+void testSocket::setTracer(vmime::shared_ptr <vmime::net::tracer> tracer)
+{
+}
+
+
+vmime::shared_ptr <vmime::net::tracer> testSocket::getTracer()
+{
+ return vmime::null;
+}
+
+
bool testSocket::waitForRead(const int msecs)
{
return true;
diff --git a/tests/testUtils.hpp b/tests/testUtils.hpp
index 20ebdf20..2476787b 100644
--- a/tests/testUtils.hpp
+++ b/tests/testUtils.hpp
@@ -268,6 +268,9 @@ public:
vmime::shared_ptr <vmime::net::timeoutHandler> getTimeoutHandler();
+ void setTracer(vmime::shared_ptr <vmime::net::tracer> tracer);
+ vmime::shared_ptr <vmime::net::tracer> getTracer();
+
/** Send data to client.
*
* @param buffer data to send