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 #ifndef HTTPOBJECTTEST_H
0009 #define HTTPOBJECTTEST_H
0010 
0011 #include <QObject>
0012 #include <http.h>
0013 
0014 class HeaderObjectTest : public QObject
0015 {
0016     Q_OBJECT
0017 private Q_SLOTS:
0018     void runAllTests();
0019 };
0020 
0021 class TestHTTPProtocol : public HTTPProtocol
0022 {
0023     Q_OBJECT
0024 public:
0025     TestHTTPProtocol(const QByteArray &protocol, const QByteArray &pool, const QByteArray &app);
0026     ~TestHTTPProtocol() override;
0027 
0028     void testParseContentDisposition(const QString &disposition);
0029 };
0030 
0031 #endif // HTTPOBJECTTEST_H