Skip to content

Commit 2bce2ce

Browse files
SingingTreekinetiknz
authored andcommitted
Update existing tests to verify new tenc members.
The new members being parsed on the tenc box should not exist in the current test files. Update the existing tests to reflect this.
1 parent d6dca09 commit 2bce2ce

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mp4parse/tests/public.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ fn public_audio_tenc() {
156156
assert!(tenc.is_encrypted > 0);
157157
assert_eq!(tenc.iv_size, 16);
158158
assert_eq!(tenc.kid, kid);
159+
assert_eq!(tenc.crypt_byte_block_count, None);
160+
assert_eq!(tenc.skip_byte_block_count, None);
161+
assert_eq!(tenc.constant_iv, None);
159162
} else {
160163
assert!(false, "Invalid test condition");
161164
}
@@ -207,6 +210,9 @@ fn public_video_cenc() {
207210
assert!(tenc.is_encrypted > 0);
208211
assert_eq!(tenc.iv_size, 16);
209212
assert_eq!(tenc.kid, kid);
213+
assert_eq!(tenc.crypt_byte_block_count, None);
214+
assert_eq!(tenc.skip_byte_block_count, None);
215+
assert_eq!(tenc.constant_iv, None);
210216
} else {
211217
assert!(false, "Invalid test condition");
212218
}

0 commit comments

Comments
 (0)