@@ -899,28 +899,28 @@ mod test {
899
899
#[ test]
900
900
fn test_read_synchronize_pdu ( ) {
901
901
let mut stream = Cursor :: new ( vec ! [ 22 , 0 , 23 , 0 , 234 , 3 , 234 , 3 , 1 , 0 , 0 , 2 , 22 , 0 , 31 , 0 , 0 , 0 , 1 , 0 , 0 , 0 ] ) ;
902
- let mut global = Client :: new ( 0 , 0 , 800 , 600 , KeyboardLayout :: US ) ;
902
+ let mut global = Client :: new ( 0 , 0 , 800 , 600 , KeyboardLayout :: US , "foo" ) ;
903
903
assert ! ( global. read_synchronize_pdu( & mut stream) . unwrap( ) )
904
904
}
905
905
906
906
#[ test]
907
907
fn test_read_control_cooperate_pdu ( ) {
908
908
let mut stream = Cursor :: new ( vec ! [ 26 , 0 , 23 , 0 , 234 , 3 , 234 , 3 , 1 , 0 , 0 , 2 , 26 , 0 , 20 , 0 , 0 , 0 , 4 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ] ) ;
909
- let mut global = Client :: new ( 0 , 0 , 800 , 600 , KeyboardLayout :: US ) ;
909
+ let mut global = Client :: new ( 0 , 0 , 800 , 600 , KeyboardLayout :: US , "foo" ) ;
910
910
assert ! ( global. read_control_pdu( & mut stream, Action :: CtrlactionCooperate ) . unwrap( ) )
911
911
}
912
912
913
913
#[ test]
914
914
fn test_read_control_granted_pdu ( ) {
915
915
let mut stream = Cursor :: new ( vec ! [ 26 , 0 , 23 , 0 , 234 , 3 , 234 , 3 , 1 , 0 , 0 , 2 , 26 , 0 , 20 , 0 , 0 , 0 , 2 , 0 , 236 , 3 , 234 , 3 , 0 , 0 ] ) ;
916
- let mut global = Client :: new ( 0 , 0 , 800 , 600 , KeyboardLayout :: US ) ;
916
+ let mut global = Client :: new ( 0 , 0 , 800 , 600 , KeyboardLayout :: US , "foo" ) ;
917
917
assert ! ( global. read_control_pdu( & mut stream, Action :: CtrlactionGrantedControl ) . unwrap( ) )
918
918
}
919
919
920
920
#[ test]
921
921
fn test_read_font_map_pdu ( ) {
922
922
let mut stream = Cursor :: new ( vec ! [ 26 , 0 , 23 , 0 , 234 , 3 , 234 , 3 , 1 , 0 , 0 , 2 , 26 , 0 , 40 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 3 , 0 , 4 , 0 ] ) ;
923
- let mut global = Client :: new ( 0 , 0 , 800 , 600 , KeyboardLayout :: US ) ;
923
+ let mut global = Client :: new ( 0 , 0 , 800 , 600 , KeyboardLayout :: US , "foo" ) ;
924
924
assert ! ( global. read_font_map_pdu( & mut stream) . unwrap( ) )
925
925
}
926
926
}
0 commit comments