Warning, file /frameworks/karchive/autotests/karchivetest.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* This file is part of the KDE project 0002 SPDX-FileCopyrightText: 2006 David Faure <faure@kde.org> 0003 SPDX-FileCopyrightText: 2012 Mario Bensi <mbensi@ipsquad.net> 0004 0005 SPDX-License-Identifier: LGPL-2.0-or-later 0006 */ 0007 0008 #ifndef KARCHIVETEST_H 0009 #define KARCHIVETEST_H 0010 0011 #include <QObject> 0012 #include <config-compression.h> 0013 0014 class KArchiveTest : public QObject 0015 { 0016 Q_OBJECT 0017 0018 void setupData(); 0019 void setup7ZipData(); 0020 0021 private Q_SLOTS: 0022 void initTestCase(); 0023 0024 void testEmptyFilename(); 0025 void testNullDevice(); 0026 void testNonExistentFile(); 0027 void testCreateTar_data(); 0028 void testCreateTar(); 0029 void testCreateTarXXX_data() 0030 { 0031 setupData(); 0032 } 0033 void testCreateTarXXX(); 0034 void testReadTar_data() 0035 { 0036 setupData(); 0037 } 0038 void testReadTar(); 0039 void testUncompress_data() 0040 { 0041 setupData(); 0042 } 0043 void testUncompress(); 0044 void testTarFileData_data() 0045 { 0046 setupData(); 0047 } 0048 void testTarFileData(); 0049 void testTarCopyTo_data() 0050 { 0051 setupData(); 0052 } 0053 void testTarCopyTo(); 0054 void testTarReadWrite_data() 0055 { 0056 setupData(); 0057 } 0058 void testTarReadWrite(); 0059 void testTarMaxLength_data(); 0060 void testTarMaxLength(); 0061 void testTarGlobalHeader(); 0062 void testTarPrefix(); 0063 void testTarDirectoryForgotten(); 0064 void testTarEmptyFileMissingDir(); 0065 void testTarRootDir(); 0066 void testTarDirectoryTwice(); 0067 void testTarIgnoreRelativePathOutsideArchive(); 0068 void testTarLongNonASCIINames(); 0069 void testTarShortNonASCIINames(); 0070 0071 void testCreateZip(); 0072 void testCreateZipError(); 0073 void testReadZipError(); 0074 void testReadZip(); 0075 void testZipFileData(); 0076 void testZipCopyTo(); 0077 void testZipMaxLength(); 0078 void testZipWithNonLatinFileNames(); 0079 void testZipWithOverwrittenFileName(); 0080 void testZipAddLocalDirectory(); 0081 void testZipReadRedundantDataDescriptor_data(); 0082 void testZipReadRedundantDataDescriptor(); 0083 void testZipDirectoryPermissions(); 0084 void testZipUnusualButValid(); 0085 void testZipDuplicateNames(); 0086 void testZipWithinZip(); 0087 void testZip64(); 0088 0089 void testRcc(); 0090 0091 void testAr(); 0092 0093 #if HAVE_XZ_SUPPORT 0094 void testCreate7Zip_data() 0095 { 0096 setup7ZipData(); 0097 } 0098 void testCreate7Zip(); 0099 void testRead7Zip_data() 0100 { 0101 setup7ZipData(); 0102 } 0103 void testRead7Zip(); 0104 void test7ZipFileData_data() 0105 { 0106 setup7ZipData(); 0107 } 0108 void test7ZipFileData(); 0109 void test7ZipCopyTo_data() 0110 { 0111 setup7ZipData(); 0112 } 0113 void test7ZipCopyTo(); 0114 void test7ZipReadWrite_data() 0115 { 0116 setup7ZipData(); 0117 } 0118 void test7ZipReadWrite(); 0119 void test7ZipMaxLength_data() 0120 { 0121 setup7ZipData(); 0122 } 0123 void test7ZipMaxLength(); 0124 #endif 0125 0126 void cleanupTestCase(); 0127 }; 0128 0129 #endif