refactor(web): follow-up to #722 (#747)

This commit is contained in:
Alex Yusiuk 2025-04-14 17:05:19 +03:00 committed by GitHub
parent cc3dbf124f
commit fe676eeac5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 72 additions and 73 deletions

View file

@ -1,9 +1,7 @@
use core::{cmp, fmt};
use ironrdp_pdu::{
fast_path::{EncryptionFlags, FastPathHeader, FastPathUpdatePdu, Fragmentation, UpdateCode},
Encode, WriteCursor,
};
use ironrdp_pdu::fast_path::{EncryptionFlags, FastPathHeader, FastPathUpdatePdu, Fragmentation, UpdateCode};
use ironrdp_pdu::{Encode, WriteCursor};
// this is the maximum amount of data (not including headers) we can send in a single TS_FP_UPDATE_PDU
const MAX_FASTPATH_UPDATE_SIZE: usize = 16_374;
@ -100,9 +98,10 @@ impl UpdateFragmenter {
#[cfg(test)]
mod tests {
use super::*;
use ironrdp_core::{decode_cursor, ReadCursor};
use super::*;
#[test]
fn test_single_fragment() {
let data = vec![1, 2, 3, 4];