summaryrefslogtreecommitdiffstats
path: root/tests/manual/qsslsocket
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/qsslsocket')
-rw-r--r--tests/manual/qsslsocket/CMakeLists.txt5
-rw-r--r--tests/manual/qsslsocket/main.cpp17
2 files changed, 12 insertions, 10 deletions
diff --git a/tests/manual/qsslsocket/CMakeLists.txt b/tests/manual/qsslsocket/CMakeLists.txt
index 9347418bff..59f902a301 100644
--- a/tests/manual/qsslsocket/CMakeLists.txt
+++ b/tests/manual/qsslsocket/CMakeLists.txt
@@ -1,4 +1,5 @@
-# Generated from qsslsocket.pro.
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
#####################################################################
## tst_manual_qsslsocket Test:
@@ -7,6 +8,6 @@
qt_internal_add_test(tst_manual_qsslsocket
SOURCES
main.cpp
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::Network
)
diff --git a/tests/manual/qsslsocket/main.cpp b/tests/manual/qsslsocket/main.cpp
index 2894b3c1fa..cc3cdb92d6 100644
--- a/tests/manual/qsslsocket/main.cpp
+++ b/tests/manual/qsslsocket/main.cpp
@@ -1,5 +1,5 @@
// Copyright (C) 2014 BlackBerry Limited. All rights reserved.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QtNetwork/qsslconfiguration.h>
@@ -30,14 +30,15 @@ void tst_QSslSocket::nextProtocolNegotiation_data()
QTest::addColumn<QByteArray>("expectedProtocol");
QTest::addColumn<QSslConfiguration::NextProtocolNegotiationStatus>("expectedStatus");
- QList<QString> hosts = QList<QString>()
- << QStringLiteral("www.google.com")
- << QStringLiteral("www.facebook.com")
- << QStringLiteral("www.twitter.com")
- << QStringLiteral("graph.facebook.com")
- << QStringLiteral("api.twitter.com");
+ const QString hosts[] = {
+ QStringLiteral("www.google.com"),
+ QStringLiteral("www.facebook.com"),
+ QStringLiteral("www.twitter.com"),
+ QStringLiteral("graph.facebook.com"),
+ QStringLiteral("api.twitter.com"),
+ };
- foreach (QString host, hosts) {
+ for (const QString &host : hosts) {
QByteArray tag = host.toLocal8Bit();
tag.append("-none");
QTest::newRow(tag)