Skip to content

Commit

Permalink
Tests: Use Mp4Properties::is_drm_properties() in TagLib tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Serial-ATA committed Dec 3, 2023
1 parent 1bd7217 commit c7baab6
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tests/taglib/test_mp4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ fn test_properties_aac() {
assert_eq!(f.properties().channels(), 2);
assert_eq!(f.properties().sample_rate(), 44100);
assert_eq!(f.properties().bit_depth(), Some(16));
// TODO: Check for encryption
// assert_eq!(f.properties().encrypted, false);
assert!(!f.properties().is_drm_protected());
assert_eq!(f.properties().codec(), &Mp4Codec::AAC);
}

Expand All @@ -42,7 +41,7 @@ fn test_properties_aac_without_bitrate() {
assert_eq!(f.properties().channels(), 2);
assert_eq!(f.properties().sample_rate(), 44100);
assert_eq!(f.properties().bit_depth(), Some(16));
// assert_eq!(f.properties().encrypted, false);
assert!(!f.properties().is_drm_protected());
assert_eq!(f.properties().codec(), &Mp4Codec::AAC);
}

Expand All @@ -55,7 +54,7 @@ fn test_properties_alac() {
assert_eq!(f.properties().channels(), 2);
assert_eq!(f.properties().sample_rate(), 44100);
assert_eq!(f.properties().bit_depth(), Some(16));
// assert_eq!(f.properties().encrypted, false);
assert!(!f.properties().is_drm_protected());
assert_eq!(f.properties().codec(), &Mp4Codec::ALAC);
}

Expand All @@ -80,7 +79,7 @@ fn test_properties_alac_without_bitrate() {
assert_eq!(f.properties().channels(), 2);
assert_eq!(f.properties().sample_rate(), 44100);
assert_eq!(f.properties().bit_depth(), Some(16));
// assert_eq!(f.properties().encrypted, false);
assert_eq!(f.properties().is_drm_protected(), false);
assert_eq!(f.properties().codec(), &Mp4Codec::ALAC);
}

Expand All @@ -93,7 +92,7 @@ fn test_properties_m4v() {
assert_eq!(f.properties().channels(), 2);
assert_eq!(f.properties().sample_rate(), 44100);
assert_eq!(f.properties().bit_depth(), Some(16));
// assert_eq!(f.properties().encrypted, false);
assert!(!f.properties().is_drm_protected());
assert_eq!(f.properties().codec(), &Mp4Codec::AAC);
}

Expand Down

0 comments on commit c7baab6

Please sign in to comment.