Differential D5279 Diff 13063 plugins/filetemplates/tests/data/testgenerationtest/templates/test_qtestlib/class.h
Changeset View
Changeset View
Standalone View
Standalone View
plugins/filetemplates/tests/data/testgenerationtest/templates/test_qtestlib/class.h
Show All 9 Lines | |||||
10 | 10 | | |||
11 | 11 | | |||
12 | #include <QTest> | 12 | #include <QTest> | ||
13 | 13 | | |||
14 | 14 | | |||
15 | class {{ name }} : public QObject | 15 | class {{ name }} : public QObject | ||
16 | { | 16 | { | ||
17 | Q_OBJECT | 17 | Q_OBJECT | ||
18 | private slots: | 18 | private Q_SLOTS: | ||
19 | void initTestCase(); | 19 | void initTestCase(); | ||
20 | void cleanupTestCase(); | 20 | void cleanupTestCase(); | ||
21 | 21 | | |||
22 | 22 | | |||
23 | void init(); | 23 | void init(); | ||
24 | void cleanup(); | 24 | void cleanup(); | ||
25 | 25 | | |||
26 | 26 | | |||
27 | {% for case in testCases %} | 27 | {% for case in testCases %} | ||
28 | void {{ case }}(); | 28 | void {{ case }}(); | ||
29 | {% endfor %} | 29 | {% endfor %} | ||
30 | }; | 30 | }; | ||
31 | 31 | | |||
32 | 32 | | |||
33 | #endif // {{ name|upper }}_H | 33 | #endif // {{ name|upper }}_H | ||
34 | No newline at end of file | 34 | No newline at end of file |