summaryrefslogtreecommitdiffstats
path: root/tests/auto/unit/qvideoframe
diff options
context:
space:
mode:
authorYoann Lopes <yoann.lopes@digia.com>2014-03-26 14:46:51 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-26 16:35:41 +0100
commitc5c3ce6f9bcdb560e30438ffca5647580f2f00c1 (patch)
tree2e883772222bc99d1435f6ea3658ac9920825ce8 /tests/auto/unit/qvideoframe
parentcd7882b760ae34034b1b5b53c6e7970eb05f2bc2 (diff)
Removed debug operator autotests.
For QVideoFrame, QAudioFormat and QVideoSurfaceFormat. There's no point in testing the formatting of the debug operator. These tests can break every time there's a change in QDebug's output policy. Change-Id: I2349b4722a428bc4c56ca58b13889790e86df4c1 Reviewed-by: Christian Stromme <christian.stromme@digia.com>
Diffstat (limited to 'tests/auto/unit/qvideoframe')
-rw-r--r--tests/auto/unit/qvideoframe/tst_qvideoframe.cpp157
1 files changed, 0 insertions, 157 deletions
diff --git a/tests/auto/unit/qvideoframe/tst_qvideoframe.cpp b/tests/auto/unit/qvideoframe/tst_qvideoframe.cpp
index c7dbfbe55..403320e59 100644
--- a/tests/auto/unit/qvideoframe/tst_qvideoframe.cpp
+++ b/tests/auto/unit/qvideoframe/tst_qvideoframe.cpp
@@ -93,15 +93,6 @@ private slots:
void metadata();
- void debugType_data();
- void debugType();
-
- void debug_data();
- void debug();
-
- void debugFormat_data();
- void debugFormat();
-
void isMapped();
void isReadable();
void isWritable();
@@ -1028,154 +1019,6 @@ void tst_QVideoFrame::isWritable()
frame.unmap();
}
-void tst_QVideoFrame::debugType_data()
-{
- QTest::addColumn<QVideoFrame::FieldType>("fieldType");
- QTest::addColumn<QString>("stringized");
-
- ADD_ENUM_TEST(ProgressiveFrame);
- ADD_ENUM_TEST(InterlacedFrame);
- ADD_ENUM_TEST(TopField);
- ADD_ENUM_TEST(BottomField);
-}
-
-void tst_QVideoFrame::debugType()
-{
- QFETCH(QVideoFrame::FieldType, fieldType);
- QFETCH(QString, stringized);
-
- QTest::ignoreMessage(QtDebugMsg, stringized.toLatin1().constData());
- qDebug() << fieldType;
-}
-
-void tst_QVideoFrame::debug_data()
-{
- QTest::addColumn<QVideoFrame>("frame");
- QTest::addColumn<QString>("stringized");
-
- QVideoFrame f;
- QTest::newRow("default") << f << QString::fromLatin1("QVideoFrame(QSize(-1, -1) , Format_Invalid, NoHandle, NotMapped, [no timestamp])");
-
- QVideoFrame f2;
- f2.setStartTime(12345);
- f2.setEndTime(8000000000LL);
- QTest::newRow("times") << f2 << QString::fromLatin1("QVideoFrame(QSize(-1, -1) , Format_Invalid, NoHandle, NotMapped, 0:00:00.12345 - 2:13:20.00)");
-
- QVideoFrame f3;
- f3.setFieldType(QVideoFrame::ProgressiveFrame);
- QTest::newRow("times prog") << f3 << QString::fromLatin1("QVideoFrame(QSize(-1, -1) , Format_Invalid, NoHandle, NotMapped, [no timestamp])");
-
- QVideoFrame f4;
- f4.setFieldType(QVideoFrame::TopField);
- QTest::newRow("times top") << f4 << QString::fromLatin1("QVideoFrame(QSize(-1, -1) , Format_Invalid, NoHandle, NotMapped, [no timestamp])");
-
- QVideoFrame f5;
- f5.setFieldType(QVideoFrame::TopField);
- f5.setEndTime(90000000000LL);
- QTest::newRow("end but no start") << f5 << QString::fromLatin1("QVideoFrame(QSize(-1, -1) , Format_Invalid, NoHandle, NotMapped, [no timestamp])");
-
- QVideoFrame f6;
- f6.setStartTime(12345000000LL);
- f6.setEndTime(80000000000LL);
- QTest::newRow("times big") << f6 << QString::fromLatin1("QVideoFrame(QSize(-1, -1) , Format_Invalid, NoHandle, NotMapped, 3:25:45.00 - 22:13:20.00)");
-
- QVideoFrame g(0, QSize(320,240), 640, QVideoFrame::Format_ARGB32);
- QTest::newRow("more valid") << g << QString::fromLatin1("QVideoFrame(QSize(320, 240) , Format_ARGB32, NoHandle, NotMapped, [no timestamp])");
-
- QVideoFrame g2(0, QSize(320,240), 640, QVideoFrame::Format_ARGB32);
- g2.setStartTime(9000000000LL);
- g2.setEndTime(9000000000LL);
- QTest::newRow("more valid") << g2 << QString::fromLatin1("QVideoFrame(QSize(320, 240) , Format_ARGB32, NoHandle, NotMapped, @2:30:00.00)");
-
- QVideoFrame g3(0, QSize(320,240), 640, QVideoFrame::Format_ARGB32);
- g3.setStartTime(900000LL);
- g3.setEndTime(900000LL);
- QTest::newRow("more valid single timestamp") << g3 << QString::fromLatin1("QVideoFrame(QSize(320, 240) , Format_ARGB32, NoHandle, NotMapped, @00:00.900000)");
-
- QVideoFrame g4(0, QSize(320,240), 640, QVideoFrame::Format_ARGB32);
- g4.setStartTime(200000000LL);
- g4.setEndTime(300000000LL);
- QTest::newRow("more valid") << g4 << QString::fromLatin1("QVideoFrame(QSize(320, 240) , Format_ARGB32, NoHandle, NotMapped, 03:20.00 - 05:00.00)");
-
- QVideoFrame g5(0, QSize(320,240), 640, QVideoFrame::Format_ARGB32);
- g5.setStartTime(200000000LL);
- QTest::newRow("more valid until forever") << g5 << QString::fromLatin1("QVideoFrame(QSize(320, 240) , Format_ARGB32, NoHandle, NotMapped, 03:20.00 - forever)");
-
- QVideoFrame g6(0, QSize(320,240), 640, QVideoFrame::Format_ARGB32);
- g6.setStartTime(9000000000LL);
- QTest::newRow("more valid for long forever") << g6 << QString::fromLatin1("QVideoFrame(QSize(320, 240) , Format_ARGB32, NoHandle, NotMapped, 2:30:00.00 - forever)");
-
- QVideoFrame g7(0, QSize(320,240), 640, QVideoFrame::Format_ARGB32);
- g7.setStartTime(9000000000LL);
- g7.setMetaData("bar", 42);
- QTest::newRow("more valid for long forever + metadata") << g7 << QString::fromLatin1("QVideoFrame(QSize(320, 240) , Format_ARGB32, NoHandle, NotMapped, 2:30:00.00 - forever, metaData: QMap((\"bar\", QVariant(int, 42) ) ) )");
-}
-
-void tst_QVideoFrame::debug()
-{
- QFETCH(QVideoFrame, frame);
- QFETCH(QString, stringized);
-
- QTest::ignoreMessage(QtDebugMsg, stringized.toLatin1().constData());
- qDebug() << frame;
-}
-
-void tst_QVideoFrame::debugFormat_data()
-{
- QTest::addColumn<QVideoFrame::PixelFormat>("format");
- QTest::addColumn<QString>("stringized");
-
- ADD_ENUM_TEST(Format_Invalid);
- ADD_ENUM_TEST(Format_ARGB32);
- ADD_ENUM_TEST(Format_ARGB32_Premultiplied);
- ADD_ENUM_TEST(Format_RGB32);
- ADD_ENUM_TEST(Format_RGB24);
- ADD_ENUM_TEST(Format_RGB565);
- ADD_ENUM_TEST(Format_RGB555);
- ADD_ENUM_TEST(Format_ARGB8565_Premultiplied);
- ADD_ENUM_TEST(Format_BGRA32);
- ADD_ENUM_TEST(Format_BGRA32_Premultiplied);
- ADD_ENUM_TEST(Format_BGR32);
- ADD_ENUM_TEST(Format_BGR24);
- ADD_ENUM_TEST(Format_BGR565);
- ADD_ENUM_TEST(Format_BGR555);
- ADD_ENUM_TEST(Format_BGRA5658_Premultiplied);
-
- ADD_ENUM_TEST(Format_AYUV444);
- ADD_ENUM_TEST(Format_AYUV444_Premultiplied);
- ADD_ENUM_TEST(Format_YUV444);
- ADD_ENUM_TEST(Format_YUV420P);
- ADD_ENUM_TEST(Format_YV12);
- ADD_ENUM_TEST(Format_UYVY);
- ADD_ENUM_TEST(Format_YUYV);
- ADD_ENUM_TEST(Format_NV12);
- ADD_ENUM_TEST(Format_NV21);
- ADD_ENUM_TEST(Format_IMC1);
- ADD_ENUM_TEST(Format_IMC2);
- ADD_ENUM_TEST(Format_IMC3);
- ADD_ENUM_TEST(Format_IMC4);
- ADD_ENUM_TEST(Format_Y8);
- ADD_ENUM_TEST(Format_Y16);
-
- ADD_ENUM_TEST(Format_Jpeg);
-
- ADD_ENUM_TEST(Format_CameraRaw);
- ADD_ENUM_TEST(Format_AdobeDng);
-
- // User enums are formatted differently
- QTest::newRow("user 1000") << QVideoFrame::Format_User << QString::fromLatin1("UserType(1000)");
- QTest::newRow("user 1005") << QVideoFrame::PixelFormat(QVideoFrame::Format_User + 5) << QString::fromLatin1("UserType(1005)");
-}
-
-void tst_QVideoFrame::debugFormat()
-{
- QFETCH(QVideoFrame::PixelFormat, format);
- QFETCH(QString, stringized);
-
- QTest::ignoreMessage(QtDebugMsg, stringized.toLatin1().constData());
- qDebug() << format;
-}
-
QTEST_MAIN(tst_QVideoFrame)
#include "tst_qvideoframe.moc"