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> 20 using namespace Media;
45 CPPUNIT_TEST(testMp4Parsing);
46 CPPUNIT_TEST(testMp3Parsing);
47 CPPUNIT_TEST(testOggParsing);
48 CPPUNIT_TEST(testFlacParsing);
49 CPPUNIT_TEST(testMkvParsing);
51 CPPUNIT_TEST(testMp4Making);
52 CPPUNIT_TEST(testMp3Making);
53 CPPUNIT_TEST(testOggMaking);
54 CPPUNIT_TEST(testFlacMaking);
55 CPPUNIT_TEST(testMkvMakingWithDifferentSettings);
56 CPPUNIT_TEST(testMkvMakingNestedTags);
58 CPPUNIT_TEST_SUITE_END();
65 void parseFile(
const string &path,
void (
OverallTests::* checkRoutine)(
void));
66 void makeFile(
const string &path,
void (
OverallTests::* modifyRoutine)(
void),
void (
OverallTests::* checkRoutine)(
void));
68 void checkMkvTestfile1();
69 void checkMkvTestfile2();
70 void checkMkvTestfile3();
71 void checkMkvTestfile4();
72 void checkMkvTestfile5();
73 void checkMkvTestfile6();
74 void checkMkvTestfile7();
75 void checkMkvTestfile8();
76 void checkMkvTestfileHandbrakeChapters();
77 void checkMkvTestfileNestedTags();
78 void checkMkvTestMetaData();
79 void checkMkvConstraints();
81 void checkMp4Testfile1();
82 void checkMp4Testfile2();
83 void checkMp4Testfile3();
84 void checkMp4Testfile4();
85 void checkMp4Testfile5();
86 void checkMp4TestMetaData();
87 void checkMp4Constraints();
89 void checkMp3Testfile1();
90 void checkMp3TestMetaData();
91 void checkMp3PaddingConstraints();
93 void checkOggTestfile1();
94 void checkOggTestfile2();
95 void checkOggTestMetaData();
97 void checkFlacTestfile1();
98 void checkFlacTestfile2();
100 void setMkvTestMetaData();
101 void setMp4TestMetaData();
102 void setMp3TestMetaData();
103 void setOggTestMetaData();
104 void removeAllTags();
106 void createMkvWithNestedTags();
107 void createFlacFiles();
110 void testMkvParsing();
111 void testMp4Parsing();
112 void testMp3Parsing();
113 void testOggParsing();
114 void testFlacParsing();
116 void testMkvMakingWithDifferentSettings();
117 void testMkvMakingNestedTags();
118 void testMp4Making();
119 void testMp3Making();
120 void testOggMaking();
121 void testFlacMaking();
133 queue<TagValue> m_preservedMetaData;
134 string m_nestedTagsMkvPath;
135 string m_rawFlacPath;
136 string m_flacInOggPath;
143 #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...