Warning, file /frameworks/karchive/autotests/kfiltertest.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 * SPDX-FileCopyrightText: 2002-2005 David Faure <faure@kde.org> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 #ifndef KFILTERTEST_H 0007 #define KFILTERTEST_H 0008 0009 #include <QObject> 0010 0011 class KFilterTest : public QObject 0012 { 0013 Q_OBJECT 0014 0015 private Q_SLOTS: 0016 void initTestCase(); 0017 void test_block_write(); 0018 void test_block_read(); 0019 void test_biggerWrites(); 0020 void test_getch(); 0021 void test_textstream(); 0022 void test_readall(); 0023 void test_uncompressed(); 0024 void test_findFilterByMimeType_data(); 0025 void test_findFilterByMimeType(); 0026 void test_deflateWithZlibHeader(); 0027 void test_pushData(); 0028 void test_saveFile_data(); 0029 void test_saveFile(); 0030 void test_twofilesgztogether(); 0031 void test_threefilesgztogether(); 0032 0033 private: 0034 void test_block_write(const QString &fileName, const QByteArray &data, int nTimes = 1); 0035 void test_block_read(const QString &fileName); 0036 void test_getch(const QString &fileName); 0037 void test_textstream(const QString &fileName); 0038 void test_readall(const QString &fileName, const QString &mimeType, const QByteArray &expectedData); 0039 0040 private: 0041 QString pathgz; 0042 QString pathbz2; 0043 QString pathxz; 0044 QString pathnone; 0045 QString pathzstd; 0046 QByteArray testData; 0047 }; 0048 0049 #endif