Mercurial > trustbridge
comparison ui/tests/cinstprocesstest.h @ 100:8fa273791242
Add test for cinstprocess
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Fri, 21 Mar 2014 12:15:29 +0000 |
parents | |
children | f5fa39347366 |
comparison
equal
deleted
inserted
replaced
99:bc1e6732f43c | 100:8fa273791242 |
---|---|
1 #ifndef CINSTPROCESSTEST_H | |
2 #define CINSTPROCESSTEST_H | |
3 | |
4 /* @file Tests for the cinst process | |
5 * @brief Tests for the cinst process as well as the UI side | |
6 */ | |
7 | |
8 #include <QObject> | |
9 #include <QProcess> | |
10 #include "certificatelist.h" | |
11 | |
12 class CinstProcessTest: public QObject | |
13 { | |
14 Q_OBJECT | |
15 | |
16 private: | |
17 QProcess* startCinstProcess(); | |
18 CertificateList validList; | |
19 CertificateList otherList; | |
20 CertificateList invalidList; | |
21 | |
22 private Q_SLOTS: | |
23 void initTestCase(); | |
24 void testValidInput(); | |
25 void testInvalidInstruction(); | |
26 void testNoInput(); | |
27 void testNoList(); | |
28 void testGarbageInput(); | |
29 void testNoInstructions(); | |
30 }; | |
31 #endif | |
32 | |
33 |