1 #ifndef TAGPARSER_OVERALL_TESTS_H
2 #define TAGPARSER_OVERALL_TESTS_H
6 #include "../diagnostics.h"
7 #include "../mediafileinfo.h"
8 #include "../progressfeedback.h"
9 #include "../tagvalue.h"
11 #include <c++utilities/chrono/datetime.h>
12 #include <c++utilities/chrono/format.h>
13 #include <c++utilities/conversion/stringconversion.h>
14 #include <c++utilities/tests/testutils.h>
17 #include <cppunit/TestFixture.h>
18 #include <cppunit/extensions/HelperMacros.h>
24 using namespace CppUtilities::Literals;
26 using namespace CPPUNIT_NS;
42 CPPUNIT_TEST(testMp4Parsing);
43 CPPUNIT_TEST(testMp3Parsing);
44 CPPUNIT_TEST(testOggParsing);
45 CPPUNIT_TEST(testFlacParsing);
46 CPPUNIT_TEST(testMkvParsing);
47 CPPUNIT_TEST(testMp4Making);
48 CPPUNIT_TEST(testMp3Making);
49 CPPUNIT_TEST(testOggMaking);
50 CPPUNIT_TEST(testFlacMaking);
51 CPPUNIT_TEST(testMkvMakingWithDifferentSettings);
52 CPPUNIT_TEST(testMkvMakingNestedTags);
53 CPPUNIT_TEST_SUITE_END();
62 void parseFile(
const string &path,
void (
OverallTests::*checkRoutine)(
void));
63 void makeFile(
const string &path,
void (
OverallTests::*modifyRoutine)(
void),
void (
OverallTests::*checkRoutine)(
void));
65 void checkMkvTestfile1();
66 void checkMkvTestfile2();
67 void checkMkvTestfile3();
68 void checkMkvTestfile4();
69 void checkMkvTestfile5();
70 void checkMkvTestfile6();
71 void checkMkvTestfile7();
72 void checkMkvTestfile8();
73 void checkMkvTestfileHandbrakeChapters();
74 void checkMkvTestfileNestedTags();
75 void checkMkvTestMetaData();
76 void checkMkvConstraints();
78 void checkMp4Testfile1();
79 void checkMp4Testfile2();
80 void checkMp4Testfile3();
81 void checkMp4Testfile4();
82 void checkMp4Testfile5();
83 void checkMp4Testfile6();
84 void checkMp4Testfile7();
85 void checkMp4TestMetaData();
86 void checkMp4Constraints();
88 void checkMp3Testfile1();
89 void checkMp3Testfile2();
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 setMp3TestMetaData1();
103 void setMp3TestMetaData2();
104 void setOggTestMetaData();
105 void removeAllTags();
107 void alterMp4Tracks();
108 void removeSecondTrack();
111 void testMkvParsing();
112 void testMp4Parsing();
113 void testMp3Parsing();
114 void testOggParsing();
115 void testFlacParsing();
116 void testMkvMakingWithDifferentSettings();
117 void testMkvMakingNestedTags();
118 void testMp4Making();
119 void testMp3Making();
120 void testOggMaking();
121 void testFlacMaking();
130 TagValue m_testCommentWithoutDescription;
136 queue<TagValue> m_preservedMetaData;
138 std::uint16_t m_mode;
143 #endif // TAGPARSER_OVERALL_TESTS_H