fixup! Issue #7382 Use descriptive enums instead of booleans for MIMEClassifier::classifer

This commit is contained in:
Mathieu Rheaume 2015-09-12 16:56:55 -04:00
parent 5c807311de
commit ff608de781
2 changed files with 23 additions and 8 deletions

View file

@ -529,3 +529,13 @@ fn test_sniff_octet_stream_apache_flag_on() {
ApacheBugFlag::ON);
}
#[test]
fn test_sniff_mp4_video_apache_flag_on() {
test_sniff_with_flags(&PathBuf::from("video/mp4/test.mp4"),
"video",
"mp4",
None,
NoSniffFlag::OFF,
ApacheBugFlag::ON);
}