summaryrefslogtreecommitdiffstats
path: root/tests/auto/qmediaserviceprovider
diff options
context:
space:
mode:
authorJustin McPherson <justin.mcpherson@nokia.com>2010-02-19 07:05:50 (GMT)
committerJustin McPherson <justin.mcpherson@nokia.com>2010-02-19 07:05:50 (GMT)
commit723d412d2b3fcb2f64594ff75ad94d469285aeb1 (patch)
tree2bf811bfbd59be616599a9d10a2aa7db60e05c01 /tests/auto/qmediaserviceprovider
parent6fa813a4d5b46523940f6af8ed74e6855bad49c9 (diff)
downloadQt-723d412d2b3fcb2f64594ff75ad94d469285aeb1.zip
Qt-723d412d2b3fcb2f64594ff75ad94d469285aeb1.tar.gz
Qt-723d412d2b3fcb2f64594ff75ad94d469285aeb1.tar.bz2
Complete namespace move; QtMedia -> QtMultimedia
Diffstat (limited to 'tests/auto/qmediaserviceprovider')
-rw-r--r--tests/auto/qmediaserviceprovider/tst_qmediaserviceprovider.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/tests/auto/qmediaserviceprovider/tst_qmediaserviceprovider.cpp b/tests/auto/qmediaserviceprovider/tst_qmediaserviceprovider.cpp
index 9409394..9bca189 100644
--- a/tests/auto/qmediaserviceprovider/tst_qmediaserviceprovider.cpp
+++ b/tests/auto/qmediaserviceprovider/tst_qmediaserviceprovider.cpp
@@ -88,16 +88,16 @@ public:
delete service;
}
- QtMedia::SupportEstimate hasSupport(const QString &mimeType, const QStringList& codecs) const
+ QtMultimedia::SupportEstimate hasSupport(const QString &mimeType, const QStringList& codecs) const
{
if (codecs.contains(QLatin1String("mpeg4")))
- return QtMedia::NotSupported;
+ return QtMultimedia::NotSupported;
if (mimeType == "audio/ogg") {
- return QtMedia::ProbablySupported;
+ return QtMultimedia::ProbablySupported;
}
- return QtMedia::MaybeSupported;
+ return QtMultimedia::MaybeSupported;
}
QStringList supportedMimeTypes() const
@@ -147,14 +147,14 @@ public:
delete service;
}
- QtMedia::SupportEstimate hasSupport(const QString &mimeType, const QStringList& codecs) const
+ QtMultimedia::SupportEstimate hasSupport(const QString &mimeType, const QStringList& codecs) const
{
Q_UNUSED(codecs);
if (mimeType == "audio/wav")
- return QtMedia::PreferedService;
+ return QtMultimedia::PreferedService;
- return QtMedia::NotSupported;
+ return QtMultimedia::NotSupported;
}
QStringList supportedMimeTypes() const
@@ -282,7 +282,7 @@ void tst_QMediaServiceProvider::testHasSupport()
{
MockMediaServiceProvider mockProvider;
QCOMPARE(mockProvider.hasSupport(QByteArray(Q_MEDIASERVICE_MEDIAPLAYER), "video/ogv", QStringList()),
- QtMedia::MaybeSupported);
+ QtMultimedia::MaybeSupported);
QMediaServiceProvider *provider = QMediaServiceProvider::defaultServiceProvider();
@@ -290,27 +290,27 @@ void tst_QMediaServiceProvider::testHasSupport()
QSKIP("No default provider", SkipSingle);
QCOMPARE(provider->hasSupport(QByteArray(Q_MEDIASERVICE_MEDIAPLAYER), "video/ogv", QStringList()),
- QtMedia::MaybeSupported);
+ QtMultimedia::MaybeSupported);
QCOMPARE(provider->hasSupport(QByteArray(Q_MEDIASERVICE_MEDIAPLAYER), "audio/ogg", QStringList()),
- QtMedia::ProbablySupported);
+ QtMultimedia::ProbablySupported);
//while the service returns PreferredService, provider should return ProbablySupported
QCOMPARE(provider->hasSupport(QByteArray(Q_MEDIASERVICE_MEDIAPLAYER), "audio/wav", QStringList()),
- QtMedia::ProbablySupported);
+ QtMultimedia::ProbablySupported);
//even while all the plugins with "hasSupport" returned NotSupported,
//MockServicePlugin3 has no "hasSupport" interface, so MaybeSupported
QCOMPARE(provider->hasSupport(QByteArray(Q_MEDIASERVICE_MEDIAPLAYER), "video/avi",
QStringList() << "mpeg4"),
- QtMedia::MaybeSupported);
+ QtMultimedia::MaybeSupported);
QCOMPARE(provider->hasSupport(QByteArray("non existing service"), "video/ogv", QStringList()),
- QtMedia::NotSupported);
+ QtMultimedia::NotSupported);
- QCOMPARE(QMediaPlayer::hasSupport("video/ogv"), QtMedia::MaybeSupported);
- QCOMPARE(QMediaPlayer::hasSupport("audio/ogg"), QtMedia::ProbablySupported);
- QCOMPARE(QMediaPlayer::hasSupport("audio/wav"), QtMedia::ProbablySupported);
+ QCOMPARE(QMediaPlayer::hasSupport("video/ogv"), QtMultimedia::MaybeSupported);
+ QCOMPARE(QMediaPlayer::hasSupport("audio/ogg"), QtMultimedia::ProbablySupported);
+ QCOMPARE(QMediaPlayer::hasSupport("audio/wav"), QtMultimedia::ProbablySupported);
//ensure the correct media player plugin is choosen for mime type
QMediaPlayer simplePlayer(0, QMediaPlayer::LowLatency);