Changeset View
Changeset View
Standalone View
Standalone View
src/kpasswdserver/autotests/kpasswdservertest.cpp
Show First 20 Lines • Show All 295 Lines • ▼ Show 20 Line(s) | 50 | private Q_SLOTS: | |||
---|---|---|---|---|---|
296 | void testConcurrentQueryAuth() | 296 | void testConcurrentQueryAuth() | ||
297 | { | 297 | { | ||
298 | KPasswdServer server(this); | 298 | KPasswdServer server(this); | ||
299 | server.setWalletDisabled(true); | 299 | server.setWalletDisabled(true); | ||
300 | 300 | | |||
301 | QList<KIO::AuthInfo> authInfos; | 301 | QList<KIO::AuthInfo> authInfos; | ||
302 | for (int i=0; i < 10; ++i) { | 302 | for (int i=0; i < 10; ++i) { | ||
303 | KIO::AuthInfo info; | 303 | KIO::AuthInfo info; | ||
304 | info.url = QUrl("http://www.example.com/test" + QString::number(i) + ".html"); | 304 | info.url = QUrl(QLatin1String("http://www.example.com/test") + QString::number(i) + QStringLiteral(".html")); | ||
dfaure: [strange mix of QLatin1String and QStringLiteral, but harmless] | |||||
305 | authInfos << info; | 305 | authInfos << info; | ||
306 | } | 306 | } | ||
307 | 307 | | |||
308 | // What the user would type | 308 | // What the user would type | ||
309 | KIO::AuthInfo filledInfo; | 309 | KIO::AuthInfo filledInfo; | ||
310 | filledInfo.username = QStringLiteral("bar"); | 310 | filledInfo.username = QStringLiteral("bar"); | ||
311 | filledInfo.password = QStringLiteral("blah"); | 311 | filledInfo.password = QStringLiteral("blah"); | ||
312 | 312 | | |||
313 | QList<KIO::AuthInfo> results; | 313 | QList<KIO::AuthInfo> results; | ||
314 | concurrentQueryAuthWithDialog(server, authInfos, filledInfo, results); | 314 | concurrentQueryAuthWithDialog(server, authInfos, filledInfo, results); | ||
315 | } | 315 | } | ||
316 | 316 | | |||
317 | void testConcurrentCheckAuth() | 317 | void testConcurrentCheckAuth() | ||
318 | { | 318 | { | ||
319 | KPasswdServer server(this); | 319 | KPasswdServer server(this); | ||
320 | server.setWalletDisabled(true); | 320 | server.setWalletDisabled(true); | ||
321 | 321 | | |||
322 | QList<KIO::AuthInfo> authInfos; | 322 | QList<KIO::AuthInfo> authInfos; | ||
323 | for (int i=0; i < 10; ++i) { | 323 | for (int i=0; i < 10; ++i) { | ||
324 | KIO::AuthInfo info; | 324 | KIO::AuthInfo info; | ||
325 | info.url = QUrl("http://www.example.com/test" + QString::number(i) + ".html"); | 325 | info.url = QUrl(QLatin1String("http://www.example.com/test") + QString::number(i) + QStringLiteral(".html")); | ||
dfaure: [same as above] | |||||
326 | authInfos << info; | 326 | authInfos << info; | ||
327 | } | 327 | } | ||
328 | 328 | | |||
329 | // What the user would type | 329 | // What the user would type | ||
330 | KIO::AuthInfo filledInfo; | 330 | KIO::AuthInfo filledInfo; | ||
331 | filledInfo.username = QStringLiteral("bar"); | 331 | filledInfo.username = QStringLiteral("bar"); | ||
332 | filledInfo.password = QStringLiteral("blah"); | 332 | filledInfo.password = QStringLiteral("blah"); | ||
333 | 333 | | |||
▲ Show 20 Lines • Show All 233 Lines • Show Last 20 Lines |
[strange mix of QLatin1String and QStringLiteral, but harmless]