1 #ifndef TAGPARSER_OVERALL_TESTS_H 2 #define TAGPARSER_OVERALL_TESTS_H 4 #include "../mediafileinfo.h" 5 #include "../tagvalue.h" 7 #include <c++utilities/conversion/stringconversion.h> 8 #include <c++utilities/tests/testutils.h> 11 #include <cppunit/extensions/HelperMacros.h> 12 #include <cppunit/TestFixture.h> 22 using namespace Media;
47 CPPUNIT_TEST(testMp4Parsing);
48 CPPUNIT_TEST(testMp3Parsing);
49 CPPUNIT_TEST(testOggParsing);
50 CPPUNIT_TEST(testFlacParsing);
51 CPPUNIT_TEST(testMkvParsing);
53 CPPUNIT_TEST(testMp4Making);
54 CPPUNIT_TEST(testMp3Making);
55 CPPUNIT_TEST(testOggMaking);
56 CPPUNIT_TEST(testFlacMaking);
57 CPPUNIT_TEST(testMkvMakingWithDifferentSettings);
58 CPPUNIT_TEST(testMkvMakingNestedTags);
60 CPPUNIT_TEST_SUITE_END();
67 void parseFile(
const string &path,
void (
OverallTests::* checkRoutine)(
void));
68 void makeFile(
const string &path,
void (
OverallTests::* modifyRoutine)(
void),
void (
OverallTests::* checkRoutine)(
void));
70 void checkMkvTestfile1();
71 void checkMkvTestfile2();
72 void checkMkvTestfile3();
73 void checkMkvTestfile4();
74 void checkMkvTestfile5();
75 void checkMkvTestfile6();
76 void checkMkvTestfile7();
77 void checkMkvTestfile8();
78 void checkMkvTestfileHandbrakeChapters();
79 void checkMkvTestfileNestedTags();
80 void checkMkvTestMetaData();
81 void checkMkvConstraints();
83 void checkMp4Testfile1();
84 void checkMp4Testfile2();
85 void checkMp4Testfile3();
86 void checkMp4Testfile4();
87 void checkMp4Testfile5();
88 void checkMp4Testfile6();
89 void checkMp4TestMetaData();
90 void checkMp4Constraints();
92 void checkMp3Testfile1();
93 void checkMp3TestMetaData();
94 void checkMp3PaddingConstraints();
96 void checkOggTestfile1();
97 void checkOggTestfile2();
98 void checkOggTestMetaData();
100 void checkFlacTestfile1();
101 void checkFlacTestfile2();
103 void setMkvTestMetaData();
104 void setMp4TestMetaData();
105 void setMp3TestMetaData();
106 void setOggTestMetaData();
107 void removeAllTags();
109 void createMkvWithNestedTags();
110 void alterMp4Tracks();
111 void removeSecondTrack();
114 void testMkvParsing();
115 void testMp4Parsing();
116 void testMp3Parsing();
117 void testOggParsing();
118 void testFlacParsing();
120 void testMkvMakingWithDifferentSettings();
121 void testMkvMakingNestedTags();
122 void testMp4Making();
123 void testMp3Making();
124 void testOggMaking();
125 void testFlacMaking();
138 queue<TagValue> m_preservedMetaData;
139 string m_nestedTagsMkvPath;
140 string m_rawFlacPath;
141 string m_flacInOggPath;
148 #endif // TAGPARSER_OVERALL_TESTS_H
Contains utility classes helping to read and write streams.
The OverallTests class tests reading and writing tags and parsing technical information for all suppo...