view ui/tests/downloadertest.h @ 177:c92297bcda8f

dirent d_type is not supported on Windows, so use new port_isdir(). FWIW, according to the man page d_type isn't guarantied to work for all file systems on linux neither.
author Sascha Wilde <wilde@intevation.de>
date Tue, 25 Mar 2014 16:48:18 +0100
parents f5fa39347366
children c05e126b0b9e
line wrap: on
line source
#ifndef DOWNLOADERTEST_H
#define DOWNLOADERTEST_H

#include <QObject>
#include <QtTest>
#include <QProcess>
#include <QTemporaryDir>
#include <QSignalSpy>
#include "downloader.h"

class DownloaderTest: public QObject
{
    Q_OBJECT

    void startServer(QString additionalOptions = QString());

private:
    QProcess serverProc;
    QTemporaryDir serverConfigDir;

public Q_SLOTS:
    void downloaderError(const QString &message, SSLConnection::ErrorCode error);

private Q_SLOTS:
    void initTestCase();
    void cleanupTestCase();
    void testNewList();
    void testNoConnection();
    void testOtherCertificate();
    void testNewSoftware();
};
#endif

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