Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/generic_scene_opengl_test.cpp
Show All 12 Lines | |||||
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | GNU General Public License for more details. | 15 | GNU General Public License for more details. | ||
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 | #include "generic_scene_opengl_test.h" | 20 | #include "generic_scene_opengl_test.h" | ||
21 | #include "abstract_client.h" | ||||
21 | #include "composite.h" | 22 | #include "composite.h" | ||
22 | #include "effectloader.h" | 23 | #include "effectloader.h" | ||
23 | #include "cursor.h" | 24 | #include "cursor.h" | ||
24 | #include "platform.h" | 25 | #include "platform.h" | ||
25 | #include "scene.h" | 26 | #include "scene.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::XdgShellClient *>(); | | |||
53 | qRegisterMetaType<KWin::AbstractClient*>(); | 52 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
54 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 53 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
55 | QVERIFY(workspaceCreatedSpy.isValid()); | 54 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
56 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 55 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
57 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 56 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
58 | 57 | | |||
59 | // disable all effects - we don't want to have it interact with the rendering | 58 | // disable all effects - we don't want to have it interact with the rendering | ||
60 | auto config = KSharedConfig::openConfig(QString(), KConfig::SimpleConfig); | 59 | auto config = KSharedConfig::openConfig(QString(), KConfig::SimpleConfig); | ||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |