Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/generic_scene_opengl_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 "generic_scene_opengl_test.h" | 20 | #include "generic_scene_opengl_test.h" | ||
21 | #include "composite.h" | 21 | #include "composite.h" | ||
22 | #include "effectloader.h" | 22 | #include "effectloader.h" | ||
23 | #include "cursor.h" | 23 | #include "cursor.h" | ||
24 | #include "platform.h" | 24 | #include "platform.h" | ||
25 | #include "scene.h" | 25 | #include "scene.h" | ||
26 | #include "shell_client.h" | 26 | #include "xdgshellclient.h" | ||
27 | #include "wayland_server.h" | 27 | #include "wayland_server.h" | ||
28 | #include "effect_builtins.h" | 28 | #include "effect_builtins.h" | ||
29 | 29 | | |||
30 | #include <KConfigGroup> | 30 | #include <KConfigGroup> | ||
31 | 31 | | |||
32 | using namespace KWin; | 32 | using namespace KWin; | ||
33 | static const QString s_socketName = QStringLiteral("wayland_test_kwin_scene_opengl-0"); | 33 | static const QString s_socketName = QStringLiteral("wayland_test_kwin_scene_opengl-0"); | ||
34 | 34 | | |||
Show All 9 Lines | |||||
44 | 44 | | |||
45 | void GenericSceneOpenGLTest::cleanup() | 45 | void GenericSceneOpenGLTest::cleanup() | ||
46 | { | 46 | { | ||
47 | Test::destroyWaylandConnection(); | 47 | Test::destroyWaylandConnection(); | ||
48 | } | 48 | } | ||
49 | 49 | | |||
50 | void GenericSceneOpenGLTest::initTestCase() | 50 | void GenericSceneOpenGLTest::initTestCase() | ||
51 | { | 51 | { | ||
52 | qRegisterMetaType<KWin::ShellClient*>(); | 52 | qRegisterMetaType<KWin::XdgShellClient *>(); | ||
53 | qRegisterMetaType<KWin::AbstractClient*>(); | 53 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
54 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 54 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
55 | QVERIFY(workspaceCreatedSpy.isValid()); | 55 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
56 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 56 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
57 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 57 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
58 | 58 | | |||
59 | // disable all effects - we don't want to have it interact with the rendering | 59 | // disable all effects - we don't want to have it interact with the rendering | ||
60 | auto config = KSharedConfig::openConfig(QString(), KConfig::SimpleConfig); | 60 | auto config = KSharedConfig::openConfig(QString(), KConfig::SimpleConfig); | ||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |