diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-13 14:51:47 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-13 14:51:47 +0300 |
| commit | 4da250ad17e6a60e00ca880ca5500515e3737f5b (patch) | |
| tree | bd6be386f0b3a2bb2f585285d4ebdf44cb99c029 /tests/multi_client.rs | |
| parent | f7b6467afead67cf3bfcb4d3cd8e411738e7eac8 (diff) | |
test: update protocol fixtures
Diffstat (limited to 'tests/multi_client.rs')
| -rw-r--r-- | tests/multi_client.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/multi_client.rs b/tests/multi_client.rs index b74e527c..704b511e 100644 --- a/tests/multi_client.rs +++ b/tests/multi_client.rs @@ -496,7 +496,9 @@ fn client_handshake( &encode_varint_u32(version), &encode_varint_u16(cols), &encode_varint_u16(rows), - &encode_varint_u32(0), // RenderEncoding::SemanticFrame + &encode_varint_u32(8), // cell_width_px + &encode_varint_u32(16), // cell_height_px + &encode_varint_u32(0), // RenderEncoding::SemanticFrame ], ); stream @@ -547,7 +549,7 @@ fn client_handshake( fn connect_raw_client(client_socket: &Path, cols: u16, rows: u16) -> UnixStream { let mut stream = UnixStream::connect(client_socket).expect("should connect to client socket"); - client_handshake(&mut stream, 4, cols, rows).expect("handshake should succeed"); + client_handshake(&mut stream, 5, cols, rows).expect("handshake should succeed"); stream } @@ -578,6 +580,7 @@ struct FrameWire { height: u16, cursor: Option<CursorWire>, hyperlinks: Vec<String>, + graphics: Vec<u8>, } #[allow(dead_code)] @@ -709,7 +712,7 @@ fn frame_contains_text(frame: &FrameWire, needle: &str) -> bool { full_text.push('\n'); } - let _ = frame.height; + let _ = (frame.height, frame.graphics.len()); if let Some(cursor) = frame.cursor.as_ref() { let _ = (cursor.x, cursor.y, cursor.visible); } |
