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 8431 times by 17 tests: end of block Executed by:
| 8431 | ||||||||||||
14 | QSslCipher::QSslCipher(const QString &name) | - | ||||||||||||
15 | : d(new QSslCipherPrivate) | - | ||||||||||||
16 | { | - | ||||||||||||
17 | for (QForeachContainer<typename QtPrivate::remove_reference<decltype(QSslConfiguration::supportedCiphers())>::type> _container_((QSslConfiguration::supportedCiphers())); _container_.control && _container_.i != _container_.e; ++_container_.i, _container_.control ^= 1) for (const QSslCipher &cipher = *_container_.i; _container_.control; _container_.control = 0) { | - | ||||||||||||
18 | if (cipher.name() == name
| 11-2689 | ||||||||||||
19 | *this = cipher; | - | ||||||||||||
20 | return; executed 11 times by 1 test: return; Executed by:
| 11 | ||||||||||||
21 | } | - | ||||||||||||
22 | } executed 2689 times by 1 test: end of block Executed by:
| 2689 | ||||||||||||
23 | } executed 30 times by 1 test: end of block Executed by:
| 30 | ||||||||||||
24 | QSslCipher::QSslCipher(const QString &name, QSsl::SslProtocol protocol) | - | ||||||||||||
25 | : d(new QSslCipherPrivate) | - | ||||||||||||
26 | { | - | ||||||||||||
27 | for (QForeachContainer<typename QtPrivate::remove_reference<decltype(QSslConfiguration::supportedCiphers())>::type> _container_((QSslConfiguration::supportedCiphers())); _container_.control && _container_.i != _container_.e; ++_container_.i, _container_.control ^= 1) for (const QSslCipher &cipher = *_container_.i; _container_.control; _container_.control = 0) { | - | ||||||||||||
28 | if (cipher.name() == name
| 0 | ||||||||||||
29 | *this = cipher; | - | ||||||||||||
30 | return; never executed: return; | 0 | ||||||||||||
31 | } | - | ||||||||||||
32 | } never executed: end of block | 0 | ||||||||||||
33 | } never executed: end of block | 0 | ||||||||||||
34 | - | |||||||||||||
35 | - | |||||||||||||
36 | - | |||||||||||||
37 | - | |||||||||||||
38 | QSslCipher::QSslCipher(const QSslCipher &other) | - | ||||||||||||
39 | : d(new QSslCipherPrivate) | - | ||||||||||||
40 | { | - | ||||||||||||
41 | *d.data() = *other.d.data(); | - | ||||||||||||
42 | } executed 3361 times by 16 tests: end of block Executed by:
| 3361 | ||||||||||||
43 | - | |||||||||||||
44 | - | |||||||||||||
45 | - | |||||||||||||
46 | - | |||||||||||||
47 | QSslCipher::~QSslCipher() | - | ||||||||||||
48 | { | - | ||||||||||||
49 | } | - | ||||||||||||
50 | - | |||||||||||||
51 | - | |||||||||||||
52 | - | |||||||||||||
53 | - | |||||||||||||
54 | - | |||||||||||||
55 | QSslCipher &QSslCipher::operator=(const QSslCipher &other) | - | ||||||||||||
56 | { | - | ||||||||||||
57 | *d.data() = *other.d.data(); | - | ||||||||||||
58 | return executed 724 times by 8 tests: *this;return *this; Executed by:
executed 724 times by 8 tests: return *this; Executed by:
| 724 | ||||||||||||
59 | } | - | ||||||||||||
60 | bool QSslCipher::operator==(const QSslCipher &other) const | - | ||||||||||||
61 | { | - | ||||||||||||
62 | return executed 2102 times by 3 tests: d->name == other.d->namereturn 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:
| 0-2102 | ||||||||||||
63 | } | - | ||||||||||||
64 | bool QSslCipher::isNull() const | - | ||||||||||||
65 | { | - | ||||||||||||
66 | 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 | ||||||||||||
67 | } | - | ||||||||||||
68 | - | |||||||||||||
69 | - | |||||||||||||
70 | - | |||||||||||||
71 | - | |||||||||||||
72 | - | |||||||||||||
73 | - | |||||||||||||
74 | - | |||||||||||||
75 | QString QSslCipher::name() const | - | ||||||||||||
76 | { | - | ||||||||||||
77 | return executed 36004 times by 16 tests: d->name;return d->name; Executed by:
executed 36004 times by 16 tests: return d->name; Executed by:
| 36004 | ||||||||||||
78 | } | - | ||||||||||||
79 | - | |||||||||||||
80 | - | |||||||||||||
81 | - | |||||||||||||
82 | - | |||||||||||||
83 | - | |||||||||||||
84 | - | |||||||||||||
85 | int QSslCipher::supportedBits()const | - | ||||||||||||
86 | { | - | ||||||||||||
87 | return never executed: d->supportedBits;return d->supportedBits; never executed: return d->supportedBits; | 0 | ||||||||||||
88 | } | - | ||||||||||||
89 | - | |||||||||||||
90 | - | |||||||||||||
91 | - | |||||||||||||
92 | - | |||||||||||||
93 | - | |||||||||||||
94 | - | |||||||||||||
95 | int QSslCipher::usedBits() const | - | ||||||||||||
96 | { | - | ||||||||||||
97 | 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 | ||||||||||||
98 | } | - | ||||||||||||
99 | - | |||||||||||||
100 | - | |||||||||||||
101 | - | |||||||||||||
102 | - | |||||||||||||
103 | QString QSslCipher::keyExchangeMethod() const | - | ||||||||||||
104 | { | - | ||||||||||||
105 | return never executed: d->keyExchangeMethod;return d->keyExchangeMethod; never executed: return d->keyExchangeMethod; | 0 | ||||||||||||
106 | } | - | ||||||||||||
107 | - | |||||||||||||
108 | - | |||||||||||||
109 | - | |||||||||||||
110 | - | |||||||||||||
111 | QString QSslCipher::authenticationMethod() const | - | ||||||||||||
112 | { | - | ||||||||||||
113 | return never executed: d->authenticationMethod;return d->authenticationMethod; never executed: return d->authenticationMethod; | 0 | ||||||||||||
114 | } | - | ||||||||||||
115 | - | |||||||||||||
116 | - | |||||||||||||
117 | - | |||||||||||||
118 | - | |||||||||||||
119 | QString QSslCipher::encryptionMethod() const | - | ||||||||||||
120 | { | - | ||||||||||||
121 | return never executed: d->encryptionMethod;return d->encryptionMethod; never executed: return d->encryptionMethod; | 0 | ||||||||||||
122 | } | - | ||||||||||||
123 | - | |||||||||||||
124 | - | |||||||||||||
125 | - | |||||||||||||
126 | - | |||||||||||||
127 | - | |||||||||||||
128 | - | |||||||||||||
129 | QString QSslCipher::protocolString() const | - | ||||||||||||
130 | { | - | ||||||||||||
131 | 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 | ||||||||||||
132 | } | - | ||||||||||||
133 | QSsl::SslProtocol QSslCipher::protocol() const | - | ||||||||||||
134 | { | - | ||||||||||||
135 | return never executed: d->protocol;return d->protocol; never executed: return d->protocol; | 0 | ||||||||||||
136 | } | - | ||||||||||||
137 | - | |||||||||||||
138 | - | |||||||||||||
139 | QDebug operator<<(QDebug debug, const QSslCipher &cipher) | - | ||||||||||||
140 | { | - | ||||||||||||
141 | QDebugStateSaver saver(debug); | - | ||||||||||||
142 | debug.resetFormat().nospace().noquote(); | - | ||||||||||||
143 | debug << "QSslCipher(name=" << cipher.name() | - | ||||||||||||
144 | << ", bits=" << cipher.usedBits() | - | ||||||||||||
145 | << ", proto=" << cipher.protocolString() | - | ||||||||||||
146 | << ')'; | - | ||||||||||||
147 | return executed 720 times by 1 test: debug;return debug; Executed by:
executed 720 times by 1 test: return debug; Executed by:
| 720 | ||||||||||||
148 | } | - | ||||||||||||
149 | - | |||||||||||||
150 | - | |||||||||||||
151 | - | |||||||||||||
Switch to Source code | Preprocessed file |