File indexing completed on 2024-03-24 15:36:59

0001 /*
0002     SPDX-FileCopyrightText: 2007 Aaron Seigo <aseigo@kde.org>
0003     SPDX-FileCopyrightText: 2014 Marco Martin <mart@kde.org>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-or-later
0006 */
0007 
0008 #ifndef PACKAGESTRUCTURETEST_H
0009 #define PACKAGESTRUCTURETEST_H
0010 
0011 #include <QTest>
0012 
0013 #include "kpackage/package.h"
0014 
0015 class PackageStructureTest : public QObject
0016 {
0017     Q_OBJECT
0018 
0019 private Q_SLOTS:
0020     void initTestCase();
0021     void validStructures();
0022     void validPackages();
0023     void wallpaperPackage();
0024     void copyPerformance();
0025     void mutateAfterCopy();
0026     void emptyContentsPrefix();
0027     void multiplePaths();
0028     void directories();
0029     void requiredDirectories();
0030     void files();
0031     void requiredFiles();
0032     void path();
0033     void name();
0034     void required();
0035     void mimeTypes();
0036     void customContent();
0037 
0038 private:
0039     KPackage::Package ps;
0040     QString m_packagePath;
0041 };
0042 
0043 #endif