Changeset View
Changeset View
Standalone View
Standalone View
autotests/taglibextractortest.cpp
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Line(s) | 52 | { | |||
---|---|---|---|---|---|
74 | QCOMPARE(result.properties().value(Property::ReleaseYear).toInt(), 2015); | 74 | QCOMPARE(result.properties().value(Property::ReleaseYear).toInt(), 2015); | ||
75 | } | 75 | } | ||
76 | 76 | | |||
77 | void TagLibExtractorTest::testCommonData_data() | 77 | void TagLibExtractorTest::testCommonData_data() | ||
78 | { | 78 | { | ||
79 | QTest::addColumn<QString>("fileType"); | 79 | QTest::addColumn<QString>("fileType"); | ||
80 | QTest::addColumn<QString>("mimeType"); | 80 | QTest::addColumn<QString>("mimeType"); | ||
81 | 81 | | |||
82 | QTest::addRow("aiff") | ||||
83 | << QStringLiteral("aif") | ||||
84 | << QStringLiteral("audio/x-aiff") | ||||
85 | ; | ||||
86 | | ||||
87 | QTest::addRow("ape") | ||||
88 | << QStringLiteral("ape") | ||||
89 | << QStringLiteral("audio/x-ape") | ||||
90 | ; | ||||
91 | | ||||
82 | QTest::addRow("flac") | 92 | QTest::addRow("flac") | ||
83 | << QStringLiteral("flac") | 93 | << QStringLiteral("flac") | ||
84 | << QStringLiteral("audio/flac") | 94 | << QStringLiteral("audio/flac") | ||
85 | ; | 95 | ; | ||
86 | 96 | | |||
87 | QTest::addRow("m4a") | 97 | QTest::addRow("m4a") | ||
88 | << QStringLiteral("m4a") | 98 | << QStringLiteral("m4a") | ||
89 | << QStringLiteral("audio/mp4") | 99 | << QStringLiteral("audio/mp4") | ||
Show All 13 Lines | 112 | QTest::addRow("ogg") | |||
103 | << QStringLiteral("ogg") | 113 | << QStringLiteral("ogg") | ||
104 | << QStringLiteral("audio/ogg") | 114 | << QStringLiteral("audio/ogg") | ||
105 | ; | 115 | ; | ||
106 | 116 | | |||
107 | QTest::addRow("opus") | 117 | QTest::addRow("opus") | ||
108 | << QStringLiteral("opus") | 118 | << QStringLiteral("opus") | ||
109 | << QStringLiteral("audio/opus") | 119 | << QStringLiteral("audio/opus") | ||
110 | ; | 120 | ; | ||
121 | | ||||
122 | QTest::addRow("wav") | ||||
123 | << QStringLiteral("wav") | ||||
124 | << QStringLiteral("audio/wav") | ||||
125 | ; | ||||
126 | | ||||
127 | QTest::addRow("wavpack") | ||||
128 | << QStringLiteral("wv") | ||||
129 | << QStringLiteral("audio/x-wavpack") | ||||
130 | ; | ||||
111 | } | 131 | } | ||
112 | 132 | | |||
113 | void TagLibExtractorTest::testOpus() | 133 | void TagLibExtractorTest::testOpus() | ||
114 | { | 134 | { | ||
115 | TagLibExtractor plugin{this}; | 135 | TagLibExtractor plugin{this}; | ||
116 | 136 | | |||
117 | SimpleExtractionResult resultOpus(testFilePath("test.opus"), "audio/opus"); | 137 | SimpleExtractionResult resultOpus(testFilePath("test.opus"), "audio/opus"); | ||
118 | plugin.extract(&resultOpus); | 138 | plugin.extract(&resultOpus); | ||
▲ Show 20 Lines • Show All 322 Lines • Show Last 20 Lines |