21 for(
const string &file : {m_nestedTagsMkvPath, m_rawFlacPath, m_flacInOggPath}) {
31 void OverallTests::parseFile(
const string &path,
void (
OverallTests::* checkRoutine)(
void))
34 cerr <<
"- testing " << path << endl;
40 (this->*checkRoutine)();
48 void OverallTests::makeFile(
const string &path,
void (
OverallTests::*modifyRoutine)(
void),
void (
OverallTests::*checkRoutine)(
void))
51 cerr <<
"- testing " << path << endl;
61 if(m_fileInfo.
tagPosition() != ElementPosition::Keep) {
65 if(m_expectedTagPos == ElementPosition::Keep) {
72 case ContainerFormat::Matroska:
75 if(m_fileInfo.
tagPosition() != ElementPosition::Keep) {
83 if(m_fileInfo.
indexPosition() != ElementPosition::Keep && m_expectedIndexPos != ElementPosition::Keep) {
92 (this->*modifyRoutine)();
98 (this->*checkRoutine)();
101 case ContainerFormat::Matroska:
102 checkMkvConstraints();
105 checkMp4Constraints();
109 checkMp3PaddingConstraints();
117 remove(path.c_str());
118 remove((path +
".bak").c_str());
124 void OverallTests::removeAllTags()
133 void OverallTests::noop()
140 void OverallTests::removeSecondTrack()
CPPUNIT_TEST_SUITE_REGISTRATION(OverallTests)
The OverallTests class tests reading and writing tags and parsing technical information for all suppo...
void setUp()
Creates some test meta data.