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