Mercurial > trustbridge
comparison ui/tests/nsstest.h @ 307:2fd69803d219
Complete InstRemove NSS test
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Thu, 03 Apr 2014 16:35:21 +0200 |
parents | eecc06f714fd |
children | 17e1c8f37d72 |
comparison
equal
deleted
inserted
replaced
306:9c5e6b142611 | 307:2fd69803d219 |
---|---|
2 #define NSSTEST_H | 2 #define NSSTEST_H |
3 | 3 |
4 #include <QTemporaryFile> | 4 #include <QTemporaryFile> |
5 #include <QTemporaryDir> | 5 #include <QTemporaryDir> |
6 #include <QObject> | 6 #include <QObject> |
7 #include <QList> | |
8 #include <QByteArray> | |
7 | 9 |
8 #include "certificatelist.h" | 10 #include "certificatelist.h" |
9 | 11 |
10 class NSSTest: public QObject | 12 class NSSTest: public QObject |
11 { | 13 { |
12 Q_OBJECT | 14 Q_OBJECT |
13 | 15 |
14 QTemporaryDir fakeHome; | 16 QTemporaryDir fakeHome; |
15 QDir fakeFirefoxDir; | 17 QDir fakeFirefoxDir; |
16 QDir fakeThunderbirdDir; | 18 QDir fakeThunderbirdDir; |
17 QTemporaryDir nssDir; | 19 QTemporaryDir ffNSSDir; |
20 QTemporaryDir tbNSSDir; | |
18 CertificateList validList; | 21 CertificateList validList; |
19 QTemporaryFile validListFile; | 22 QTemporaryFile validListFile; |
23 private: | |
24 QList<QByteArray> get_nss_certs(QTemporaryDir *nssDir); | |
25 void setupTestDir(QTemporaryDir *nssDir); | |
20 | 26 |
21 private Q_SLOTS: | 27 private Q_SLOTS: |
22 void initTestCase(); | 28 void initTestCase(); |
23 void testInstRemove(); | 29 void testInstRemove(); |
24 }; | 30 }; |