mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-06 09:15:23 +08:00
qt 6.5.1 original
This commit is contained in:
13
tests/auto/network/ssl/qsslcipher/CMakeLists.txt
Normal file
13
tests/auto/network/ssl/qsslcipher/CMakeLists.txt
Normal file
@ -0,0 +1,13 @@
|
||||
# Copyright (C) 2022 The Qt Company Ltd.
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
#####################################################################
|
||||
## tst_qsslcipher Test:
|
||||
#####################################################################
|
||||
|
||||
qt_internal_add_test(tst_qsslcipher
|
||||
SOURCES
|
||||
tst_qsslcipher.cpp
|
||||
LIBRARIES
|
||||
Qt::Network
|
||||
)
|
39
tests/auto/network/ssl/qsslcipher/tst_qsslcipher.cpp
Normal file
39
tests/auto/network/ssl/qsslcipher/tst_qsslcipher.cpp
Normal file
@ -0,0 +1,39 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
|
||||
|
||||
#include <QTest>
|
||||
#include <qsslcipher.h>
|
||||
|
||||
class tst_QSslCipher : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
#ifndef QT_NO_SSL
|
||||
|
||||
private slots:
|
||||
void constructing();
|
||||
|
||||
#endif // QT_NO_SSL
|
||||
};
|
||||
|
||||
#ifndef QT_NO_SSL
|
||||
|
||||
void tst_QSslCipher::constructing()
|
||||
{
|
||||
QSslCipher cipher;
|
||||
|
||||
QVERIFY(cipher.isNull());
|
||||
QCOMPARE(cipher.name(), QString());
|
||||
QCOMPARE(cipher.supportedBits(), 0);
|
||||
QCOMPARE(cipher.usedBits(), 0);
|
||||
QCOMPARE(cipher.keyExchangeMethod(), QString());
|
||||
QCOMPARE(cipher.authenticationMethod(), QString());
|
||||
QCOMPARE(cipher.protocolString(), QString());
|
||||
QCOMPARE(cipher.protocol(), QSsl::UnknownProtocol);
|
||||
}
|
||||
|
||||
#endif // QT_NO_SSL
|
||||
|
||||
QTEST_MAIN(tst_QSslCipher)
|
||||
#include "tst_qsslcipher.moc"
|
Reference in New Issue
Block a user