1 #ifndef TAGPARSER_OVERALL_TESTS_H 2 #define TAGPARSER_OVERALL_TESTS_H 4 #include "../mediafileinfo.h" 5 #include "../tagvalue.h" 7 #include <c++utilities/tests/testutils.h> 8 #include <c++utilities/conversion/stringconversion.h> 10 #include <cppunit/extensions/HelperMacros.h> 11 #include <cppunit/TestFixture.h> 21 using namespace Media;
46 CPPUNIT_TEST(testMp4Parsing);
47 CPPUNIT_TEST(testMp3Parsing);
48 CPPUNIT_TEST(testOggParsing);
49 CPPUNIT_TEST(testFlacParsing);
50 CPPUNIT_TEST(testMkvParsing);
52 CPPUNIT_TEST(testMp4Making);
53 CPPUNIT_TEST(testMp3Making);
54 CPPUNIT_TEST(testOggMaking);
55 CPPUNIT_TEST(testFlacMaking);
56 CPPUNIT_TEST(testMkvMakingWithDifferentSettings);
57 CPPUNIT_TEST(testMkvMakingNestedTags);
59 CPPUNIT_TEST_SUITE_END();
66 void parseFile(
const string &path,
void (
OverallTests::* checkRoutine)(
void));
67 void makeFile(
const string &path,
void (
OverallTests::* modifyRoutine)(
void),
void (
OverallTests::* checkRoutine)(
void));
69 void checkMkvTestfile1();
70 void checkMkvTestfile2();
71 void checkMkvTestfile3();
72 void checkMkvTestfile4();
73 void checkMkvTestfile5();
74 void checkMkvTestfile6();
75 void checkMkvTestfile7();
76 void checkMkvTestfile8();
77 void checkMkvTestfileHandbrakeChapters();
78 void checkMkvTestfileNestedTags();
79 void checkMkvTestMetaData();
80 void checkMkvConstraints();
82 void checkMp4Testfile1();
83 void checkMp4Testfile2();
84 void checkMp4Testfile3();
85 void checkMp4Testfile4();
86 void checkMp4Testfile5();
87 void checkMp4Testfile6();
88 void checkMp4TestMetaData();
89 void checkMp4Constraints();
91 void checkMp3Testfile1();
92 void checkMp3TestMetaData();
93 void checkMp3PaddingConstraints();
95 void checkOggTestfile1();
96 void checkOggTestfile2();
97 void checkOggTestMetaData();
99 void checkFlacTestfile1();
100 void checkFlacTestfile2();
102 void setMkvTestMetaData();
103 void setMp4TestMetaData();
104 void setMp3TestMetaData();
105 void setOggTestMetaData();
106 void removeAllTags();
108 void createMkvWithNestedTags();
110 void removeSecondTrack();
113 void testMkvParsing();
114 void testMp4Parsing();
115 void testMp3Parsing();
116 void testOggParsing();
117 void testFlacParsing();
119 void testMkvMakingWithDifferentSettings();
120 void testMkvMakingNestedTags();
121 void testMp4Making();
122 void testMp3Making();
123 void testOggMaking();
124 void testFlacMaking();
137 queue<TagValue> m_preservedMetaData;
138 string m_nestedTagsMkvPath;
139 string m_rawFlacPath;
140 string m_flacInOggPath;
147 #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...