| 241 | } |
| 242 | |
| 243 | void TestAuthentication::doTest() |
| 244 | { |
| 245 | QFETCH(QString, url); |
| 246 | QFETCH(Headers, headers); |
| 247 | QFETCH(int, status); |
| 248 | QFETCH(QByteArray, output); |
| 249 | |
| 250 | QUrl urlAux(url); |
| 251 | |
| 252 | auto result = m_engine->createRequest( |
| 253 | "GET", urlAux.path(), urlAux.query(QUrl::FullyEncoded).toLatin1(), headers, nullptr); |
| 254 | |
| 255 | QCOMPARE(result.statusCode, status); |
| 256 | QCOMPARE(result.body, output); |
| 257 | } |
| 258 | |
| 259 | void TestAuthentication::testController_data() |
| 260 | { |
nothing calls this directly
no test coverage detected