From c5c3ce6f9bcdb560e30438ffca5647580f2f00c1 Mon Sep 17 00:00:00 2001 From: Yoann Lopes Date: Wed, 26 Mar 2014 14:46:51 +0100 Subject: 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 --- tests/auto/unit/qaudioformat/tst_qaudioformat.cpp | 39 ----------------------- 1 file changed, 39 deletions(-) (limited to 'tests/auto/unit/qaudioformat') diff --git a/tests/auto/unit/qaudioformat/tst_qaudioformat.cpp b/tests/auto/unit/qaudioformat/tst_qaudioformat.cpp index 428cea5ef..b52cdebb9 100644 --- a/tests/auto/unit/qaudioformat/tst_qaudioformat.cpp +++ b/tests/auto/unit/qaudioformat/tst_qaudioformat.cpp @@ -69,9 +69,6 @@ private slots: void checkSizes(); void checkSizes_data(); - - void debugOperator(); - void debugOperator_data(); }; void tst_QAudioFormat::checkNull() @@ -316,42 +313,6 @@ void tst_QAudioFormat::checkSizes_data() QTest::newRow("2ch_16b_8k_signed_8000_duration4") << f << 4 << 8000 << qrtr << 2000 << 8000 << qrtr + 126 << 8004 << 2001; } -void tst_QAudioFormat::debugOperator_data() -{ - QTest::addColumn("format"); - QTest::addColumn("stringized"); - - // A small sampling - QAudioFormat f; - QTest::newRow("plain") << f << QString::fromLatin1("QAudioFormat(-1Hz, -1bit, channelCount=-1, sampleType=Unknown, byteOrder=LittleEndian, codec=\"\")"); - - f.setSampleRate(22050); - f.setByteOrder(QAudioFormat::LittleEndian); - f.setChannelCount(4); - f.setCodec("audio/pcm"); - f.setSampleType(QAudioFormat::Float); - - QTest::newRow("float") << f << QString::fromLatin1("QAudioFormat(22050Hz, -1bit, channelCount=4, sampleType=Float, byteOrder=LittleEndian, codec=\"audio/pcm\")"); - - f.setSampleType(QAudioFormat::UnSignedInt); - QTest::newRow("unsigned") << f << QString::fromLatin1("QAudioFormat(22050Hz, -1bit, channelCount=4, sampleType=UnSignedInt, byteOrder=LittleEndian, codec=\"audio/pcm\")"); - - f.setSampleRate(44100); - QTest::newRow("44.1 unsigned") << f << QString::fromLatin1("QAudioFormat(44100Hz, -1bit, channelCount=4, sampleType=UnSignedInt, byteOrder=LittleEndian, codec=\"audio/pcm\")"); - - f.setByteOrder(QAudioFormat::BigEndian); - QTest::newRow("44.1 big unsigned") << f << QString::fromLatin1("QAudioFormat(44100Hz, -1bit, channelCount=4, sampleType=UnSignedInt, byteOrder=BigEndian, codec=\"audio/pcm\")"); -} - -void tst_QAudioFormat::debugOperator() -{ - QFETCH(QAudioFormat, format); - QFETCH(QString, stringized); - - QTest::ignoreMessage(QtDebugMsg, stringized.toLatin1().constData()); - qDebug() << format; -} - QTEST_MAIN(tst_QAudioFormat) #include "tst_qaudioformat.moc" -- cgit v1.2.3