Changeset View
Changeset View
Standalone View
Standalone View
autotests/kservicetest.h
Show All 12 Lines | |||||
13 | * You should have received a copy of the GNU Library General Public License | 13 | * You should have received a copy of the GNU Library General Public License | ||
14 | * along with this library; see the file COPYING.LIB. If not, write to | 14 | * along with this library; see the file COPYING.LIB. If not, write to | ||
15 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 15 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
16 | * Boston, MA 02110-1301, USA. | 16 | * Boston, MA 02110-1301, USA. | ||
17 | */ | 17 | */ | ||
18 | #ifndef KSERVICETEST_H | 18 | #ifndef KSERVICETEST_H | ||
19 | #define KSERVICETEST_H | 19 | #define KSERVICETEST_H | ||
20 | 20 | | |||
21 | #include <kservice_export.h> | ||||
22 | | ||||
21 | #include <QAtomicInt> | 23 | #include <QAtomicInt> | ||
22 | #include <QObject> | 24 | #include <QObject> | ||
23 | 25 | | |||
24 | class KServiceTest : public QObject | 26 | class KServiceTest : public QObject | ||
25 | { | 27 | { | ||
26 | Q_OBJECT | 28 | Q_OBJECT | ||
27 | public: | 29 | public: | ||
28 | KServiceTest() : m_sycocaUpdateDone(0) {} | 30 | KServiceTest() : m_sycocaUpdateDone(0) {} | ||
29 | private Q_SLOTS: | 31 | private Q_SLOTS: | ||
30 | void initTestCase(); | 32 | void initTestCase(); | ||
33 | #if KSERVICE_ENABLE_DEPRECATED_SINCE(5, 0) | ||||
31 | void testKPluginMetaData(); | 34 | void testKPluginMetaData(); | ||
35 | #endif | ||||
32 | void cleanupTestCase(); | 36 | void cleanupTestCase(); | ||
33 | void testByName(); | 37 | void testByName(); | ||
34 | void testConstructorFullPath(); | 38 | void testConstructorFullPath(); | ||
35 | void testConstructorKDesktopFileFullPath(); | 39 | void testConstructorKDesktopFileFullPath(); | ||
36 | void testConstructorKDesktopFile(); | 40 | void testConstructorKDesktopFile(); | ||
37 | void testCopyConstructor(); | 41 | void testCopyConstructor(); | ||
38 | void testCopyInvalidService(); | 42 | void testCopyInvalidService(); | ||
39 | void testProperty(); | 43 | void testProperty(); | ||
Show All 34 Lines |