Unit tests for Matroska

This commit is contained in:
Urs Fleisch
2026-01-24 14:59:10 +01:00
parent 280d6306d2
commit d2bf7e72d2
6 changed files with 984 additions and 6 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+976 -4
View File
File diff suppressed because it is too large Load Diff
+8 -2
View File
@@ -156,6 +156,9 @@
#include <cppunit/extensions/HelperMacros.h>
#include "matroskaattachedfile.h"
#include "matroskaattachments.h"
using namespace std;
using namespace TagLib;
@@ -306,8 +309,11 @@ public:
#ifdef TAGLIB_WITH_MATROSKA
CPPUNIT_ASSERT_EQUAL(classSize(1, true), sizeof(TagLib::Matroska::File));
CPPUNIT_ASSERT_EQUAL(classSize(1, true), sizeof(TagLib::Matroska::Properties));
// TODO move non pimpl fields into private class.
// CPPUNIT_ASSERT_EQUAL(classSize(1, true), sizeof(TagLib::Matroska::Tag));
CPPUNIT_ASSERT_EQUAL(classSize(3, true), sizeof(TagLib::Matroska::Tag));
CPPUNIT_ASSERT_EQUAL(classSize(0, true), sizeof(TagLib::Matroska::Element));
CPPUNIT_ASSERT_EQUAL(classSize(1, true), sizeof(TagLib::Matroska::Attachments));
CPPUNIT_ASSERT_EQUAL(classSize(0, false), sizeof(TagLib::Matroska::SimpleTag));
CPPUNIT_ASSERT_EQUAL(classSize(0, false), sizeof(TagLib::Matroska::AttachedFile));
#endif
}