File indexing completed on 2024-04-28 15:25:52

0001 /*
0002     This file is part of the KDE libraries
0003     SPDX-FileCopyrightText: 2012 Rolf Eike Beer <kde@opensource.sf-tec.de>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-or-later
0006 */
0007 
0008 #include "httpobjecttest.h"
0009 
0010 #include <QTest>
0011 
0012 #include <QByteArray>
0013 
0014 QTEST_MAIN(HeaderObjectTest)
0015 
0016 static void runTest()
0017 {
0018     TestHTTPProtocol protocol("http", QByteArray(), "local://");
0019 
0020     protocol.testParseContentDisposition(QStringLiteral("inline; filename=\"foo.pdf\""));
0021 }
0022 
0023 void HeaderObjectTest::runAllTests()
0024 {
0025     runTest();
0026 }
0027 
0028 TestHTTPProtocol::TestHTTPProtocol(const QByteArray &protocol, const QByteArray &pool, const QByteArray &app)
0029     : HTTPProtocol(protocol, pool, app)
0030 {
0031 }
0032 
0033 TestHTTPProtocol::~TestHTTPProtocol()
0034 {
0035 }
0036 
0037 void TestHTTPProtocol::testParseContentDisposition(const QString &disposition)
0038 {
0039     parseContentDisposition(disposition);
0040 }
0041 
0042 #include "moc_httpobjecttest.cpp"