summaryrefslogtreecommitdiffstats
path: root/tests/auto/qsslsocket
diff options
context:
space:
mode:
authorJanne Anttila <janne.anttila@digia.com>2009-05-22 12:54:34 (GMT)
committerJanne Anttila <janne.anttila@digia.com>2009-05-22 12:56:24 (GMT)
commitf4742056eee31b9e293e5507bc10da7f81a1ebea (patch)
tree06cfd0431dd6b5fd871b168efc8687eb7a115b6d /tests/auto/qsslsocket
parentd85e7bbbabf4383337bd3592f32d337246224175 (diff)
parenta98e9e2377974f306ad1ad73a7aa19807400cd80 (diff)
downloadQt-f4742056eee31b9e293e5507bc10da7f81a1ebea.zip
Qt-f4742056eee31b9e293e5507bc10da7f81a1ebea.tar.gz
Qt-f4742056eee31b9e293e5507bc10da7f81a1ebea.tar.bz2
Merge branch 'master' of git@scm.dev.troll.no:qt/qt-s60-public
Diffstat (limited to 'tests/auto/qsslsocket')
-rw-r--r--tests/auto/qsslsocket/tst_qsslsocket.cpp27
1 files changed, 12 insertions, 15 deletions
diff --git a/tests/auto/qsslsocket/tst_qsslsocket.cpp b/tests/auto/qsslsocket/tst_qsslsocket.cpp
index 6147551..9f7b537 100644
--- a/tests/auto/qsslsocket/tst_qsslsocket.cpp
+++ b/tests/auto/qsslsocket/tst_qsslsocket.cpp
@@ -505,21 +505,18 @@ void tst_QSslSocket::sslErrors_data()
{
QTest::addColumn<QString>("host");
QTest::addColumn<int>("port");
- QTest::addColumn<SslErrorList>("errors");
-
- QTest::newRow(QtNetworkSettings::serverName().toAscii() + " port443") << QtNetworkSettings::serverName() << 443
- << (SslErrorList()
- << QSslError::UnableToGetLocalIssuerCertificate
- << QSslError::CertificateUntrusted
- << QSslError::UnableToVerifyFirstCertificate
- );
- QTest::newRow(QtNetworkSettings::serverName().toAscii() + " port993") << QtNetworkSettings::serverName() << 993
- << (SslErrorList()
- << QSslError::HostNameMismatch
- << QSslError::SelfSignedCertificate
- );
- // TODO: Should we have QtNetworkSettings::serverName alias
- // in order that we could test with different host name
+ QTest::addColumn<SslErrorList>("expected");
+
+ QTest::newRow(qPrintable(QtNetworkSettings::serverLocalName()))
+ << QtNetworkSettings::serverLocalName()
+ << 993
+ << (SslErrorList() << QSslError::HostNameMismatch
+ << QSslError::SelfSignedCertificate);
+
+ QTest::newRow("imap.trolltech.com")
+ << "imap.trolltech.com"
+ << 993
+ << (SslErrorList() << QSslError::SelfSignedCertificateInChain);
}
void tst_QSslSocket::sslErrors()