Changeset View
Changeset View
Standalone View
Standalone View
autotests/krununittest.h
Show All 16 Lines | |||||
17 | * Boston, MA 02110-1301, USA. | 17 | * Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #ifndef KRUNUNITTEST_H | 20 | #ifndef KRUNUNITTEST_H | ||
21 | #define KRUNUNITTEST_H | 21 | #define KRUNUNITTEST_H | ||
22 | 22 | | |||
23 | #include <QObject> | 23 | #include <QObject> | ||
24 | #include <QStringList> | 24 | #include <QStringList> | ||
25 | #include "kiowidgets_export.h" | ||||
25 | 26 | | |||
26 | class KRunUnitTest : public QObject | 27 | class KRunUnitTest : public QObject | ||
27 | { | 28 | { | ||
28 | Q_OBJECT | 29 | Q_OBJECT | ||
29 | 30 | | |||
30 | private Q_SLOTS: | 31 | private Q_SLOTS: | ||
31 | void initTestCase(); | 32 | void initTestCase(); | ||
32 | void cleanupTestCase(); | 33 | void cleanupTestCase(); | ||
33 | void testExecutableName_data(); | 34 | void testExecutableName_data(); | ||
34 | void testExecutableName(); | 35 | void testExecutableName(); | ||
35 | void testProcessDesktopExec(); | 36 | void testProcessDesktopExec(); | ||
36 | void testProcessDesktopExecNoFile_data(); | 37 | void testProcessDesktopExecNoFile_data(); | ||
37 | void testProcessDesktopExecNoFile(); | 38 | void testProcessDesktopExecNoFile(); | ||
38 | void testKtelnetservice(); | 39 | void testKtelnetservice(); | ||
39 | 40 | | |||
40 | void testMimeTypeFile(); | 41 | void testMimeTypeFile(); | ||
41 | void testMimeTypeDirectory(); | 42 | void testMimeTypeDirectory(); | ||
42 | void testMimeTypeBrokenLink(); | 43 | void testMimeTypeBrokenLink(); | ||
43 | void testMimeTypeDoesNotExist(); | 44 | void testMimeTypeDoesNotExist(); | ||
44 | 45 | | |||
46 | #if KIOWIDGETS_BUILD_DEPRECATED_SINCE(5, 71) | ||||
45 | void KRunRunService_data(); | 47 | void KRunRunService_data(); | ||
46 | void KRunRunService(); | 48 | void KRunRunService(); | ||
49 | #endif | ||||
47 | private: | 50 | private: | ||
48 | QString createTempService(); | 51 | QString createTempService(); | ||
49 | 52 | | |||
50 | QString m_sh; | 53 | QString m_sh; | ||
51 | QStringList m_filesToRemove; | 54 | QStringList m_filesToRemove; | ||
52 | 55 | | |||
53 | }; | 56 | }; | ||
54 | 57 | | |||
55 | #endif /* KRUNUNITTEST_H */ | 58 | #endif /* KRUNUNITTEST_H */ | ||
56 | 59 | |