Add a method to check if an MP4 file on disk actually has a tag.

This commit is contained in:
Tsuda Kageyu
2015-06-12 15:12:58 +09:00
parent 6775cef651
commit 762581fe3f
3 changed files with 30 additions and 5 deletions

View File

@ -69,6 +69,10 @@ public:
CPPUNIT_ASSERT(!f.isValid());
MP4::File f2(TEST_FILE_PATH_C("has-tags.m4a"));
CPPUNIT_ASSERT(f2.isValid());
CPPUNIT_ASSERT(f2.hasMP4Tag());
MP4::File f3(TEST_FILE_PATH_C("no-tags.m4a"));
CPPUNIT_ASSERT(f3.isValid());
CPPUNIT_ASSERT(!f3.hasMP4Tag());
}
void testIsEmpty()