aboutsummaryrefslogtreecommitdiffstats
path: root/tests/testUtils.hpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2013-02-12 16:54:36 +0000
committerVincent Richard <[email protected]>2013-02-12 16:54:36 +0000
commitfeabba44702cf0720535b3af8e1d0ca89ae2b63d (patch)
tree110660060dd5080f5a3a77a50568024d0b88f699 /tests/testUtils.hpp
parentRewrote SMTP command sending. Better code for pipelining. Report full command... (diff)
downloadvmime-feabba44702cf0720535b3af8e1d0ca89ae2b63d.tar.gz
vmime-feabba44702cf0720535b3af8e1d0ca89ae2b63d.zip
Unit tests for SMTPCommand and SMTPCommandSet. Fixed SMTPCommandSet::isFinished().
Diffstat (limited to 'tests/testUtils.hpp')
-rw-r--r--tests/testUtils.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/testUtils.hpp b/tests/testUtils.hpp
index d68dba8d..55c0424e 100644
--- a/tests/testUtils.hpp
+++ b/tests/testUtils.hpp
@@ -42,7 +42,12 @@
#define VASSERT_TRUE(msg, cond) \
VASSERT(msg, cond)
#define VASSERT_FALSE(msg, cond) \
- VASSERT(!(msg, cond))
+ VASSERT(msg, !(cond))
+
+#define VASSERT_NOT_NULL(msg, cond) \
+ VASSERT(msg, cond != NULL)
+#define VASSERT_NULL(msg, cond) \
+ VASSERT(msg, cond == NULL)
#define VASSERT_EQ(msg, expected, actual) \
CPPUNIT_ASSERT_EQUAL_MESSAGE(std::string(msg), expected, actual)