summaryrefslogtreecommitdiffstats
path: root/tests/auto/unit/qaudioformat
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/qaudioformat
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/qaudioformat')
-rw-r--r--tests/auto/unit/qaudioformat/tst_qaudioformat.cpp39
1 files changed, 0 insertions, 39 deletions
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<QAudioFormat>("format");
- QTest::addColumn<QString>("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"