| Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/network/ssl/qsslcipher.cpp |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||||||||
| 2 | - | |||||||||||||
| 3 | - | |||||||||||||
| 4 | - | |||||||||||||
| 5 | - | |||||||||||||
| 6 | - | |||||||||||||
| 7 | - | |||||||||||||
| 8 | - | |||||||||||||
| 9 | - | |||||||||||||
| 10 | QSslCipher::QSslCipher() | - | ||||||||||||
| 11 | : d(new QSslCipherPrivate) | - | ||||||||||||
| 12 | { | - | ||||||||||||
| 13 | } executed 8449 times by 17 tests: end of blockExecuted by:
| 8449 | ||||||||||||
| 14 | QSslCipher::QSslCipher(const QString &name) | - | ||||||||||||
| 15 | : d(new QSslCipherPrivate) | - | ||||||||||||
| 16 | { | - | ||||||||||||
| 17 | const auto ciphers = QSslConfiguration::supportedCiphers(); | - | ||||||||||||
| 18 | for (const QSslCipher &cipher : ciphers) { | - | ||||||||||||
| 19 | if (cipher.name() == name
| 13-2756 | ||||||||||||
| 20 | *this = cipher; | - | ||||||||||||
| 21 | return; executed 13 times by 1 test: return;Executed by:
| 13 | ||||||||||||
| 22 | } | - | ||||||||||||
| 23 | } executed 2756 times by 1 test: end of blockExecuted by:
| 2756 | ||||||||||||
| 24 | } executed 30 times by 1 test: end of blockExecuted by:
| 30 | ||||||||||||
| 25 | QSslCipher::QSslCipher(const QString &name, QSsl::SslProtocol protocol) | - | ||||||||||||
| 26 | : d(new QSslCipherPrivate) | - | ||||||||||||
| 27 | { | - | ||||||||||||
| 28 | const auto ciphers = QSslConfiguration::supportedCiphers(); | - | ||||||||||||
| 29 | for (const QSslCipher &cipher : ciphers) { | - | ||||||||||||
| 30 | if (cipher.name() == name
| 0 | ||||||||||||
| 31 | *this = cipher; | - | ||||||||||||
| 32 | return; never executed: return; | 0 | ||||||||||||
| 33 | } | - | ||||||||||||
| 34 | } never executed: end of block | 0 | ||||||||||||
| 35 | } never executed: end of block | 0 | ||||||||||||
| 36 | - | |||||||||||||
| 37 | - | |||||||||||||
| 38 | - | |||||||||||||
| 39 | - | |||||||||||||
| 40 | QSslCipher::QSslCipher(const QSslCipher &other) | - | ||||||||||||
| 41 | : d(new QSslCipherPrivate) | - | ||||||||||||
| 42 | { | - | ||||||||||||
| 43 | *d.data() = *other.d.data(); | - | ||||||||||||
| 44 | } executed 3376 times by 16 tests: end of blockExecuted by:
| 3376 | ||||||||||||
| 45 | - | |||||||||||||
| 46 | - | |||||||||||||
| 47 | - | |||||||||||||
| 48 | - | |||||||||||||
| 49 | QSslCipher::~QSslCipher() | - | ||||||||||||
| 50 | { | - | ||||||||||||
| 51 | } | - | ||||||||||||
| 52 | - | |||||||||||||
| 53 | - | |||||||||||||
| 54 | - | |||||||||||||
| 55 | - | |||||||||||||
| 56 | - | |||||||||||||
| 57 | QSslCipher &QSslCipher::operator=(const QSslCipher &other) | - | ||||||||||||
| 58 | { | - | ||||||||||||
| 59 | *d.data() = *other.d.data(); | - | ||||||||||||
| 60 | return executed 733 times by 8 tests: *this;return *this;Executed by:
executed 733 times by 8 tests: return *this;Executed by:
| 733 | ||||||||||||
| 61 | } | - | ||||||||||||
| 62 | bool QSslCipher::operator==(const QSslCipher &other) const | - | ||||||||||||
| 63 | { | - | ||||||||||||
| 64 | return executed 2102 times by 3 tests: d->name == other.d->name && d->protocol == other.d->protocol;return d->name == other.d->name && d->protocol == other.d->protocol;Executed by:
executed 2102 times by 3 tests: return d->name == other.d->name && d->protocol == other.d->protocol;Executed by:
| 2102 | ||||||||||||
| 65 | } | - | ||||||||||||
| 66 | bool QSslCipher::isNull() const | - | ||||||||||||
| 67 | { | - | ||||||||||||
| 68 | return executed 1211 times by 15 tests: d->isNull;return d->isNull;Executed by:
executed 1211 times by 15 tests: return d->isNull;Executed by:
| 1211 | ||||||||||||
| 69 | } | - | ||||||||||||
| 70 | - | |||||||||||||
| 71 | - | |||||||||||||
| 72 | - | |||||||||||||
| 73 | - | |||||||||||||
| 74 | - | |||||||||||||
| 75 | - | |||||||||||||
| 76 | - | |||||||||||||
| 77 | QString QSslCipher::name() const | - | ||||||||||||
| 78 | { | - | ||||||||||||
| 79 | return executed 36207 times by 16 tests: d->name;return d->name;Executed by:
executed 36207 times by 16 tests: return d->name;Executed by:
| 36207 | ||||||||||||
| 80 | } | - | ||||||||||||
| 81 | - | |||||||||||||
| 82 | - | |||||||||||||
| 83 | - | |||||||||||||
| 84 | - | |||||||||||||
| 85 | - | |||||||||||||
| 86 | - | |||||||||||||
| 87 | int QSslCipher::supportedBits()const | - | ||||||||||||
| 88 | { | - | ||||||||||||
| 89 | return never executed: d->supportedBits;return d->supportedBits;never executed: return d->supportedBits; | 0 | ||||||||||||
| 90 | } | - | ||||||||||||
| 91 | - | |||||||||||||
| 92 | - | |||||||||||||
| 93 | - | |||||||||||||
| 94 | - | |||||||||||||
| 95 | - | |||||||||||||
| 96 | - | |||||||||||||
| 97 | int QSslCipher::usedBits() const | - | ||||||||||||
| 98 | { | - | ||||||||||||
| 99 | return executed 1875 times by 15 tests: d->bits;return d->bits;Executed by:
executed 1875 times by 15 tests: return d->bits;Executed by:
| 1875 | ||||||||||||
| 100 | } | - | ||||||||||||
| 101 | - | |||||||||||||
| 102 | - | |||||||||||||
| 103 | - | |||||||||||||
| 104 | - | |||||||||||||
| 105 | QString QSslCipher::keyExchangeMethod() const | - | ||||||||||||
| 106 | { | - | ||||||||||||
| 107 | return never executed: d->keyExchangeMethod;return d->keyExchangeMethod;never executed: return d->keyExchangeMethod; | 0 | ||||||||||||
| 108 | } | - | ||||||||||||
| 109 | - | |||||||||||||
| 110 | - | |||||||||||||
| 111 | - | |||||||||||||
| 112 | - | |||||||||||||
| 113 | QString QSslCipher::authenticationMethod() const | - | ||||||||||||
| 114 | { | - | ||||||||||||
| 115 | return never executed: d->authenticationMethod;return d->authenticationMethod;never executed: return d->authenticationMethod; | 0 | ||||||||||||
| 116 | } | - | ||||||||||||
| 117 | - | |||||||||||||
| 118 | - | |||||||||||||
| 119 | - | |||||||||||||
| 120 | - | |||||||||||||
| 121 | QString QSslCipher::encryptionMethod() const | - | ||||||||||||
| 122 | { | - | ||||||||||||
| 123 | return never executed: d->encryptionMethod;return d->encryptionMethod;never executed: return d->encryptionMethod; | 0 | ||||||||||||
| 124 | } | - | ||||||||||||
| 125 | - | |||||||||||||
| 126 | - | |||||||||||||
| 127 | - | |||||||||||||
| 128 | - | |||||||||||||
| 129 | - | |||||||||||||
| 130 | - | |||||||||||||
| 131 | QString QSslCipher::protocolString() const | - | ||||||||||||
| 132 | { | - | ||||||||||||
| 133 | return executed 720 times by 1 test: d->protocolString;return d->protocolString;Executed by:
executed 720 times by 1 test: return d->protocolString;Executed by:
| 720 | ||||||||||||
| 134 | } | - | ||||||||||||
| 135 | QSsl::SslProtocol QSslCipher::protocol() const | - | ||||||||||||
| 136 | { | - | ||||||||||||
| 137 | return never executed: d->protocol;return d->protocol;never executed: return d->protocol; | 0 | ||||||||||||
| 138 | } | - | ||||||||||||
| 139 | - | |||||||||||||
| 140 | - | |||||||||||||
| 141 | QDebug operator<<(QDebug debug, const QSslCipher &cipher) | - | ||||||||||||
| 142 | { | - | ||||||||||||
| 143 | QDebugStateSaver saver(debug); | - | ||||||||||||
| 144 | debug.resetFormat().nospace().noquote(); | - | ||||||||||||
| 145 | debug << "QSslCipher(name=" << cipher.name() | - | ||||||||||||
| 146 | << ", bits=" << cipher.usedBits() | - | ||||||||||||
| 147 | << ", proto=" << cipher.protocolString() | - | ||||||||||||
| 148 | << ')'; | - | ||||||||||||
| 149 | return executed 720 times by 1 test: debug;return debug;Executed by:
executed 720 times by 1 test: return debug;Executed by:
| 720 | ||||||||||||
| 150 | } | - | ||||||||||||
| 151 | - | |||||||||||||
| 152 | - | |||||||||||||
| 153 | - | |||||||||||||
| Switch to Source code | Preprocessed file |