summaryrefslogtreecommitdiffstats
path: root/tests/auto/integration/qcamerabackend/tst_qcamerabackend.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/integration/qcamerabackend/tst_qcamerabackend.cpp')
-rw-r--r--tests/auto/integration/qcamerabackend/tst_qcamerabackend.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/tests/auto/integration/qcamerabackend/tst_qcamerabackend.cpp b/tests/auto/integration/qcamerabackend/tst_qcamerabackend.cpp
index 068b30653..c49236f43 100644
--- a/tests/auto/integration/qcamerabackend/tst_qcamerabackend.cpp
+++ b/tests/auto/integration/qcamerabackend/tst_qcamerabackend.cpp
@@ -68,10 +68,6 @@ public slots:
void cleanupTestCase();
private slots:
-#if QT_DEPRECATED_SINCE(5, 3)
- void testAvailableDevices();
- void testDeviceDescription();
-#endif
void testCameraInfo();
void testCtorWithDevice();
void testCtorWithCameraInfo();
@@ -102,27 +98,6 @@ void tst_QCameraBackend::cleanupTestCase()
{
}
-#if QT_DEPRECATED_SINCE(5, 3)
-void tst_QCameraBackend::testAvailableDevices()
-{
- int deviceCount = QMediaServiceProvider::defaultServiceProvider()->devices(QByteArray(Q_MEDIASERVICE_CAMERA)).count();
- QCOMPARE(QCamera::availableDevices().count(), deviceCount);
-}
-
-void tst_QCameraBackend::testDeviceDescription()
-{
- int deviceCount = QMediaServiceProvider::defaultServiceProvider()->devices(QByteArray(Q_MEDIASERVICE_CAMERA)).count();
-
- if (deviceCount == 0)
- QVERIFY(QCamera::deviceDescription(QByteArray("random")).isNull());
- else {
- const auto devices = QCamera::availableDevices();
- for (const QByteArray &device : devices)
- QVERIFY(QCamera::deviceDescription(device).length() > 0);
- }
-}
-#endif
-
void tst_QCameraBackend::testCameraInfo()
{
int deviceCount = QMediaServiceProvider::defaultServiceProvider()->devices(QByteArray(Q_MEDIASERVICE_CAMERA)).count();