Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/effects/windowgeometry_test.cpp
Show All 17 Lines | |||||
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 | #include "kwin_wayland_test.h" | 20 | #include "kwin_wayland_test.h" | ||
21 | #include "composite.h" | 21 | #include "composite.h" | ||
22 | #include "effects.h" | 22 | #include "effects.h" | ||
23 | #include "effectloader.h" | 23 | #include "effectloader.h" | ||
24 | #include "cursor.h" | 24 | #include "cursor.h" | ||
25 | #include "platform.h" | 25 | #include "platform.h" | ||
26 | #include "shell_client.h" | 26 | #include "xdgshellclient.h" | ||
27 | #include "wayland_server.h" | 27 | #include "wayland_server.h" | ||
28 | #include "workspace.h" | 28 | #include "workspace.h" | ||
29 | #include "effect_builtins.h" | 29 | #include "effect_builtins.h" | ||
30 | 30 | | |||
31 | #include <KConfigGroup> | 31 | #include <KConfigGroup> | ||
32 | 32 | | |||
33 | #include <KWayland/Client/buffer.h> | 33 | #include <KWayland/Client/buffer.h> | ||
34 | #include <KWayland/Client/surface.h> | 34 | #include <KWayland/Client/surface.h> | ||
Show All 10 Lines | 43 | private Q_SLOTS: | |||
45 | void init(); | 45 | void init(); | ||
46 | void cleanup(); | 46 | void cleanup(); | ||
47 | 47 | | |||
48 | void testStartup(); | 48 | void testStartup(); | ||
49 | }; | 49 | }; | ||
50 | 50 | | |||
51 | void WindowGeometryTest::initTestCase() | 51 | void WindowGeometryTest::initTestCase() | ||
52 | { | 52 | { | ||
53 | qRegisterMetaType<KWin::ShellClient*>(); | 53 | qRegisterMetaType<KWin::XdgShellClient *>(); | ||
54 | qRegisterMetaType<KWin::AbstractClient*>(); | 54 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
55 | qRegisterMetaType<KWin::Effect*>(); | 55 | qRegisterMetaType<KWin::Effect*>(); | ||
56 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 56 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
57 | QVERIFY(workspaceCreatedSpy.isValid()); | 57 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
58 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 58 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
59 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 59 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
60 | 60 | | |||
61 | // disable all effects - we don't want to have it interact with the rendering | 61 | // disable all effects - we don't want to have it interact with the rendering | ||
Show All 37 Lines |