Don't use QtTest => use QTest + missing include

This commit is contained in:
Laurent Montel 2023-07-03 21:28:19 +02:00 committed by Vlad Zahorodnii
parent 49a76ea772
commit 86c6238cfa
77 changed files with 138 additions and 62 deletions

View file

@ -8,7 +8,7 @@
*/
#include <QSize>
#include <QtTest>
#include <QTest>
#include "mock_drm.h"

View file

@ -23,6 +23,7 @@
#include <QPainter>
#include <QRasterWindow>
#include <QSignalSpy>
namespace KWin
{

View file

@ -33,6 +33,8 @@
#include <KDecoration2/Decoration>
#include <KDecoration2/DecorationSettings>
#include <QSignalSpy>
#include <linux/input.h>
Q_DECLARE_METATYPE(Qt::WindowFrameSection)

View file

@ -24,6 +24,8 @@
#include <KWayland/Client/shm_pool.h>
#include <KWayland/Client/surface.h>
#include <QSignalSpy>
namespace KWin
{

View file

@ -15,6 +15,8 @@
#include <KDecoration2/Decoration>
#include <QSignalSpy>
namespace KWin
{

View file

@ -16,6 +16,7 @@
#include "window.h"
#include <KConfigGroup>
#include <QSignalSpy>
using namespace KWin;
static const QString s_socketName = QStringLiteral("wayland_test_kwin_scene_opengl-0");

View file

@ -25,6 +25,8 @@
#include <KWayland/Client/shm_pool.h>
#include <KWayland/Client/surface.h>
#include <QSignalSpy>
namespace KWin
{

View file

@ -18,6 +18,7 @@
#include <QPainter>
#include <QRasterWindow>
#include <QSignalSpy>
#include <KWayland/Client/keyboard.h>
#include <KWayland/Client/seat.h>

View file

@ -14,7 +14,8 @@
#include "window.h"
// Qt
#include <QtTest>
#include <QSignalSpy>
#include <QTest>
#include <KWayland/Client/surface.h>
#include <optional>

View file

@ -22,6 +22,7 @@
#include <QDBusConnection>
#include <QDBusMessage>
#include <QDBusPendingReply>
#include <QTemporaryFile>
using namespace KWin;

View file

@ -36,6 +36,7 @@
#include <KGlobalAccel>
#include <QAction>
#include <QSignalSpy>
#include <linux/input.h>

View file

@ -24,6 +24,8 @@
#include <KDecoration2/Decoration>
#include <KDecoration2/DecorationSettings>
#include <QSignalSpy>
using namespace KWin;
static const QString s_socketName = QStringLiteral("wayland_test_kwin_maximized-0");

View file

@ -11,6 +11,8 @@
#include "cursor.h"
#include "wayland_server.h"
#include <QSignalSpy>
namespace KWin
{

View file

@ -23,7 +23,9 @@
#include <KConfigGroup>
#include <KWayland/Client/surface.h>
#include <QAbstractEventDispatcher>
#include <QAction>
#include <QSocketNotifier>
#include <xcb/xcb_icccm.h>

View file

@ -8,6 +8,8 @@
*/
#include <config-kwin.h>
#include <QSignalSpy>
#include "kwin_wayland_test.h"
#if KWIN_BUILD_SCREENLOCKER

View file

@ -22,6 +22,7 @@
#include <KWayland/Client/touch.h>
#include <QAction>
#include <QSignalSpy>
namespace KWin
{

View file

@ -29,6 +29,8 @@
#include <KWayland/Client/surface.h>
#include <KWayland/Client/touch.h>
#include <QSignalSpy>
struct PopupLayout
{
QRect anchorRect;

View file

@ -15,6 +15,7 @@
#include "workspace.h"
#include "x11window.h"
#include <QAbstractEventDispatcher>
#include <QSocketNotifier>
#include <netwm.h>

View file

@ -18,6 +18,7 @@
#include <QProcess>
#include <QProcessEnvironment>
#include <QSignalSpy>
using namespace KWin;

View file

@ -15,7 +15,8 @@
#include <QDBusConnection>
#include <QDBusInterface>
#include <QtTest>
#include <QSignalSpy>
#include <QTest>
#include <linux/input.h>

View file

@ -11,7 +11,7 @@
#include "backends/libinput/device.h"
#include "backends/libinput/events.h"
#include <QtTest>
#include <QTest>
#include <linux/input.h>

View file

@ -11,7 +11,7 @@
#include "backends/libinput/device.h"
#include "input_event.h"
#include <QtTest>
#include <QTest>
Q_DECLARE_METATYPE(KWin::SwitchEvent::State);

View file

@ -11,7 +11,7 @@
#include "backends/libinput/device.h"
#include "backends/libinput/events.h"
#include <QtTest>
#include <QTest>
#include <linux/input.h>

View file

@ -11,7 +11,7 @@
#include "backends/libinput/device.h"
#include "backends/libinput/events.h"
#include <QtTest>
#include <QTest>
#include <linux/input.h>

View file

@ -11,7 +11,7 @@
#include "backends/libinput/device.h"
#include "backends/libinput/events.h"
#include <QtTest>
#include <QTest>
#include <memory>

View file

@ -11,7 +11,7 @@
#include "backends/libinput/device.h"
#include "backends/libinput/events.h"
#include <QtTest>
#include <QTest>
#include <linux/input.h>

View file

@ -9,7 +9,7 @@
#include "libkwineffects/kwineffects.h"
#include <QtTest>
#include <QTest>
using namespace std::chrono_literals;

View file

@ -8,7 +8,7 @@
*/
#include "utils/abstract_opengl_context_attribute_builder.h"
#include "utils/egl_context_attribute_builder.h"
#include <QtTest>
#include <QTest>
#include <epoxy/egl.h>
#include "libkwineffects/kwinconfig.h"

View file

@ -12,7 +12,9 @@
#include "utils/xcbutils.h"
// Qt
#include <QApplication>
#include <QtTest>
#include <QLoggingCategory>
#include <QSignalSpy>
#include <QTest>
#include <private/qtx11extras_p.h>
// xcb
#include <xcb/xcb.h>

View file

@ -15,7 +15,7 @@
#include "utils/ramfile.h"
#include <QtTest>
#include <QTest>
using namespace KWin;

View file

@ -12,7 +12,8 @@
#include <KConfigGroup>
#include <QAction>
#include <QtTest>
#include <QSignalSpy>
#include <QTest>
namespace KWin
{

View file

@ -15,7 +15,7 @@
#include <QGraphicsScale>
#include <QVector2D>
#include <QtTest>
#include <QTest>
using namespace KWin;

View file

@ -11,9 +11,9 @@
#include "utils/xcbutils.h"
// Qt
#include <QApplication>
#include <QtTest>
#include <private/qtx11extras_p.h>
#include <QTest>
#include <netwm.h>
#include <private/qtx11extras_p.h>
// xcb
#include <xcb/xcb.h>
#include <xcb/xcb_icccm.h>

View file

@ -11,7 +11,7 @@
#include "utils/xcbutils.h"
// Qt
#include <QApplication>
#include <QtTest>
#include <QTest>
#include <private/qtx11extras_p.h>
// xcb
#include <xcb/xcb.h>

View file

@ -11,9 +11,9 @@
#include "utils/xcbutils.h"
// Qt
#include <QApplication>
#include <QtTest>
#include <private/qtx11extras_p.h>
#include <QTest>
#include <netwm.h>
#include <private/qtx11extras_p.h>
// xcb
#include <xcb/xcb.h>

View file

@ -8,7 +8,7 @@
*/
#include "xkb.h"
#include <QtTest>
#include <QTest>
#include <xkbcommon/xkbcommon-keysyms.h>
using namespace KWin;

View file

@ -4,7 +4,9 @@
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
// Qt
#include <QtTest>
#include <QMimeType>
#include <QSignalSpy>
#include <QTest>
#include "wayland/compositor_interface.h"
#include "wayland/datadevicemanager_interface.h"

View file

@ -5,7 +5,9 @@
*/
// Qt
#include <QMimeDatabase>
#include <QtTest>
#include <QSignalSpy>
#include <QTemporaryFile>
#include <QTest>
#include "wayland/datadevicemanager_interface.h"
#include "wayland/datasource_interface.h"

View file

@ -4,7 +4,9 @@
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
// Qt
#include <QtTest>
#include <QMimeType>
#include <QSignalSpy>
#include <QTest>
// KWin
#include "wayland/compositor_interface.h"
#include "wayland/datadevicemanager_interface.h"

View file

@ -4,7 +4,8 @@
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
// Qt
#include <QtTest>
#include <QSignalSpy>
#include <QTest>
// server
#include "wayland/compositor_interface.h"

View file

@ -4,7 +4,8 @@
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
// Qt
#include <QtTest>
#include <QSignalSpy>
#include <QTest>
// client
#include "KWayland/Client/connection_thread.h"
#include "KWayland/Client/event_queue.h"

View file

@ -4,7 +4,8 @@
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
// Qt
#include <QtTest>
#include <QSignalSpy>
#include <QTest>
// KWin
#include "wayland/compositor_interface.h"
#include "wayland/display.h"

View file

@ -4,7 +4,8 @@
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
// Qt
#include <QtTest>
#include <QSignalSpy>
#include <QTest>
// KWin
#include "wayland/compositor_interface.h"
#include "wayland/display.h"

View file

@ -4,7 +4,8 @@
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
// Qt
#include <QtTest>
#include <QSignalSpy>
#include <QTest>
// KWayland
#include "wayland/compositor_interface.h"
#include "wayland/display.h"

View file

@ -4,7 +4,8 @@
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
// Qt
#include <QtTest>
#include <QSignalSpy>
#include <QTest>
// client
#include "KWayland/Client/compositor.h"
#include "KWayland/Client/connection_thread.h"

View file

@ -4,7 +4,8 @@
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
// Qt
#include <QtTest>
#include <QSignalSpy>
#include <QTest>
// client
#include "KWayland/Client/compositor.h"
#include "KWayland/Client/connection_thread.h"

View file

@ -4,7 +4,8 @@
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
// Qt
#include <QtTest>
#include <QSignalSpy>
#include <QTest>
// KWin
#include "wayland/compositor_interface.h"
#include "wayland/display.h"

View file

@ -5,7 +5,8 @@
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
// Qt
#include <QtTest>
#include <QSignalSpy>
#include <QTest>
// KWin
#include "wayland/compositor_interface.h"
#include "wayland/display.h"

View file

@ -4,7 +4,8 @@
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
// Qt
#include <QtTest>
#include <QSignalSpy>
#include <QTest>
// client
#include "KWayland/Client/compositor.h"
#include "KWayland/Client/connection_thread.h"

View file

@ -5,7 +5,8 @@
*/
// Qt
#include <QImage>
#include <QtTest>
#include <QSignalSpy>
#include <QTest>
// KWin
#include "wayland/compositor_interface.h"
#include "wayland/display.h"

View file

@ -4,7 +4,8 @@
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
// Qt
#include <QtTest>
#include <QSignalSpy>
#include <QTest>
// client
#include "KWayland/Client/compositor.h"
#include "KWayland/Client/connection_thread.h"

View file

@ -5,7 +5,8 @@
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
// Qt
#include <QtTest>
#include <QSignalSpy>
#include <QTest>
// KWin
#include "wayland/appmenu_interface.h"
#include "wayland/compositor_interface.h"

View file

@ -4,7 +4,8 @@
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
// Qt
#include <QtTest>
#include <QSignalSpy>
#include <QTest>
// KWin
#include "wayland/blur_interface.h"
#include "wayland/compositor_interface.h"

View file

@ -5,7 +5,8 @@
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
// Qt
#include <QtTest>
#include <QSignalSpy>
#include <QTest>
// KWin
#include "wayland/compositor_interface.h"
#include "wayland/contrast_interface.h"

View file

@ -4,7 +4,8 @@
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
// Qt
#include <QtTest>
#include <QSignalSpy>
#include <QTest>
// KWin
#include "wayland/blur_interface.h"
#include "wayland/compositor_interface.h"

View file

@ -4,7 +4,8 @@
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
// Qt
#include <QtTest>
#include <QSignalSpy>
#include <QTest>
// KWin
#include "wayland/display.h"
#include "wayland/output_interface.h"

View file

@ -4,7 +4,9 @@
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
// Qt
#include <QtTest>
#include <QMimeType>
#include <QSignalSpy>
#include <QTest>
// KWin
#include "wayland/compositor_interface.h"
#include "wayland/datadevicemanager_interface.h"

View file

@ -4,7 +4,8 @@
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
// Qt
#include <QtTest>
#include <QSignalSpy>
#include <QTest>
// KWin
#include "wayland/compositor_interface.h"
#include "wayland/display.h"

View file

@ -4,7 +4,8 @@
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
// Qt
#include <QtTest>
#include <QSignalSpy>
#include <QTest>
// KWin
#include "wayland/compositor_interface.h"
#include "wayland/display.h"

View file

@ -6,7 +6,8 @@
// Qt
#include <QImage>
#include <QPainter>
#include <QtTest>
#include <QSignalSpy>
#include <QTest>
// KWin
#include "core/graphicsbuffer.h"
#include "core/graphicsbufferview.h"

View file

@ -4,7 +4,8 @@
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
// Qt
#include <QtTest>
#include <QSignalSpy>
#include <QTest>
// KWin
#include "wayland/compositor_interface.h"
#include "wayland/display.h"

View file

@ -4,7 +4,8 @@
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
// Qt
#include <QtTest>
#include <QSignalSpy>
#include <QTest>
// KWin
#include "wayland/compositor_interface.h"
#include "wayland/display.h"

View file

@ -5,7 +5,8 @@
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
// Qt
#include <QtTest>
#include <QSignalSpy>
#include <QTest>
// KWin
#include "wayland/compositor_interface.h"
#include "wayland/display.h"

View file

@ -4,7 +4,8 @@
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
// Qt
#include <QtTest>
#include <QSignalSpy>
#include <QTest>
// KWin
#include "wayland/display.h"
#include "wayland/output_interface.h"

View file

@ -6,7 +6,8 @@
*/
// Qt
#include <QtTest>
#include <QSignalSpy>
#include <QTest>
// client
#include "KWayland/Client/compositor.h"
#include "KWayland/Client/connection_thread.h"

View file

@ -7,8 +7,9 @@
// Qt
#include <QHash>
#include <QSignalSpy>
#include <QTest>
#include <QThread>
#include <QtTest>
// WaylandServer
#include "wayland/compositor_interface.h"

View file

@ -4,7 +4,8 @@
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
// Qt
#include <QtTest>
#include <QSignalSpy>
#include <QTest>
// WaylandServer
#include "wayland/clientconnection.h"
#include "wayland/display.h"

View file

@ -6,8 +6,9 @@
*/
// Qt
#include <QHash>
#include <QSignalSpy>
#include <QTest>
#include <QThread>
#include <QtTest>
#include "../../tests/fakeoutput.h"

View file

@ -6,8 +6,9 @@
// Qt
#include <QHash>
#include <QSignalSpy>
#include <QTest>
#include <QThread>
#include <QtTest>
// WaylandServer
#include "wayland/compositor_interface.h"
#include "wayland/display.h"

View file

@ -4,8 +4,9 @@
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
#include <QSignalSpy>
#include <QTest>
#include <QThread>
#include <QtTest>
#include "wayland/compositor_interface.h"
#include "wayland/display.h"

View file

@ -4,7 +4,8 @@
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
// Qt
#include <QtTest>
#include <QSignalSpy>
#include <QTest>
// WaylandServer
#include "wayland/display.h"

View file

@ -6,8 +6,9 @@
// Qt
#include <QHash>
#include <QSignalSpy>
#include <QTest>
#include <QThread>
#include <QtTest>
#include <wayland-client.h>

View file

@ -4,7 +4,8 @@
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
// Qt
#include <QtTest>
#include <QSignalSpy>
#include <QTest>
// WaylandServer
#include "wayland/display.h"
#include "wayland/keyboard_interface.h"

View file

@ -5,8 +5,9 @@
*/
// Qt
#include <QHash>
#include <QSignalSpy>
#include <QTest>
#include <QThread>
#include <QtTest>
// WaylandServer
#include "wayland/compositor_interface.h"
#include "wayland/display.h"

View file

@ -4,8 +4,9 @@
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
#include <QSignalSpy>
#include <QTest>
#include <QThread>
#include <QtTest>
#include "wayland/compositor_interface.h"
#include "wayland/display.h"

View file

@ -4,8 +4,9 @@
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
#include <QSignalSpy>
#include <QTest>
#include <QThread>
#include <QtTest>
#include "wayland/compositor_interface.h"
#include "wayland/display.h"

View file

@ -4,8 +4,9 @@
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
#include <QSignalSpy>
#include <QTest>
#include <QThread>
#include <QtTest>
#include "wayland/compositor_interface.h"
#include "wayland/display.h"