Test WMA files too

This commit is contained in:
David Sansome 2010-04-21 18:21:27 +00:00
parent 7263983e0c
commit 5fed8efc44
3 changed files with 8 additions and 3 deletions

BIN
tests/data/beep.wma Normal file

Binary file not shown.

View File

@ -5,5 +5,6 @@
<file>beep.ogg</file>
<file>beep.spx</file>
<file>beep.wav</file>
<file>beep.wma</file>
</qresource>
</RCC>

View File

@ -55,9 +55,13 @@ class FileformatsTest : public ::testing::TestWithParam<const char*> {
}
void SaveToTempFile(QTemporaryFile* file) {
QResource resource(resource_filename_);
QFile resource(resource_filename_);
resource.open(QIODevice::ReadOnly);
QByteArray data(resource.readAll());
resource.close();
file->open();
file->write(reinterpret_cast<const char*>(resource.data()), resource.size());
file->write(data);
file->flush();
}
@ -104,6 +108,6 @@ TEST_P(FileformatsTest, GstCanDecode) {
}
INSTANTIATE_TEST_CASE_P(Formats, FileformatsTest, ::testing::Values(
"flac", "mp3", "ogg", "spx", "wav"));
"flac", "mp3", "ogg", "spx", "wav", "wma"));
} // namespace