Changeset View
Changeset View
Standalone View
Standalone View
kcmkwin/kwincompositing/test/effectmodeltest.cpp
Show All 15 Lines | |||||
16 | * * | 16 | * * | ||
17 | * You should have received a copy of the GNU General Public License * | 17 | * You should have received a copy of the GNU General Public License * | ||
18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. * | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. * | ||
19 | **************************************************************************/ | 19 | **************************************************************************/ | ||
20 | 20 | | |||
21 | #include "modeltest.h" | 21 | #include "modeltest.h" | ||
22 | #include "../model.h" | 22 | #include "../model.h" | ||
23 | #include "effectmodeltest.h" | 23 | #include "effectmodeltest.h" | ||
24 | | ||||
25 | #include "effectmodel.h" | ||||
26 | | ||||
24 | #include <QtTest> | 27 | #include <QtTest> | ||
25 | 28 | | |||
26 | EffectModelTest::EffectModelTest(QObject *parent) | 29 | EffectModelTest::EffectModelTest(QObject *parent) | ||
27 | : QObject(parent) { | 30 | : QObject(parent) { | ||
28 | 31 | | |||
29 | } | 32 | } | ||
30 | 33 | | |||
31 | void EffectModelTest::testEffectModel() { | 34 | void EffectModelTest::testEffectModel() { | ||
32 | KWin::Compositing::EffectModel *effectModel = new KWin::Compositing::EffectModel(); | 35 | auto effectModel = new KWin::EffectModel(); | ||
33 | 36 | | |||
34 | new ModelTest(effectModel, this); | 37 | new ModelTest(effectModel, this); | ||
35 | } | 38 | } | ||
36 | 39 | | |||
37 | void EffectModelTest::testEffectFilterModel() { | 40 | void EffectModelTest::testEffectFilterModel() { | ||
38 | KWin::Compositing::EffectFilterModel *model = new KWin::Compositing::EffectFilterModel(); | 41 | KWin::Compositing::EffectFilterModel *model = new KWin::Compositing::EffectFilterModel(); | ||
39 | 42 | | |||
40 | new ModelTest(model, this); | 43 | new ModelTest(model, this); | ||
41 | } | 44 | } | ||
42 | 45 | | |||
43 | QTEST_MAIN(EffectModelTest) | 46 | QTEST_MAIN(EffectModelTest) |