File indexing completed on 2024-04-28 15:22:15

0001 /*
0002     SPDX-FileCopyrightText: 2014 Vishesh Handa <me@vhanda.in>
0003     SPDX-FileCopyrightText: 2016 Christoph Cullmann <cullmann@kde.org>
0004 
0005     SPDX-License-Identifier: LGPL-2.1-or-later
0006 */
0007 
0008 #ifndef ODFEXTRACTORTEST_H
0009 #define ODFEXTRACTORTEST_H
0010 
0011 #include <QObject>
0012 #include <QMimeDatabase>
0013 
0014 class OdfExtractorTest : public QObject
0015 {
0016     Q_OBJECT
0017 private:
0018     QString testFilePath(const QString& fileName) const;
0019 
0020 private Q_SLOTS:
0021     void testNoExtraction_data();
0022     void testNoExtraction();
0023 
0024     void testText_data();
0025     void testText();
0026 
0027     void testTextMetaDataOnly();
0028 
0029     void testPresentation_data();
0030     void testPresentation();
0031 
0032     void testGraphic_data();
0033     void testGraphic();
0034 
0035     void testTextMissingMetaNoCrash();
0036     void testTextMissingContentNoCrash();
0037 
0038 private:
0039     QMimeDatabase mimeDb;
0040 };
0041 
0042 #endif // ODFEXTRACTORTEST_H