Revision control

++ // Copyright (C) 2026 The Qt Company Ltd.
++ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
++
++ #include "qmockintegration.h"
++
++ #include <QtQuickTest/quicktest.h>
++ #include <QtQml/qqml.h>
++
++ #include "tst_multimediaquick_qml_cameraformathelper.h"
++ #include "tst_multimediaquick_qml_capturesessionhelper.h"
++ #include "tst_multimediaquick_qml_screencapturehelper.h"
++ #include "tst_multimediaquick_qml_testhelper.h"
++
++ QT_USE_NAMESPACE
++
++ Q_ENABLE_MOCK_MULTIMEDIA_PLUGIN
++
++ struct TestSetupClass : public QObject
++ {
++ TestSetupClass()
++ {
++ qmlRegisterSingletonInstance(
++ "QtMultimediaTest",
++ 1,
++ 0,
++ "CameraFormatHelper",
++ new CameraFormatHelper);
++
++ qmlRegisterSingletonInstance(
++ "QtMultimediaTest",
++ 1,
++ 0,
++ "CaptureSessionHelper",
++ new CaptureSessionHelper);
++
++ qmlRegisterSingletonInstance(
++ "QtMultimediaTest",
++ 1,
++ 0,
++ "ScreenCaptureHelper",
++ new ScreenCaptureHelper);
++
++ qmlRegisterSingletonInstance(
++ "QtMultimediaTest",
++ 1,
++ 0,
++ "TestHelper",
++ new TestHelper);
++ }
++ };
++
++ QUICK_TEST_MAIN_WITH_SETUP(multimediaquick, TestSetupClass)