aboutsummaryrefslogtreecommitdiffstats
path: root/src/webchannel
diff options
context:
space:
mode:
authorIvan Solovev <ivan.solovev@qt.io>2023-10-06 16:49:43 +0200
committerIvan Solovev <ivan.solovev@qt.io>2023-10-16 13:54:46 +0200
commitdccba9bbfdb893fb51c7ef52b7cf0e605eb2d13d (patch)
treefe58c5e63b19b05f4f17ac85fa93ec495e3873df /src/webchannel
parent12c1e361e40e221b16fcf7efb4bcafe766f0e5a4 (diff)
Cleanup: move QWebChannel benchmarks into a separate subdirectory
Benchmarks should not be a part of common test-cases. We normally have a different tests/benchmarks subdirectory for them. This commit moves benchmarks from tst_webchannel into a new benchmark. This requires defining a new class as a friend of QWebChannel and QMetaObjectPublisher. Change-Id: I4b5b182d5c25648d0bc6ac46e1415f9742b9ff37 Reviewed-by: Øystein Heskestad <oystein.heskestad@qt.io> Reviewed-by: Arno Rehn <a.rehn@menlosystems.com>
Diffstat (limited to 'src/webchannel')
-rw-r--r--src/webchannel/qmetaobjectpublisher_p.h1
-rw-r--r--src/webchannel/qwebchannel.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/webchannel/qmetaobjectpublisher_p.h b/src/webchannel/qmetaobjectpublisher_p.h
index 8605798..fe669bc 100644
--- a/src/webchannel/qmetaobjectpublisher_p.h
+++ b/src/webchannel/qmetaobjectpublisher_p.h
@@ -310,6 +310,7 @@ private:
friend class QQmlWebChannelPrivate;
friend class QWebChannel;
friend class TestWebChannel;
+ friend class tst_bench_QWebChannel;
QWebChannel *webChannel;
std::unordered_map<const QThread*, SignalHandler<QMetaObjectPublisher>> signalHandlers;
diff --git a/src/webchannel/qwebchannel.h b/src/webchannel/qwebchannel.h
index 2bf8498..b3f7119 100644
--- a/src/webchannel/qwebchannel.h
+++ b/src/webchannel/qwebchannel.h
@@ -55,6 +55,7 @@ private:
friend class QMetaObjectPublisher;
friend class QQmlWebChannel;
friend class TestWebChannel;
+ friend class tst_bench_QWebChannel;
};
QT_END_NAMESPACE