From e0b4bf9483fdb0b76f6e721840d8c569b568f852 Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Mon, 24 Mar 2025 12:35:25 +0100 Subject: [PATCH] Tests: include what you use (QElapsedTimer) Change-Id: Ia0809dcba4477da97b506b4a9651b00e4ed5ab2c Reviewed-by: Edward Welbourne (cherry picked from commit c3762aa30abecbec3f1049650a34562234302031) Reviewed-by: Qt Cherry-pick Bot (cherry picked from commit a101ffb700b8ed3331205831d764c16f952dfcad) --- .../corelib/text/qbytearraymatcher/tst_qbytearraymatcher.cpp | 1 + tests/auto/corelib/thread/qsemaphore/tst_qsemaphore.cpp | 1 + .../tools/qcryptographichash/tst_qcryptographichash_bigdata.cpp | 1 + tests/auto/gui/image/qmovie/tst_qmovie.cpp | 1 + tests/auto/gui/kernel/qclipboard/tst_qclipboard.cpp | 1 + tests/auto/gui/qvulkan/tst_qvulkan.cpp | 2 ++ tests/auto/network/kernel/qdnslookup/tst_qdnslookup.cpp | 1 + .../kernel/qnetworkproxyfactory/tst_qnetworkproxyfactory.cpp | 1 + .../socket/qsocks5socketengine/tst_qsocks5socketengine.cpp | 1 + tests/auto/other/qobjectrace/tst_qobjectrace.cpp | 1 + tests/auto/widgets/widgets/qscrollbar/tst_qscrollbar.cpp | 1 + tests/auto/widgets/widgets/qstatusbar/tst_qstatusbar.cpp | 1 + 12 files changed, 13 insertions(+) diff --git a/tests/auto/corelib/text/qbytearraymatcher/tst_qbytearraymatcher.cpp b/tests/auto/corelib/text/qbytearraymatcher/tst_qbytearraymatcher.cpp index cb2ede7db68..4e755f341ab 100644 --- a/tests/auto/corelib/text/qbytearraymatcher/tst_qbytearraymatcher.cpp +++ b/tests/auto/corelib/text/qbytearraymatcher/tst_qbytearraymatcher.cpp @@ -5,6 +5,7 @@ #include #include +#include #include #include diff --git a/tests/auto/corelib/thread/qsemaphore/tst_qsemaphore.cpp b/tests/auto/corelib/thread/qsemaphore/tst_qsemaphore.cpp index 3bb1e1960c9..de5aea89edd 100644 --- a/tests/auto/corelib/thread/qsemaphore/tst_qsemaphore.cpp +++ b/tests/auto/corelib/thread/qsemaphore/tst_qsemaphore.cpp @@ -4,6 +4,7 @@ #include #include +#include #include #include diff --git a/tests/auto/corelib/tools/qcryptographichash/tst_qcryptographichash_bigdata.cpp b/tests/auto/corelib/tools/qcryptographichash/tst_qcryptographichash_bigdata.cpp index ff77d94b4ea..fcf31122336 100644 --- a/tests/auto/corelib/tools/qcryptographichash/tst_qcryptographichash_bigdata.cpp +++ b/tests/auto/corelib/tools/qcryptographichash/tst_qcryptographichash_bigdata.cpp @@ -2,6 +2,7 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only #include +#include #include #include #include diff --git a/tests/auto/gui/image/qmovie/tst_qmovie.cpp b/tests/auto/gui/image/qmovie/tst_qmovie.cpp index 29c3297043c..3605392145b 100644 --- a/tests/auto/gui/image/qmovie/tst_qmovie.cpp +++ b/tests/auto/gui/image/qmovie/tst_qmovie.cpp @@ -8,6 +8,7 @@ #include #include +#include #ifndef QT_NO_WIDGETS #include #endif diff --git a/tests/auto/gui/kernel/qclipboard/tst_qclipboard.cpp b/tests/auto/gui/kernel/qclipboard/tst_qclipboard.cpp index 733fd2cc16d..e61bc970496 100644 --- a/tests/auto/gui/kernel/qclipboard/tst_qclipboard.cpp +++ b/tests/auto/gui/kernel/qclipboard/tst_qclipboard.cpp @@ -9,6 +9,7 @@ #include #endif #include +#include #include #include #include diff --git a/tests/auto/gui/qvulkan/tst_qvulkan.cpp b/tests/auto/gui/qvulkan/tst_qvulkan.cpp index 51e554f2fbe..1f410fd15f0 100644 --- a/tests/auto/gui/qvulkan/tst_qvulkan.cpp +++ b/tests/auto/gui/qvulkan/tst_qvulkan.cpp @@ -5,11 +5,13 @@ #include #include #include +#include #include #include + class tst_QVulkan : public QObject { Q_OBJECT diff --git a/tests/auto/network/kernel/qdnslookup/tst_qdnslookup.cpp b/tests/auto/network/kernel/qdnslookup/tst_qdnslookup.cpp index 40a399de91d..eda494d60a5 100644 --- a/tests/auto/network/kernel/qdnslookup/tst_qdnslookup.cpp +++ b/tests/auto/network/kernel/qdnslookup/tst_qdnslookup.cpp @@ -8,6 +8,7 @@ #include +#include #include #include #include diff --git a/tests/auto/network/kernel/qnetworkproxyfactory/tst_qnetworkproxyfactory.cpp b/tests/auto/network/kernel/qnetworkproxyfactory/tst_qnetworkproxyfactory.cpp index c38a4807669..7e8fb80fc5e 100644 --- a/tests/auto/network/kernel/qnetworkproxyfactory/tst_qnetworkproxyfactory.cpp +++ b/tests/auto/network/kernel/qnetworkproxyfactory/tst_qnetworkproxyfactory.cpp @@ -5,6 +5,7 @@ #include #include +#include #include #include diff --git a/tests/auto/network/socket/qsocks5socketengine/tst_qsocks5socketengine.cpp b/tests/auto/network/socket/qsocks5socketengine/tst_qsocks5socketengine.cpp index cc77ba2da38..e75762cbc96 100644 --- a/tests/auto/network/socket/qsocks5socketengine/tst_qsocks5socketengine.cpp +++ b/tests/auto/network/socket/qsocks5socketengine/tst_qsocks5socketengine.cpp @@ -5,6 +5,7 @@ #include #include +#include #include #include #include diff --git a/tests/auto/other/qobjectrace/tst_qobjectrace.cpp b/tests/auto/other/qobjectrace/tst_qobjectrace.cpp index a0099cd8012..fcfcc13d391 100644 --- a/tests/auto/other/qobjectrace/tst_qobjectrace.cpp +++ b/tests/auto/other/qobjectrace/tst_qobjectrace.cpp @@ -3,6 +3,7 @@ #include +#include #include #include #include diff --git a/tests/auto/widgets/widgets/qscrollbar/tst_qscrollbar.cpp b/tests/auto/widgets/widgets/qscrollbar/tst_qscrollbar.cpp index fc836dec4a2..49481b58bf6 100644 --- a/tests/auto/widgets/widgets/qscrollbar/tst_qscrollbar.cpp +++ b/tests/auto/widgets/widgets/qscrollbar/tst_qscrollbar.cpp @@ -3,6 +3,7 @@ #include +#include #include #include #include diff --git a/tests/auto/widgets/widgets/qstatusbar/tst_qstatusbar.cpp b/tests/auto/widgets/widgets/qstatusbar/tst_qstatusbar.cpp index b0a53ba01af..e1cb3d00523 100644 --- a/tests/auto/widgets/widgets/qstatusbar/tst_qstatusbar.cpp +++ b/tests/auto/widgets/widgets/qstatusbar/tst_qstatusbar.cpp @@ -5,6 +5,7 @@ #include #include #include +#include #include #include #include