Mercurial > trustbridge
comparison ui/tests/cinstprocesstest.h @ 306:9c5e6b142611
Set the home directory to a temporary location to avoid writing into real nss stores
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Thu, 03 Apr 2014 15:30:25 +0200 |
parents | d95fd88f6616 |
children | 17e1c8f37d72 |
comparison
equal
deleted
inserted
replaced
305:4a3febc6d806 | 306:9c5e6b142611 |
---|---|
7 | 7 |
8 #include <QObject> | 8 #include <QObject> |
9 #include <QStringList> | 9 #include <QStringList> |
10 #include <QProcess> | 10 #include <QProcess> |
11 #include <QTemporaryFile> | 11 #include <QTemporaryFile> |
12 #include <QTemporaryDir> | |
12 #include <QTest> | 13 #include <QTest> |
13 #include "certificatelist.h" | 14 #include "certificatelist.h" |
14 | 15 |
15 class CinstProcessTest: public QObject | 16 class CinstProcessTest: public QObject |
16 { | 17 { |
19 private: | 20 private: |
20 QProcess* startCinstProcess(const QStringList& args = QStringList()); | 21 QProcess* startCinstProcess(const QStringList& args = QStringList()); |
21 QTemporaryFile validListFile; | 22 QTemporaryFile validListFile; |
22 QTemporaryFile otherListFile; | 23 QTemporaryFile otherListFile; |
23 QTemporaryFile invalidListFile; | 24 QTemporaryFile invalidListFile; |
25 QTemporaryDir fakeHome; | |
24 CertificateList validList; | 26 CertificateList validList; |
25 CertificateList otherList; | 27 CertificateList otherList; |
26 CertificateList invalidList; | 28 CertificateList invalidList; |
27 | 29 |
28 private Q_SLOTS: | 30 private Q_SLOTS: |