test(lesavka): follow relocated server opus evidence
This commit is contained in:
parent
0c90611814
commit
eec6c67679
@ -18,6 +18,10 @@ const OPUS_DECODE: &str = include_str!(concat!(
|
||||
env!("CARGO_MANIFEST_DIR"),
|
||||
"/server/src/audio/opus_decode.rs"
|
||||
));
|
||||
const OPUS_DECODE_TESTS: &str = include_str!(concat!(
|
||||
env!("CARGO_MANIFEST_DIR"),
|
||||
"/server/src/audio/opus_decode/tests/mod.rs"
|
||||
));
|
||||
|
||||
#[test]
|
||||
fn uac_sink_remains_raw_pcm_and_guards_compressed_packets() {
|
||||
@ -45,14 +49,18 @@ fn uac_sink_remains_raw_pcm_and_guards_compressed_packets() {
|
||||
"pending_packets: VecDeque<AudioPacket>",
|
||||
"take_pending_packet(sample_pts_us)",
|
||||
"push_pending_packet(&mut self.pending_packets",
|
||||
"audio-type=restricted-lowdelay",
|
||||
"sine_pcm_packet",
|
||||
] {
|
||||
assert!(
|
||||
OPUS_DECODE.contains(expected),
|
||||
"Opus decoder should preserve decode-to-PCM marker {expected}"
|
||||
);
|
||||
}
|
||||
for expected in ["audio-type=restricted-lowdelay", "sine_pcm_packet"] {
|
||||
assert!(
|
||||
OPUS_DECODE_TESTS.contains(expected),
|
||||
"Opus decoder tests should preserve live encode/decode evidence {expected}"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user