summaryrefslogtreecommitdiffstats
path: root/tests/auto/unit
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-11-09 14:14:08 +1000
committerQt by Nokia <qt-info@nokia.com>2011-11-10 06:45:27 +0100
commit34cdc41a935766a7d773cb7e2bdb7ce27711dd9d (patch)
tree2ee0419423273b8b41b0ea0f1ca748d33d373b17 /tests/auto/unit
parent23af917dc5b9f6b06bf3cee9741e87394e4f2189 (diff)
Remove SkipMode parameter from QSKIP.
The SkipMode parameter has been removed from the API in qtbase, so it must be in all calls to QSKIP. Task-number: QTBUG-21851, QTBUG-21652 Change-Id: Ib6225572a46eac7881222fdce192750b8b13ee3b Reviewed-by: Steve Schilz <sschilz@pasco.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests/auto/unit')
-rw-r--r--tests/auto/unit/qgraphicsvideoitem/tst_qgraphicsvideoitem.cpp2
-rw-r--r--tests/auto/unit/qmediaimageviewer/tst_qmediaimageviewer.cpp6
-rw-r--r--tests/auto/unit/qmediaimageviewerwidgets/tst_qmediaimageviewerwidgets.cpp2
-rw-r--r--tests/auto/unit/qmediapluginloader/tst_qmediapluginloader.cpp6
-rw-r--r--tests/auto/unit/qmediaserviceprovider/tst_qmediaserviceprovider.cpp6
-rw-r--r--tests/auto/unit/qpaintervideosurface/tst_qpaintervideosurface.cpp18
-rw-r--r--tests/auto/unit/qwavedecoder/tst_qwavedecoder.cpp4
7 files changed, 22 insertions, 22 deletions
diff --git a/tests/auto/unit/qgraphicsvideoitem/tst_qgraphicsvideoitem.cpp b/tests/auto/unit/qgraphicsvideoitem/tst_qgraphicsvideoitem.cpp
index 393ac7a49..76f1f7089 100644
--- a/tests/auto/unit/qgraphicsvideoitem/tst_qgraphicsvideoitem.cpp
+++ b/tests/auto/unit/qgraphicsvideoitem/tst_qgraphicsvideoitem.cpp
@@ -640,7 +640,7 @@ void tst_QGraphicsVideoItem::paint()
QPainterVideoSurface *surface = qobject_cast<QPainterVideoSurface *>(
object.testService->rendererControl->surface());
if (!surface)
- QSKIP("QGraphicsVideoItem is not QPainterVideoSurface based", SkipAll);
+ QSKIP("QGraphicsVideoItem is not QPainterVideoSurface based");
QVideoSurfaceFormat format(QSize(2, 2), QVideoFrame::Format_RGB32);
diff --git a/tests/auto/unit/qmediaimageviewer/tst_qmediaimageviewer.cpp b/tests/auto/unit/qmediaimageviewer/tst_qmediaimageviewer.cpp
index 00cfe8549..4d67774cc 100644
--- a/tests/auto/unit/qmediaimageviewer/tst_qmediaimageviewer.cpp
+++ b/tests/auto/unit/qmediaimageviewer/tst_qmediaimageviewer.cpp
@@ -899,7 +899,7 @@ void tst_QMediaImageViewer::rendererControl()
QMediaService *service = viewer.service();
if (service == 0)
- QSKIP("Image viewer object has no service.", SkipSingle);
+ QSKIP("Image viewer object has no service.");
QMediaControl *mediaControl = service->requestControl(QVideoRendererControl_iid);
QVERIFY(mediaControl != 0);
@@ -918,7 +918,7 @@ void tst_QMediaImageViewer::rendererControl()
QTestEventLoop::instance().enterLoop(2);
if (viewer.mediaStatus() != QMediaImageViewer::LoadedMedia)
- QSKIP("failed to load test image", SkipSingle);
+ QSKIP("failed to load test image");
QCOMPARE(surfaceA.isActive(), true);
@@ -993,7 +993,7 @@ void tst_QMediaImageViewer::setVideoOutput()
QTestEventLoop::instance().enterLoop(2);
if (imageViewer.mediaStatus() != QMediaImageViewer::LoadedMedia)
- QSKIP("failed to load test image", SkipSingle);
+ QSKIP("failed to load test image");
QtTestVideoSurface surface;
diff --git a/tests/auto/unit/qmediaimageviewerwidgets/tst_qmediaimageviewerwidgets.cpp b/tests/auto/unit/qmediaimageviewerwidgets/tst_qmediaimageviewerwidgets.cpp
index 80c745fe0..75407a3cd 100644
--- a/tests/auto/unit/qmediaimageviewerwidgets/tst_qmediaimageviewerwidgets.cpp
+++ b/tests/auto/unit/qmediaimageviewerwidgets/tst_qmediaimageviewerwidgets.cpp
@@ -97,7 +97,7 @@ void tst_QMediaImageViewerWidgets::setVideoOutput()
QTestEventLoop::instance().enterLoop(2);
if (imageViewer.mediaStatus() != QMediaImageViewer::LoadedMedia)
- QSKIP("failed to load test image", SkipSingle);
+ QSKIP("failed to load test image");
QVideoWidget widget;
QGraphicsVideoItem item;
diff --git a/tests/auto/unit/qmediapluginloader/tst_qmediapluginloader.cpp b/tests/auto/unit/qmediapluginloader/tst_qmediapluginloader.cpp
index 198d950a2..138fc1eb2 100644
--- a/tests/auto/unit/qmediapluginloader/tst_qmediapluginloader.cpp
+++ b/tests/auto/unit/qmediapluginloader/tst_qmediapluginloader.cpp
@@ -83,7 +83,7 @@ void tst_QMediaPluginLoader::testInstance()
const QStringList keys = loader->keys();
if (keys.isEmpty()) // Test is invalidated, skip.
- QSKIP("No plug-ins available", SkipAll);
+ QSKIP("No plug-ins available");
foreach (const QString &key, keys)
QVERIFY(loader->instance(key) != 0);
@@ -94,7 +94,7 @@ void tst_QMediaPluginLoader::testInstances()
const QStringList keys = loader->keys();
if (keys.isEmpty()) // Test is invalidated, skip.
- QSKIP("No plug-ins available", SkipAll);
+ QSKIP("No plug-ins available");
foreach (const QString &key, keys)
QVERIFY(loader->instances(key).size() > 0);
@@ -107,7 +107,7 @@ void tst_QMediaPluginLoader::testInvalidKey()
// This test assumes there is no 'invalid-key' in the key list, verify that.
if (loader->keys().contains(key))
- QSKIP("a plug-in includes the invalid key", SkipAll);
+ QSKIP("a plug-in includes the invalid key");
QVERIFY(loader->instance(key) == 0);
diff --git a/tests/auto/unit/qmediaserviceprovider/tst_qmediaserviceprovider.cpp b/tests/auto/unit/qmediaserviceprovider/tst_qmediaserviceprovider.cpp
index c70401f7d..fcb157c81 100644
--- a/tests/auto/unit/qmediaserviceprovider/tst_qmediaserviceprovider.cpp
+++ b/tests/auto/unit/qmediaserviceprovider/tst_qmediaserviceprovider.cpp
@@ -328,7 +328,7 @@ void tst_QMediaServiceProvider::testObtainService()
QMediaServiceProvider *provider = QMediaServiceProvider::defaultServiceProvider();
if (provider == 0)
- QSKIP("No default provider", SkipSingle);
+ QSKIP("No default provider");
QMediaService *service = 0;
@@ -347,7 +347,7 @@ void tst_QMediaServiceProvider::testHasSupport()
QMediaServiceProvider *provider = QMediaServiceProvider::defaultServiceProvider();
if (provider == 0)
- QSKIP("No default provider", SkipSingle);
+ QSKIP("No default provider");
QCOMPARE(provider->hasSupport(QByteArray(Q_MEDIASERVICE_MEDIAPLAYER), "video/ogv", QStringList()),
QtMultimedia::MaybeSupported);
@@ -405,7 +405,7 @@ void tst_QMediaServiceProvider::testSupportedMimeTypes()
QMediaServiceProvider *provider = QMediaServiceProvider::defaultServiceProvider();
if (provider == 0)
- QSKIP("No default provider", SkipSingle);
+ QSKIP("No default provider");
QVERIFY(provider->supportedMimeTypes(QByteArray(Q_MEDIASERVICE_MEDIAPLAYER)).contains("audio/ogg"));
QVERIFY(!provider->supportedMimeTypes(QByteArray(Q_MEDIASERVICE_MEDIAPLAYER)).contains("audio/mp3"));
diff --git a/tests/auto/unit/qpaintervideosurface/tst_qpaintervideosurface.cpp b/tests/auto/unit/qpaintervideosurface/tst_qpaintervideosurface.cpp
index 53ed906e9..dc2a10df5 100644
--- a/tests/auto/unit/qpaintervideosurface/tst_qpaintervideosurface.cpp
+++ b/tests/auto/unit/qpaintervideosurface/tst_qpaintervideosurface.cpp
@@ -666,7 +666,7 @@ void tst_QPainterVideoSurface::shaderTypeStarted()
surface.setGLContext(const_cast<QGLContext *>(widget.context()));
if (!(surface.supportedShaderTypes() & shaderType))
- QSKIP("Shader type unsupported on this platform", SkipSingle);
+ QSKIP("Shader type unsupported on this platform");
surface.setShaderType(shaderType);
QCOMPARE(surface.shaderType(), shaderType);
@@ -909,11 +909,11 @@ void tst_QPainterVideoSurface::shaderSupportedFormat()
if (!(surface.supportedShaderTypes() & shaderType))
- QSKIP("Shader type not supported on this platform", SkipSingle);
+ QSKIP("Shader type not supported on this platform");
surface.setShaderType(shaderType);
if (surface.shaderType() != shaderType)
- QSKIP("Shader type couldn't be set", SkipSingle);
+ QSKIP("Shader type couldn't be set");
const QList<QVideoFrame::PixelFormat> pixelFormats = surface.supportedPixelFormats(handleType);
@@ -1023,11 +1023,11 @@ void tst_QPainterVideoSurface::shaderPresent()
surface.setGLContext(const_cast<QGLContext *>(widget.context()));
if (!(surface.supportedShaderTypes() & shaderType))
- QSKIP("Shader type unsupported on this platform", SkipSingle);
+ QSKIP("Shader type unsupported on this platform");
surface.setShaderType(shaderType);
if (surface.shaderType() != shaderType)
- QSKIP("Shader type couldn't be set", SkipSingle);
+ QSKIP("Shader type couldn't be set");
QSignalSpy frameSpy(&surface, SIGNAL(frameChanged()));
@@ -1152,11 +1152,11 @@ void tst_QPainterVideoSurface::shaderPresentOpaqueFrame()
surface.setGLContext(const_cast<QGLContext *>(widget.context()));
if (!(surface.supportedShaderTypes() & shaderType))
- QSKIP("Shader type unsupported on this platform", SkipSingle);
+ QSKIP("Shader type unsupported on this platform");
surface.setShaderType(shaderType);
if (surface.shaderType() != shaderType)
- QSKIP("Shader type couldn't be set", SkipSingle);
+ QSKIP("Shader type couldn't be set");
QVideoSurfaceFormat format(QSize(64, 64), QVideoFrame::Format_RGB32);
@@ -1199,11 +1199,11 @@ void tst_QPainterVideoSurface::shaderPresentGLFrame()
surface.setGLContext(const_cast<QGLContext *>(widget.context()));
if (!(surface.supportedShaderTypes() & shaderType))
- QSKIP("Shader type unsupported on this platform", SkipSingle);
+ QSKIP("Shader type unsupported on this platform");
surface.setShaderType(shaderType);
if (surface.shaderType() != shaderType)
- QSKIP("Shader type couldn't be set", SkipSingle);
+ QSKIP("Shader type couldn't be set");
QVideoSurfaceFormat format(
QSize(2, 2), QVideoFrame::Format_RGB32, QAbstractVideoBuffer::GLTextureHandle);
diff --git a/tests/auto/unit/qwavedecoder/tst_qwavedecoder.cpp b/tests/auto/unit/qwavedecoder/tst_qwavedecoder.cpp
index a84879b0c..ee4d7ab34 100644
--- a/tests/auto/unit/qwavedecoder/tst_qwavedecoder.cpp
+++ b/tests/auto/unit/qwavedecoder/tst_qwavedecoder.cpp
@@ -166,7 +166,7 @@ void tst_QWaveDecoder::file()
QSignalSpy parsingErrorSpy(&waveDecoder, SIGNAL(parsingError()));
if (corruption == NotAWav) {
- QSKIP("Not all failures detected correctly yet", SkipSingle);
+ QSKIP("Not all failures detected correctly yet");
QTRY_COMPARE(parsingErrorSpy.count(), 1);
QCOMPARE(validFormatSpy.count(), 0);
} else if (corruption == NoSampleData) {
@@ -229,7 +229,7 @@ void tst_QWaveDecoder::http()
QSignalSpy parsingErrorSpy(&waveDecoder, SIGNAL(parsingError()));
if (corruption == NotAWav) {
- QSKIP("Not all failures detected correctly yet", SkipSingle);
+ QSKIP("Not all failures detected correctly yet");
QTRY_COMPARE(parsingErrorSpy.count(), 1);
QCOMPARE(validFormatSpy.count(), 0);
} else if (corruption == NoSampleData) {