@@ -16,8 +16,7 @@ fn test_properties_aac() {
16
16
assert_eq ! ( f. properties( ) . channels( ) , 2 ) ;
17
17
assert_eq ! ( f. properties( ) . sample_rate( ) , 44100 ) ;
18
18
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( ) ) ;
21
20
assert_eq ! ( f. properties( ) . codec( ) , & Mp4Codec :: AAC ) ;
22
21
}
23
22
@@ -42,7 +41,7 @@ fn test_properties_aac_without_bitrate() {
42
41
assert_eq ! ( f. properties( ) . channels( ) , 2 ) ;
43
42
assert_eq ! ( f. properties( ) . sample_rate( ) , 44100 ) ;
44
43
assert_eq ! ( f. properties( ) . bit_depth( ) , Some ( 16 ) ) ;
45
- // assert_eq!( f.properties().encrypted, false );
44
+ assert ! ( ! f. properties( ) . is_drm_protected ( ) ) ;
46
45
assert_eq ! ( f. properties( ) . codec( ) , & Mp4Codec :: AAC ) ;
47
46
}
48
47
@@ -55,7 +54,7 @@ fn test_properties_alac() {
55
54
assert_eq ! ( f. properties( ) . channels( ) , 2 ) ;
56
55
assert_eq ! ( f. properties( ) . sample_rate( ) , 44100 ) ;
57
56
assert_eq ! ( f. properties( ) . bit_depth( ) , Some ( 16 ) ) ;
58
- // assert_eq!( f.properties().encrypted, false );
57
+ assert ! ( ! f. properties( ) . is_drm_protected ( ) ) ;
59
58
assert_eq ! ( f. properties( ) . codec( ) , & Mp4Codec :: ALAC ) ;
60
59
}
61
60
@@ -80,7 +79,7 @@ fn test_properties_alac_without_bitrate() {
80
79
assert_eq ! ( f. properties( ) . channels( ) , 2 ) ;
81
80
assert_eq ! ( f. properties( ) . sample_rate( ) , 44100 ) ;
82
81
assert_eq ! ( f. properties( ) . bit_depth( ) , Some ( 16 ) ) ;
83
- // assert_eq!(f.properties().encrypted , false);
82
+ assert_eq ! ( f. properties( ) . is_drm_protected ( ) , false ) ;
84
83
assert_eq ! ( f. properties( ) . codec( ) , & Mp4Codec :: ALAC ) ;
85
84
}
86
85
@@ -93,7 +92,7 @@ fn test_properties_m4v() {
93
92
assert_eq ! ( f. properties( ) . channels( ) , 2 ) ;
94
93
assert_eq ! ( f. properties( ) . sample_rate( ) , 44100 ) ;
95
94
assert_eq ! ( f. properties( ) . bit_depth( ) , Some ( 16 ) ) ;
96
- // assert_eq!( f.properties().encrypted, false );
95
+ assert ! ( ! f. properties( ) . is_drm_protected ( ) ) ;
97
96
assert_eq ! ( f. properties( ) . codec( ) , & Mp4Codec :: AAC ) ;
98
97
}
99
98
0 commit comments