File indexing completed on 2024-04-21 03:56:30

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 mutateAfterCopy();
0025     void emptyContentsPrefix();
0026     void directories();
0027     void requiredDirectories();
0028     void files();
0029     void requiredFiles();
0030     void path();
0031     void required();
0032     void mimeTypes();
0033     void customContent();
0034 
0035 private:
0036     KPackage::Package ps;
0037     QString m_packagePath;
0038 };
0039 
0040 #endif