summaryrefslogtreecommitdiffstats
path: root/tests/auto/qabstractvideosurface/tst_qabstractvideosurface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qabstractvideosurface/tst_qabstractvideosurface.cpp')
-rw-r--r--tests/auto/qabstractvideosurface/tst_qabstractvideosurface.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/auto/qabstractvideosurface/tst_qabstractvideosurface.cpp b/tests/auto/qabstractvideosurface/tst_qabstractvideosurface.cpp
index 7413fdd98..1f3cdea06 100644
--- a/tests/auto/qabstractvideosurface/tst_qabstractvideosurface.cpp
+++ b/tests/auto/qabstractvideosurface/tst_qabstractvideosurface.cpp
@@ -74,8 +74,6 @@ private slots:
typedef QMap<QAbstractVideoBuffer::HandleType, QVideoFrame::PixelFormat> SupportedFormatMap;
Q_DECLARE_METATYPE(SupportedFormatMap)
-Q_DECLARE_METATYPE(QVideoSurfaceFormat)
-Q_DECLARE_METATYPE(QAbstractVideoSurface::Error);
class QtTestVideoSurface : public QAbstractVideoSurface
{
@@ -144,21 +142,33 @@ void tst_QAbstractVideoSurface::setError()
QtTestVideoSurface surface;
QCOMPARE(surface.error(), QAbstractVideoSurface::NoError);
+ QTest::ignoreMessage(QtDebugMsg, "NoError");
+ qDebug() << QAbstractVideoSurface::NoError;
surface.setError(QAbstractVideoSurface::StoppedError);
QCOMPARE(surface.error(), QAbstractVideoSurface::StoppedError);
+ QTest::ignoreMessage(QtDebugMsg, "StoppedError");
+ qDebug() << QAbstractVideoSurface::StoppedError;
surface.setError(QAbstractVideoSurface::ResourceError);
QCOMPARE(surface.error(), QAbstractVideoSurface::ResourceError);
+ QTest::ignoreMessage(QtDebugMsg, "ResourceError");
+ qDebug() << QAbstractVideoSurface::ResourceError;
surface.setError(QAbstractVideoSurface::NoError);
QCOMPARE(surface.error(), QAbstractVideoSurface::NoError);
+ QTest::ignoreMessage(QtDebugMsg, "NoError");
+ qDebug() << QAbstractVideoSurface::NoError;
surface.setError(QAbstractVideoSurface::UnsupportedFormatError);
QCOMPARE(surface.error(), QAbstractVideoSurface::UnsupportedFormatError);
+ QTest::ignoreMessage(QtDebugMsg, "UnsupportedFormatError");
+ qDebug() << QAbstractVideoSurface::UnsupportedFormatError;
surface.setError(QAbstractVideoSurface::IncorrectFormatError);
QCOMPARE(surface.error(), QAbstractVideoSurface::IncorrectFormatError);
+ QTest::ignoreMessage(QtDebugMsg, "IncorrectFormatError");
+ qDebug() << QAbstractVideoSurface::IncorrectFormatError;
}
void tst_QAbstractVideoSurface::isFormatSupported_data()