diff tests/certlistparsertest.h @ 7:992c0ec57660

Add unit tests make CertificateList work.
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 12 Feb 2014 16:52:27 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/certlistparsertest.h	Wed Feb 12 16:52:27 2014 +0000
@@ -0,0 +1,23 @@
+#ifndef IMAPSTREAMPARSERTEST_H
+#define IMAPSTREAMPARSERTEST_H
+
+#include <QObject>
+#include <QtTest/QtTest>
+
+class CertificateList;
+
+class CertListTest: public QObject
+{
+    Q_OBJECT
+
+    CertificateList* testWithFile(const char *filename);
+
+private Q_SLOTS:
+    void testInvalidSig();
+    void testValidList();
+    void testInvalidFileNames();
+    void testGarbage();
+    void testTooLarge();
+    void benchmarkValid();
+};
+#endif

http://wald.intevation.org/projects/trustbridge/