From cb0ac3d471a476376ec4f673c6d9f06315a94fc2 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Thu, 31 Oct 2024 15:26:18 +0100 Subject: [PATCH] Tests: Reduce the number of module includes They are an unnecessary hit on build time. Rewrite the tests using the standard Qt conventions. Change-Id: Iac47e62c58b1805c3b4a0ac4f4b3db206c66cc65 Reviewed-by: Axel Spoerl (cherry picked from commit 6ddf74716d7b2fe0df5dd9c0172f9ecf936d5c5d) Reviewed-by: Qt Cherry-pick Bot --- .../cmake/test_add_resource_prefix/main.cpp | 4 +-- .../cmake/test_concurrent_module/main.cpp | 6 ++-- .../test_widgets_app_deployment/main.cpp | 5 +-- tests/auto/corelib/io/qurl/tst_qurl.cpp | 24 ++++++------- .../qfuturewatcher/tst_qfuturewatcher.cpp | 19 +++++++--- .../qicoimageformat/tst_qicoimageformat.cpp | 12 +++++-- .../qfileopeneventexternal.cpp | 6 ++-- .../gui/platform/qx11info/tst_qx11info.cpp | 5 +-- .../socket/qtcpserver/crashingServer/main.cpp | 7 ++-- .../socket/qudpsocket/clientserver/main.cpp | 6 +++- .../socket/qudpsocket/udpServer/main.cpp | 6 +++- ...qsslsocket_onDemandCertificates_member.cpp | 9 +++-- ...qsslsocket_onDemandCertificates_static.cpp | 9 +++-- ...tworkaccessmanager_and_qprogressdialog.cpp | 17 +++++---- .../other/qobjectrace/tst_qobjectrace.cpp | 9 +++-- .../other/xkbkeyboard/tst_xkbkeyboard.cpp | 7 ++-- .../sql/kernel/qsqldatabase/tst_databases.h | 35 +++++++++--------- .../sql/kernel/qsqlthread/tst_qsqlthread.cpp | 9 +++-- .../qsqlquerymodel/tst_qsqlquerymodel.cpp | 23 ++++++------ .../qsqltablemodel/tst_qsqltablemodel.cpp | 18 ++++++---- .../macdeployqt/source_plugin_tls/main.cpp | 4 ++- .../tools/macdeployqt/tst_macdeployqt.cpp | 8 +++-- .../qt_cmake_create/tst_qt_cmake_create.cpp | 16 ++++----- .../tst_qgraphicsanchorlayout1.cpp | 11 +++--- .../qgraphicslayout/tst_qgraphicslayout.cpp | 15 ++++++-- .../kernel/qboxlayout/tst_qboxlayout.cpp | 15 ++++++-- .../kernel/qgridlayout/tst_qgridlayout.cpp | 22 ++++++------ .../util/qcompleter/tst_qcompleter.cpp | 28 +++++++++++---- .../widgets/util/qscroller/tst_qscroller.cpp | 17 +++++++-- .../widgets/widgets/qmdiarea/tst_qmdiarea.cpp | 36 +++++++++---------- tests/auto/xml/dom/qdom/tst_qdom.cpp | 31 +++++++++------- 31 files changed, 262 insertions(+), 177 deletions(-) diff --git a/tests/auto/cmake/test_add_resource_prefix/main.cpp b/tests/auto/cmake/test_add_resource_prefix/main.cpp index 1a8b37715ba..3cccf067e20 100644 --- a/tests/auto/cmake/test_add_resource_prefix/main.cpp +++ b/tests/auto/cmake/test_add_resource_prefix/main.cpp @@ -1,8 +1,8 @@ // Copyright (C) 2022 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only -#include -#include +#include +#include class TestAddResourcePrefix : public QObject { diff --git a/tests/auto/cmake/test_concurrent_module/main.cpp b/tests/auto/cmake/test_concurrent_module/main.cpp index 9412c60638b..5cbe3bd59f6 100644 --- a/tests/auto/cmake/test_concurrent_module/main.cpp +++ b/tests/auto/cmake/test_concurrent_module/main.cpp @@ -1,10 +1,8 @@ // Copyright (C) 2012 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com, author Stephen Kelly // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only -#include -#include -#include -#include +#include +#include int main(int argc, char **argv) { diff --git a/tests/auto/cmake/test_widgets_app_deployment/main.cpp b/tests/auto/cmake/test_widgets_app_deployment/main.cpp index 939cd72380a..3b0f540a8ad 100644 --- a/tests/auto/cmake/test_widgets_app_deployment/main.cpp +++ b/tests/auto/cmake/test_widgets_app_deployment/main.cpp @@ -1,7 +1,8 @@ // Copyright (C) 2022 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only -#include -#include + +#include +#include class test_widgets_app_deployment : public QObject { diff --git a/tests/auto/corelib/io/qurl/tst_qurl.cpp b/tests/auto/corelib/io/qurl/tst_qurl.cpp index ea751b586ee..a8f4b1b79f3 100644 --- a/tests/auto/corelib/io/qurl/tst_qurl.cpp +++ b/tests/auto/corelib/io/qurl/tst_qurl.cpp @@ -2,18 +2,19 @@ // Copyright (C) 2016 Intel Corporation. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only -#include -#include +#include + +#include + +#include +#include +#include +#include +#include +#include +#include -#include #include -#include - -#include - -#include -#include - #include using namespace Qt::StringLiterals; @@ -4245,9 +4246,6 @@ void tst_QUrl::testThreadingHelper() } } -#include -#include - void tst_QUrl::testThreading() { enum { Count = 100 }; diff --git a/tests/auto/corelib/thread/qfuturewatcher/tst_qfuturewatcher.cpp b/tests/auto/corelib/thread/qfuturewatcher/tst_qfuturewatcher.cpp index 40aa89ded4a..50ff9103b9c 100644 --- a/tests/auto/corelib/thread/qfuturewatcher/tst_qfuturewatcher.cpp +++ b/tests/auto/corelib/thread/qfuturewatcher/tst_qfuturewatcher.cpp @@ -1,11 +1,20 @@ // Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only -#include -#include -#include -#include -#include +#include +#include + +#include +#include +#include + +#include +#include +#include +#include +#include +#include + #include using namespace QtConcurrent; diff --git a/tests/auto/gui/image/qicoimageformat/tst_qicoimageformat.cpp b/tests/auto/gui/image/qicoimageformat/tst_qicoimageformat.cpp index 136f56facf9..36cf8ac8fd8 100644 --- a/tests/auto/gui/image/qicoimageformat/tst_qicoimageformat.cpp +++ b/tests/auto/gui/image/qicoimageformat/tst_qicoimageformat.cpp @@ -1,8 +1,14 @@ // Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only -#include -#include -#include + +#include + +#include +#include +#include + +#include +#include class tst_QIcoImageFormat : public QObject { diff --git a/tests/auto/gui/kernel/qfileopenevent/qfileopeneventexternal/qfileopeneventexternal.cpp b/tests/auto/gui/kernel/qfileopenevent/qfileopeneventexternal/qfileopeneventexternal.cpp index bd74e7497f5..db27f6531fd 100644 --- a/tests/auto/gui/kernel/qfileopenevent/qfileopeneventexternal/qfileopeneventexternal.cpp +++ b/tests/auto/gui/kernel/qfileopenevent/qfileopeneventexternal/qfileopeneventexternal.cpp @@ -1,8 +1,10 @@ // Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only -#include -#include +#include +#include + +#include struct MyApplication : public QGuiApplication { diff --git a/tests/auto/gui/platform/qx11info/tst_qx11info.cpp b/tests/auto/gui/platform/qx11info/tst_qx11info.cpp index f71e644a8f8..ec9dfdeb24b 100644 --- a/tests/auto/gui/platform/qx11info/tst_qx11info.cpp +++ b/tests/auto/gui/platform/qx11info/tst_qx11info.cpp @@ -2,8 +2,9 @@ // Copyright (C) 2016 David Faure // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only -#include -#include +#include + +#include #include diff --git a/tests/auto/network/socket/qtcpserver/crashingServer/main.cpp b/tests/auto/network/socket/qtcpserver/crashingServer/main.cpp index 1c41552eb5a..63bd7b1e078 100644 --- a/tests/auto/network/socket/qtcpserver/crashingServer/main.cpp +++ b/tests/auto/network/socket/qtcpserver/crashingServer/main.cpp @@ -1,9 +1,12 @@ // Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only +#include +#include +#include + +#include -#include -#include #if defined(Q_OS_WIN) && defined(Q_CC_MSVC) # include #endif diff --git a/tests/auto/network/socket/qudpsocket/clientserver/main.cpp b/tests/auto/network/socket/qudpsocket/clientserver/main.cpp index 76bdf3aada0..4c5e335bb2a 100644 --- a/tests/auto/network/socket/qudpsocket/clientserver/main.cpp +++ b/tests/auto/network/socket/qudpsocket/clientserver/main.cpp @@ -1,6 +1,10 @@ // Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only -#include + +#include + +#include +#include class ClientServer : public QUdpSocket { diff --git a/tests/auto/network/socket/qudpsocket/udpServer/main.cpp b/tests/auto/network/socket/qudpsocket/udpServer/main.cpp index ba5bb3c0d0e..74772508416 100644 --- a/tests/auto/network/socket/qudpsocket/udpServer/main.cpp +++ b/tests/auto/network/socket/qudpsocket/udpServer/main.cpp @@ -1,6 +1,10 @@ // Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only -#include + +#include +#include + +#include class Server : public QObject { diff --git a/tests/auto/network/ssl/qsslsocket_onDemandCertificates_member/tst_qsslsocket_onDemandCertificates_member.cpp b/tests/auto/network/ssl/qsslsocket_onDemandCertificates_member/tst_qsslsocket_onDemandCertificates_member.cpp index 119891c9161..8601212f536 100644 --- a/tests/auto/network/ssl/qsslsocket_onDemandCertificates_member/tst_qsslsocket_onDemandCertificates_member.cpp +++ b/tests/auto/network/ssl/qsslsocket_onDemandCertificates_member/tst_qsslsocket_onDemandCertificates_member.cpp @@ -1,12 +1,11 @@ // Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only +#include -#include -#include - -#include -#include +#include +#include +#include #ifdef QT_BUILD_INTERNAL # include "private/qhostinfo_p.h" diff --git a/tests/auto/network/ssl/qsslsocket_onDemandCertificates_static/tst_qsslsocket_onDemandCertificates_static.cpp b/tests/auto/network/ssl/qsslsocket_onDemandCertificates_static/tst_qsslsocket_onDemandCertificates_static.cpp index c5475da581a..dd3e35f205b 100644 --- a/tests/auto/network/ssl/qsslsocket_onDemandCertificates_static/tst_qsslsocket_onDemandCertificates_static.cpp +++ b/tests/auto/network/ssl/qsslsocket_onDemandCertificates_static/tst_qsslsocket_onDemandCertificates_static.cpp @@ -1,12 +1,11 @@ // Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only +#include -#include -#include - -#include -#include +#include +#include +#include #include "private/qhostinfo_p.h" diff --git a/tests/auto/other/qnetworkaccessmanager_and_qprogressdialog/tst_qnetworkaccessmanager_and_qprogressdialog.cpp b/tests/auto/other/qnetworkaccessmanager_and_qprogressdialog/tst_qnetworkaccessmanager_and_qprogressdialog.cpp index c665068f72b..ee494cedc5a 100644 --- a/tests/auto/other/qnetworkaccessmanager_and_qprogressdialog/tst_qnetworkaccessmanager_and_qprogressdialog.cpp +++ b/tests/auto/other/qnetworkaccessmanager_and_qprogressdialog/tst_qnetworkaccessmanager_and_qprogressdialog.cpp @@ -1,17 +1,16 @@ // Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only +#include +#include -#include -#include -#include -#include -#include +#include -#include -#include -#include -#include +#include +#include +#include + +#include #include "../../network-settings.h" diff --git a/tests/auto/other/qobjectrace/tst_qobjectrace.cpp b/tests/auto/other/qobjectrace/tst_qobjectrace.cpp index af6634f2536..a0099cd8012 100644 --- a/tests/auto/other/qobjectrace/tst_qobjectrace.cpp +++ b/tests/auto/other/qobjectrace/tst_qobjectrace.cpp @@ -1,9 +1,14 @@ // Copyright (C) 2022 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only +#include -#include -#include +#include +#include +#include +#include +#include +#include #include diff --git a/tests/auto/other/xkbkeyboard/tst_xkbkeyboard.cpp b/tests/auto/other/xkbkeyboard/tst_xkbkeyboard.cpp index 323693bb847..a00249b58bf 100644 --- a/tests/auto/other/xkbkeyboard/tst_xkbkeyboard.cpp +++ b/tests/auto/other/xkbkeyboard/tst_xkbkeyboard.cpp @@ -1,9 +1,10 @@ // Copyright (C) 2019 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only -#include -#include -#include +#include + +#include +#include #include #include diff --git a/tests/auto/sql/kernel/qsqldatabase/tst_databases.h b/tests/auto/sql/kernel/qsqldatabase/tst_databases.h index 6ac58b30f73..b8dbceda4ac 100644 --- a/tests/auto/sql/kernel/qsqldatabase/tst_databases.h +++ b/tests/auto/sql/kernel/qsqldatabase/tst_databases.h @@ -5,25 +5,22 @@ #ifndef TST_DATABASES_H #define TST_DATABASES_H -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include + +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include using namespace Qt::StringLiterals; diff --git a/tests/auto/sql/kernel/qsqlthread/tst_qsqlthread.cpp b/tests/auto/sql/kernel/qsqlthread/tst_qsqlthread.cpp index 0bebb7edd5d..18e5ea64fc4 100644 --- a/tests/auto/sql/kernel/qsqlthread/tst_qsqlthread.cpp +++ b/tests/auto/sql/kernel/qsqlthread/tst_qsqlthread.cpp @@ -2,15 +2,14 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only -#include +#include +#include +#include +#include #include "../qsqldatabase/tst_databases.h" -#include -#include -#include "qdebug.h" - QString qtest; // set this define if Oracle is built with threading support //#define QOCI_THREADED diff --git a/tests/auto/sql/models/qsqlquerymodel/tst_qsqlquerymodel.cpp b/tests/auto/sql/models/qsqlquerymodel/tst_qsqlquerymodel.cpp index a669c72a1e3..eeafef15fa9 100644 --- a/tests/auto/sql/models/qsqlquerymodel/tst_qsqlquerymodel.cpp +++ b/tests/auto/sql/models/qsqlquerymodel/tst_qsqlquerymodel.cpp @@ -1,21 +1,20 @@ // Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only +#include +#include -#include -#include -#include -#include +#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include -#include -#include +#include #include "../../kernel/qsqldatabase/tst_databases.h" diff --git a/tests/auto/sql/models/qsqltablemodel/tst_qsqltablemodel.cpp b/tests/auto/sql/models/qsqltablemodel/tst_qsqltablemodel.cpp index 9c93fc2b186..122487a9345 100644 --- a/tests/auto/sql/models/qsqltablemodel/tst_qsqltablemodel.cpp +++ b/tests/auto/sql/models/qsqltablemodel/tst_qsqltablemodel.cpp @@ -1,14 +1,20 @@ // Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only - -#include #include "../../kernel/qsqldatabase/tst_databases.h" -#include + +#include +#include + +#include +#include +#include + +#include +#include +#include + #include -#include -#include -#include // In order to catch when the warning message occurs, indicating that the database belongs to another // thread, we have to install our own message handler. To ensure that the test reporting still happens diff --git a/tests/auto/tools/macdeployqt/source_plugin_tls/main.cpp b/tests/auto/tools/macdeployqt/source_plugin_tls/main.cpp index 61b5edd614d..54ca1f49267 100644 --- a/tests/auto/tools/macdeployqt/source_plugin_tls/main.cpp +++ b/tests/auto/tools/macdeployqt/source_plugin_tls/main.cpp @@ -1,7 +1,9 @@ // Copyright (C) 2021 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only -#include +#include + +#include int main(int argc, char ** argv) { diff --git a/tests/auto/tools/macdeployqt/tst_macdeployqt.cpp b/tests/auto/tools/macdeployqt/tst_macdeployqt.cpp index 4f51467d516..fc0bdb41661 100644 --- a/tests/auto/tools/macdeployqt/tst_macdeployqt.cpp +++ b/tests/auto/tools/macdeployqt/tst_macdeployqt.cpp @@ -1,8 +1,12 @@ // Copyright (C) 2020 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only -#include -#include +#include + +#include +#include +#include +#include Q_LOGGING_CATEGORY(lcTests, "qt.tools.tests") diff --git a/tests/auto/tools/qt_cmake_create/tst_qt_cmake_create.cpp b/tests/auto/tools/qt_cmake_create/tst_qt_cmake_create.cpp index 52c3bef14a9..0bd18de815d 100644 --- a/tests/auto/tools/qt_cmake_create/tst_qt_cmake_create.cpp +++ b/tests/auto/tools/qt_cmake_create/tst_qt_cmake_create.cpp @@ -1,15 +1,15 @@ // Copyright (C) 2023 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only -#include -#include +#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include #include diff --git a/tests/auto/widgets/graphicsview/qgraphicsanchorlayout1/tst_qgraphicsanchorlayout1.cpp b/tests/auto/widgets/graphicsview/qgraphicsanchorlayout1/tst_qgraphicsanchorlayout1.cpp index 9a047b876d1..dc26419f3f6 100644 --- a/tests/auto/widgets/graphicsview/qgraphicsanchorlayout1/tst_qgraphicsanchorlayout1.cpp +++ b/tests/auto/widgets/graphicsview/qgraphicsanchorlayout1/tst_qgraphicsanchorlayout1.cpp @@ -1,11 +1,14 @@ // Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only -#include -#include -#include -#include +#include + #include +#include + +#include +#include + #include #define TEST_COMPLEX_CASES diff --git a/tests/auto/widgets/graphicsview/qgraphicslayout/tst_qgraphicslayout.cpp b/tests/auto/widgets/graphicsview/qgraphicslayout/tst_qgraphicslayout.cpp index 268195d7d3d..17db8f240c2 100644 --- a/tests/auto/widgets/graphicsview/qgraphicslayout/tst_qgraphicslayout.cpp +++ b/tests/auto/widgets/graphicsview/qgraphicslayout/tst_qgraphicslayout.cpp @@ -2,9 +2,18 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only -#include -#include -#include +#include + +#include +#include +#include +#include + +#include +#include +#include +#include + #include class tst_QGraphicsLayout : public QObject diff --git a/tests/auto/widgets/kernel/qboxlayout/tst_qboxlayout.cpp b/tests/auto/widgets/kernel/qboxlayout/tst_qboxlayout.cpp index 4313d9891ce..a9122d634e3 100644 --- a/tests/auto/widgets/kernel/qboxlayout/tst_qboxlayout.cpp +++ b/tests/auto/widgets/kernel/qboxlayout/tst_qboxlayout.cpp @@ -1,10 +1,19 @@ // Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only +#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include diff --git a/tests/auto/widgets/kernel/qgridlayout/tst_qgridlayout.cpp b/tests/auto/widgets/kernel/qgridlayout/tst_qgridlayout.cpp index 3c325699a79..1f7720a5e9c 100644 --- a/tests/auto/widgets/kernel/qgridlayout/tst_qgridlayout.cpp +++ b/tests/auto/widgets/kernel/qgridlayout/tst_qgridlayout.cpp @@ -1,20 +1,18 @@ // Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only +#include -#include -#include -#include -#include -#include -#include -//#include +#include +#include +#include +#include +#include +#include +#include +#include -#include -#include -#include -#include -#include +#include #include diff --git a/tests/auto/widgets/util/qcompleter/tst_qcompleter.cpp b/tests/auto/widgets/util/qcompleter/tst_qcompleter.cpp index 0623ab41673..ab6bc9bb3ec 100644 --- a/tests/auto/widgets/util/qcompleter/tst_qcompleter.cpp +++ b/tests/auto/widgets/util/qcompleter/tst_qcompleter.cpp @@ -1,13 +1,27 @@ // Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only -#include -#include -#include -#include -#include -#include -#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include + +#include +#include +#include +#include +#include +#include #include diff --git a/tests/auto/widgets/util/qscroller/tst_qscroller.cpp b/tests/auto/widgets/util/qscroller/tst_qscroller.cpp index 101b502fc6f..3f94710f2e3 100644 --- a/tests/auto/widgets/util/qscroller/tst_qscroller.cpp +++ b/tests/auto/widgets/util/qscroller/tst_qscroller.cpp @@ -1,9 +1,20 @@ // Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only -#include -#include -#include +#include + +#include +#include +#include + +#include +#include +#include + +#include +#include +#include + #include #include #include diff --git a/tests/auto/widgets/widgets/qmdiarea/tst_qmdiarea.cpp b/tests/auto/widgets/widgets/qmdiarea/tst_qmdiarea.cpp index af0b9ce3670..3a6bd289261 100644 --- a/tests/auto/widgets/widgets/qmdiarea/tst_qmdiarea.cpp +++ b/tests/auto/widgets/widgets/qmdiarea/tst_qmdiarea.cpp @@ -2,27 +2,27 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only -#include -#include -#include -#include +#include +#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include #ifndef QT_NO_OPENGL -#include -#include +# include #endif -#include #include diff --git a/tests/auto/xml/dom/qdom/tst_qdom.cpp b/tests/auto/xml/dom/qdom/tst_qdom.cpp index d77ecc811d8..3a6fc1356c3 100644 --- a/tests/auto/xml/dom/qdom/tst_qdom.cpp +++ b/tests/auto/xml/dom/qdom/tst_qdom.cpp @@ -1,22 +1,27 @@ // Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only +#include + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include #include +#include + QT_REQUIRE_CONFIG(dom); QT_FORWARD_DECLARE_CLASS(QDomDocument) QT_FORWARD_DECLARE_CLASS(QDomNode)