Changeset View
Changeset View
Standalone View
Standalone View
autotests/odfextractortest.h
Show All 17 Lines | |||||
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
19 | * | 19 | * | ||
20 | */ | 20 | */ | ||
21 | 21 | | |||
22 | #ifndef ODFEXTRACTORTEST_H | 22 | #ifndef ODFEXTRACTORTEST_H | ||
23 | #define ODFEXTRACTORTEST_H | 23 | #define ODFEXTRACTORTEST_H | ||
24 | 24 | | |||
25 | #include <QObject> | 25 | #include <QObject> | ||
26 | #include <QMimeDatabase> | ||||
26 | 27 | | |||
27 | class OdfExtractorTest : public QObject | 28 | class OdfExtractorTest : public QObject | ||
28 | { | 29 | { | ||
29 | Q_OBJECT | 30 | Q_OBJECT | ||
30 | private: | 31 | private: | ||
31 | QString testFilePath(const QString& fileName) const; | 32 | QString testFilePath(const QString& fileName) const; | ||
32 | 33 | | |||
33 | private Q_SLOTS: | 34 | private Q_SLOTS: | ||
34 | void testText(); | 35 | void testText(); | ||
35 | void testTextMetaDataOnly(); | 36 | void testTextMetaDataOnly(); | ||
36 | 37 | | |||
37 | void testPresentation(); | 38 | void testPresentation(); | ||
38 | 39 | | |||
39 | void testTextMissingMetaNoCrash(); | 40 | void testTextMissingMetaNoCrash(); | ||
40 | void testTextMissingContentNoCrash(); | 41 | void testTextMissingContentNoCrash(); | ||
42 | | ||||
43 | private: | ||||
44 | QMimeDatabase mimeDb; | ||||
41 | }; | 45 | }; | ||
42 | 46 | | |||
43 | #endif // ODFEXTRACTORTEST_H | 47 | #endif // ODFEXTRACTORTEST_H |