Adjust tests to handle all notifications being present again

This commit is contained in:
Martchus 2017-09-14 22:31:32 +02:00
parent 5e4e6a04a9
commit 5c4de0909a
1 changed files with 12 additions and 1 deletions

View File

@ -157,7 +157,18 @@ void OverallTests::checkMp4Testfile3()
case TagStatus::Removed:
CPPUNIT_ASSERT_EQUAL(0_st, tags.size());
}
CPPUNIT_ASSERT(m_fileInfo.worstNotificationTypeIncludingRelatedObjects() <= NotificationType::Information);
for(const Notification &notification : m_fileInfo.gatherRelatedNotifications()) {
if(notification.type() != NotificationType::Warning) {
continue;
}
if(m_mode & Mp4TestFlags::TagsBeforeData) {
CPPUNIT_FAIL("No warnings expected when putting tags before data.");
} else {
CPPUNIT_ASSERT_EQUAL("Sorry, but putting index/tags at the end is not possible when dealing with DASH files."s, notification.message());
}
}
CPPUNIT_ASSERT(m_fileInfo.worstNotificationTypeIncludingRelatedObjects() <= NotificationType::Warning);
}
/*!