aheinecke@404: /* Copyright (C) 2014 by Bundesamt für Sicherheit in der Informationstechnik aheinecke@404: * Software engineering by Intevation GmbH aheinecke@404: * aheinecke@404: * This file is Free Software under the GNU GPL (v>=2) aheinecke@404: * and comes with ABSOLUTELY NO WARRANTY! aheinecke@404: * See LICENSE.txt for details. aheinecke@404: */ aheinecke@43: #ifndef DOWNLOADERTEST_H aheinecke@43: #define DOWNLOADERTEST_H aheinecke@43: aheinecke@43: #include rrenkert@141: #include aheinecke@43: #include aheinecke@43: #include aheinecke@43: #include aheinecke@43: #include "downloader.h" aheinecke@43: aheinecke@43: class DownloaderTest: public QObject aheinecke@43: { aheinecke@43: Q_OBJECT aheinecke@43: aheinecke@43: void startServer(QString additionalOptions = QString()); aheinecke@43: aheinecke@43: private: aheinecke@43: QProcess serverProc; aheinecke@43: QTemporaryDir serverConfigDir; aheinecke@240: QFileInfo garbageInfo; aheinecke@43: aheinecke@43: public Q_SLOTS: aheinecke@45: void downloaderError(const QString &message, SSLConnection::ErrorCode error); aheinecke@43: aheinecke@43: private Q_SLOTS: aheinecke@43: void initTestCase(); aheinecke@43: void cleanupTestCase(); aheinecke@43: void testNewList(); aheinecke@48: void testNoConnection(); aheinecke@52: void testOtherCertificate(); aheinecke@55: void testNewSoftware(); andre@990: void testForcedCiphers(); aheinecke@43: }; aheinecke@43: #endif aheinecke@43: