view ui/tests/cinstprocesstest.h @ 294:d95fd88f6616

Prepare cinstprocesstest to be executed on Windows
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 02 Apr 2014 15:41:31 +0000
parents 0df62decff90
children 9c5e6b142611
line wrap: on
line source
#ifndef CINSTPROCESSTEST_H
#define CINSTPROCESSTEST_H

/* @file Tests for the cinst process
 * @brief Tests for the cinst process as well as the UI side
 */

#include <QObject>
#include <QStringList>
#include <QProcess>
#include <QTemporaryFile>
#include <QTest>
#include "certificatelist.h"

class CinstProcessTest: public QObject
{
    Q_OBJECT

private:
    QProcess* startCinstProcess(const QStringList& args = QStringList());
    QTemporaryFile validListFile;
    QTemporaryFile otherListFile;
    QTemporaryFile invalidListFile;
    CertificateList validList;
    CertificateList otherList;
    CertificateList invalidList;

private Q_SLOTS:
    void initTestCase();
    void testValidInput();
    void testInvalidInstruction();
    void testNoInput();
    void testNoList();
    void testGarbageInput();
    void testNoInstructions();
    void testUninstall();
};
#endif


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