API unit tests from Maemo API test team.
A large number of tweaks and changes to original tests, and refactor a lot of the mock backends to reduce duplication. Changed viewfinder test case to use mock service and provider so that it matches the image capture test case. Reviewed-by: Jonas Rabbe (cherry picked from commit e40bef5508a4165cec4a46b97115aed461027fa5) Also licence header fix: (cherry picked from commit e9ee9e8c48b45b97d62ee4a82e400fa9d8ea8107) Change-Id: Ic59891d75563bb2e008a336eea859e8c44d8d831 Reviewed-on: http://codereview.qt.nokia.com/2078 Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
This commit is contained in:
committed by
Qt by Nokia
parent
1e4dda9710
commit
a6128410da
@@ -444,6 +444,16 @@ void tst_QMediaServiceProvider::testProviderHints()
|
||||
QCOMPARE(hint.features(), QMediaServiceProviderHint::LowLatencyPlayback);
|
||||
}
|
||||
|
||||
{
|
||||
QMediaServiceProviderHint hint(QMediaServiceProviderHint::RecordingSupport);
|
||||
QVERIFY(!hint.isNull());
|
||||
QCOMPARE(hint.type(), QMediaServiceProviderHint::SupportedFeatures);
|
||||
QVERIFY(hint.device().isEmpty());
|
||||
QVERIFY(hint.mimeType().isEmpty());
|
||||
QVERIFY(hint.codecs().isEmpty());
|
||||
QCOMPARE(hint.features(), QMediaServiceProviderHint::RecordingSupport);
|
||||
}
|
||||
|
||||
{
|
||||
QString mimeType(QLatin1String("video/ogg"));
|
||||
QStringList codecs;
|
||||
|
||||
Reference in New Issue
Block a user