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>
24using namespace CppUtilities::Literals;
26using namespace CPPUNIT_NS;
53 CPPUNIT_TEST_SUITE_END();
58 void setUp()
override;
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 checkOggTestfile3();
96 void checkOggTestMetaData();
97 void checkOggTestMetaDataCover();
99 void checkFlacTestfile1();
100 void checkFlacTestfile2();
102 void setMkvTestMetaData();
103 void setMp4TestMetaData();
104 void setMp3TestMetaData1();
105 void setMp3TestMetaData2();
106 void setOggTestMetaData();
107 void setOggTestMetaDataCover();
108 void removeAllTags();
110 void alterMp4Tracks();
111 void removeSecondTrack();
133 TagValue m_testCommentWithoutDescription;
139 queue<TagValue> m_preservedMetaData;
141 std::uint16_t m_mode;
The OverallTests class tests reading and writing tags and parsing technical information for all suppo...
void testMp3Parsing()
Tests the MP3 parser via MediaFileInfo.
void testOggParsing()
Tests the Ogg parser via MediaFileInfo.
void testMp3Making()
Tests the MP3 maker via MediaFileInfo.
void setUp() override
Creates some test meta data.
void testFlacParsing()
Tests the FLAC parser via MediaFileInfo.
void testFlacMaking()
Tests the FLAC maker via MediaFileInfo.
void testMp4Making()
Tests the MP4 maker via MediaFileInfo.
void testMkvMakingNestedTags()
Tests making a Matroska file with nested tags via MediaFileInfo.
void testMp4Parsing()
Tests the MP4 parser via MediaFileInfo.
void testMkvParsing()
Tests the Matroska parser via MediaFileInfo.
void testMkvMakingWithDifferentSettings()
Tests the Matroska maker via MediaFileInfo.
void testOggMaking()
Tests the Ogg maker via MediaFileInfo.
The AbortableProgressFeedback class provides feedback about an ongoing operation via callbacks.
The Diagnostics class is a container for DiagMessage.
The TagValue class wraps values of different types.
Contains all classes and functions of the TagInfo library.