Skip to content

Commit c7baab6

Browse files
committed
Tests: Use Mp4Properties::is_drm_properties() in TagLib tests
1 parent 1bd7217 commit c7baab6

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tests/taglib/test_mp4.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ fn test_properties_aac() {
1616
assert_eq!(f.properties().channels(), 2);
1717
assert_eq!(f.properties().sample_rate(), 44100);
1818
assert_eq!(f.properties().bit_depth(), Some(16));
19-
// TODO: Check for encryption
20-
// assert_eq!(f.properties().encrypted, false);
19+
assert!(!f.properties().is_drm_protected());
2120
assert_eq!(f.properties().codec(), &Mp4Codec::AAC);
2221
}
2322

@@ -42,7 +41,7 @@ fn test_properties_aac_without_bitrate() {
4241
assert_eq!(f.properties().channels(), 2);
4342
assert_eq!(f.properties().sample_rate(), 44100);
4443
assert_eq!(f.properties().bit_depth(), Some(16));
45-
// assert_eq!(f.properties().encrypted, false);
44+
assert!(!f.properties().is_drm_protected());
4645
assert_eq!(f.properties().codec(), &Mp4Codec::AAC);
4746
}
4847

@@ -55,7 +54,7 @@ fn test_properties_alac() {
5554
assert_eq!(f.properties().channels(), 2);
5655
assert_eq!(f.properties().sample_rate(), 44100);
5756
assert_eq!(f.properties().bit_depth(), Some(16));
58-
// assert_eq!(f.properties().encrypted, false);
57+
assert!(!f.properties().is_drm_protected());
5958
assert_eq!(f.properties().codec(), &Mp4Codec::ALAC);
6059
}
6160

@@ -80,7 +79,7 @@ fn test_properties_alac_without_bitrate() {
8079
assert_eq!(f.properties().channels(), 2);
8180
assert_eq!(f.properties().sample_rate(), 44100);
8281
assert_eq!(f.properties().bit_depth(), Some(16));
83-
// assert_eq!(f.properties().encrypted, false);
82+
assert_eq!(f.properties().is_drm_protected(), false);
8483
assert_eq!(f.properties().codec(), &Mp4Codec::ALAC);
8584
}
8685

@@ -93,7 +92,7 @@ fn test_properties_m4v() {
9392
assert_eq!(f.properties().channels(), 2);
9493
assert_eq!(f.properties().sample_rate(), 44100);
9594
assert_eq!(f.properties().bit_depth(), Some(16));
96-
// assert_eq!(f.properties().encrypted, false);
95+
assert!(!f.properties().is_drm_protected());
9796
assert_eq!(f.properties().codec(), &Mp4Codec::AAC);
9897
}
9998

0 commit comments

Comments
 (0)