Mercurial > trustbridge
comparison ui/tests/downloadertest.cpp @ 910:eaed02defe6a
More SSLConnection refactoring. Fixes curl downloader.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Mon, 18 Aug 2014 18:51:33 +0200 |
parents | 17e1c8f37d72 |
children | 2949f1842955 |
comparison
equal
deleted
inserted
replaced
909:18e3ad073b38 | 910:eaed02defe6a |
---|---|
92 otherCert.open(QIODevice::ReadOnly); | 92 otherCert.open(QIODevice::ReadOnly); |
93 | 93 |
94 QFileInfo fi(getRandomDataFile(200)); | 94 QFileInfo fi(getRandomDataFile(200)); |
95 | 95 |
96 Downloader* downloader = new Downloader(this, | 96 Downloader* downloader = new Downloader(this, |
97 QString::fromLatin1("https://localhost:44443"), | 97 QString::fromLatin1("https://127.0.0.1:44443"), |
98 otherCert.readAll(), | 98 otherCert.readAll(), |
99 QDateTime::currentDateTime(), // Last installed SW | 99 QDateTime::currentDateTime(), // Last installed SW |
100 QDateTime::fromString("2010", "YYYY"), | 100 QDateTime::fromString("2010", "YYYY"), |
101 "/" + garbageInfo.fileName(), | 101 "/" + garbageInfo.fileName(), |
102 "/list-valid.txt"); | 102 "/list-valid.txt"); |
153 QFile validCert(QString::fromLatin1(SOURCE_DIR) + | 153 QFile validCert(QString::fromLatin1(SOURCE_DIR) + |
154 "/data/valid_ssl_bp.pem"); | 154 "/data/valid_ssl_bp.pem"); |
155 validCert.open(QIODevice::ReadOnly); | 155 validCert.open(QIODevice::ReadOnly); |
156 | 156 |
157 Downloader* downloader = new Downloader(this, | 157 Downloader* downloader = new Downloader(this, |
158 QString::fromLatin1("https://localhost:44443"), | 158 QString::fromLatin1("https://127.0.0.1:44443"), |
159 validCert.readAll(), | 159 validCert.readAll(), |
160 QDateTime::fromString("2010", "YYYY"), | 160 QDateTime::fromString("2010", "YYYY"), |
161 QDateTime::currentDateTime(), | 161 QDateTime::currentDateTime(), |
162 "/" + garbageInfo.fileName(), | 162 "/" + garbageInfo.fileName(), |
163 "/list-valid.txt"); | 163 "/list-valid.txt"); |
194 QFile validCert(QString::fromLatin1(SOURCE_DIR) + | 194 QFile validCert(QString::fromLatin1(SOURCE_DIR) + |
195 "/data/valid_ssl_bp.pem"); | 195 "/data/valid_ssl_bp.pem"); |
196 validCert.open(QIODevice::ReadOnly); | 196 validCert.open(QIODevice::ReadOnly); |
197 | 197 |
198 Downloader* downloader = new Downloader(this, | 198 Downloader* downloader = new Downloader(this, |
199 QString::fromLatin1("https://localhost:44443"), | 199 QString::fromLatin1("https://127.0.0.1:44443"), |
200 validCert.readAll(), | 200 validCert.readAll(), |
201 QDateTime::currentDateTime(), // Last installed SW | 201 QDateTime::currentDateTime(), // Last installed SW |
202 QDateTime::fromString("2010", "YYYY"), | 202 QDateTime::fromString("2010", "YYYY"), |
203 "/" + garbageInfo.fileName(), | 203 "/" + garbageInfo.fileName(), |
204 "/list-valid.txt"); | 204 "/list-valid.txt"); |