Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/plasma_surface_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 "kwin_wayland_test.h" | 20 | #include "kwin_wayland_test.h" | ||
21 | #include "abstract_client.h" | ||||
21 | #include "platform.h" | 22 | #include "platform.h" | ||
22 | #include "cursor.h" | 23 | #include "cursor.h" | ||
23 | #include "xdgshellclient.h" | | |||
24 | #include "screens.h" | 24 | #include "screens.h" | ||
25 | #include "wayland_server.h" | 25 | #include "wayland_server.h" | ||
26 | #include "workspace.h" | 26 | #include "workspace.h" | ||
27 | #include <KWayland/Client/connection_thread.h> | 27 | #include <KWayland/Client/connection_thread.h> | ||
28 | #include <KWayland/Client/compositor.h> | 28 | #include <KWayland/Client/compositor.h> | ||
29 | #include <KWayland/Client/event_queue.h> | 29 | #include <KWayland/Client/event_queue.h> | ||
30 | #include <KWayland/Client/plasmashell.h> | 30 | #include <KWayland/Client/plasmashell.h> | ||
31 | #include <KWayland/Client/registry.h> | 31 | #include <KWayland/Client/registry.h> | ||
Show All 33 Lines | |||||
65 | 65 | | |||
66 | private: | 66 | private: | ||
67 | KWayland::Client::Compositor *m_compositor = nullptr; | 67 | KWayland::Client::Compositor *m_compositor = nullptr; | ||
68 | PlasmaShell *m_plasmaShell = nullptr; | 68 | PlasmaShell *m_plasmaShell = nullptr; | ||
69 | }; | 69 | }; | ||
70 | 70 | | |||
71 | void PlasmaSurfaceTest::initTestCase() | 71 | void PlasmaSurfaceTest::initTestCase() | ||
72 | { | 72 | { | ||
73 | qRegisterMetaType<KWin::XdgShellClient *>(); | 73 | qRegisterMetaType<KWin::AbstractClient *>(); | ||
74 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 74 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
75 | QVERIFY(workspaceCreatedSpy.isValid()); | 75 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
76 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 76 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
77 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 77 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
78 | kwinApp()->start(); | 78 | kwinApp()->start(); | ||
79 | QVERIFY(workspaceCreatedSpy.wait()); | 79 | QVERIFY(workspaceCreatedSpy.wait()); | ||
80 | } | 80 | } | ||
81 | 81 | | |||
▲ Show 20 Lines • Show All 358 Lines • Show Last 20 Lines |