diff ui/tests/downloadertest.cpp @ 45:c6125d73faf4

Move SSLConnection into it's own class
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 14 Mar 2014 16:40:53 +0000
parents 5910bf9016cd
children d28e2624c1d5
line wrap: on
line diff
--- a/ui/tests/downloadertest.cpp	Fri Mar 14 16:06:40 2014 +0000
+++ b/ui/tests/downloadertest.cpp	Fri Mar 14 16:40:53 2014 +0000
@@ -39,12 +39,12 @@
     serverProc.setProgram(HIAWATHA_EXECUTABLE);
     arguments << "-d" << "-c" << serverConfigDir.path();
     serverProc.setArguments(arguments);
-    qRegisterMetaType<Downloader::ErrorCode>("Downloader::ErrorCode");
+    qRegisterMetaType<SSLConnection::ErrorCode>("SSLConnection::ErrorCode");
     startServer();
     QTest::qWait(1000); /* Wait for the server to settle */
 }
 
-void DownloaderTest::downloaderError(const QString &message, Downloader::ErrorCode error)
+void DownloaderTest::downloaderError(const QString &message, SSLConnection::ErrorCode error)
 {
     qDebug() << "Downloader Error: " << error << " Msg: " << message;
 }
@@ -69,9 +69,9 @@
     QSignalSpy newSoftwareAvailable(downloader,
            SIGNAL(newSoftwareAvailable(const QString&, const QDateTime&)));
     QSignalSpy errors(downloader, SIGNAL(error(const QString &,
-                    Downloader::ErrorCode)));
-    connect(downloader, SIGNAL(error(const QString &, Downloader::ErrorCode)),
-            this, SLOT(downloaderError(const QString &, Downloader::ErrorCode)));
+                    SSLConnection::ErrorCode)));
+    connect(downloader, SIGNAL(error(const QString &, SSLConnection::ErrorCode)),
+            this, SLOT(downloaderError(const QString &, SSLConnection::ErrorCode)));
 
     downloader->start();
 

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