Mercurial > trustbridge > trustbridge
comparison ui/tests/downloadertest.cpp @ 1088:508c96e72f62
(issue124) Switch server URL and remove some RELEASE_BUILD options
As the test server speaks ECDSA we do not need so much
#ifndef RELEASE_BUILD options anymore.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Fri, 12 Sep 2014 15:38:42 +0200 |
parents | fe2c6666b462 |
children |
comparison
equal
deleted
inserted
replaced
1087:7191addd8a53 | 1088:508c96e72f62 |
---|---|
147 int error = arguments.at(1).toInt(); | 147 int error = arguments.at(1).toInt(); |
148 | 148 |
149 QVERIFY(error == SSLConnection::NoConnection); | 149 QVERIFY(error == SSLConnection::NoConnection); |
150 } | 150 } |
151 static int accept_ciphers[] = { | 151 static int accept_ciphers[] = { |
152 TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384, | 152 TLS_RSA_WITH_CAMELLIA_256_CBC_SHA256, |
153 TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, | |
154 TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384, | |
155 0 | 153 0 |
156 }; | 154 }; |
157 | 155 |
158 void DownloaderTest::testForcedCiphers() | 156 void DownloaderTest::testForcedCiphers() |
159 { | 157 { |
160 Downloader* downloader = new Downloader(this, | 158 Downloader* downloader = new Downloader(this, |
161 QString::fromLatin1(SERVER_URL), | 159 QString::fromLatin1(SERVER_URL), |
162 QByteArray(), /* Use default testing certificate */ | 160 QByteArray(), /* Use default testing certificate */ |
163 QDateTime::currentDateTime(), | 161 QDateTime::currentDateTime(), |
164 QDateTime::fromString("2010", "YYYY"), | 162 QDateTime::fromString("2010", "YYYY"), |
165 "/users/aheinecke/development/TrustBridge-development.exe", | 163 "/development/TrustBridge-development.exe", |
166 "/users/aheinecke/development/zertifikatsliste.txt"); | 164 "/development/zertifikatsliste.txt"); |
167 | 165 |
168 downloader->setCiphersuites(accept_ciphers); | 166 downloader->setCiphersuites(accept_ciphers); |
169 | 167 |
170 SETUP_SPY | 168 SETUP_SPY |
171 | 169 |
236 Downloader* downloader = new Downloader(this, | 234 Downloader* downloader = new Downloader(this, |
237 QString::fromLatin1(SERVER_URL), | 235 QString::fromLatin1(SERVER_URL), |
238 QByteArray(), | 236 QByteArray(), |
239 QDateTime::currentDateTime(), // Last installed SW | 237 QDateTime::currentDateTime(), // Last installed SW |
240 QDateTime::fromString("2010", "YYYY"), | 238 QDateTime::fromString("2010", "YYYY"), |
241 QString("/users/aheinecke/zertifikatsliste.txt"), | 239 QString("/zertifikatsliste.txt"), |
242 QString("/users/aheinecke/zertifikatsliste.txt")); | 240 QString("/zertifikatsliste.txt")); |
243 | 241 |
244 SETUP_SPY | 242 SETUP_SPY |
245 | 243 |
246 connect(downloader, SIGNAL(error(const QString &, SSLConnection::ErrorCode)), | 244 connect(downloader, SIGNAL(error(const QString &, SSLConnection::ErrorCode)), |
247 this, SLOT(downloaderError(const QString &, SSLConnection::ErrorCode))); | 245 this, SLOT(downloaderError(const QString &, SSLConnection::ErrorCode))); |