summaryrefslogtreecommitdiffstats
path: root/tests/auto/network/ssl/qsslcipher/tst_qsslcipher.cpp
blob: 6810149c11c8e14b0dbc610b245c1f19e4e29248 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only


#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"