GUAC-608: Migrate test to non-clipboard instruction.

This commit is contained in:
Michael Jumper 2014-04-08 16:35:35 -07:00
parent c95e2fd056
commit d5fa14c0c7
2 changed files with 5 additions and 5 deletions

View File

@ -64,7 +64,7 @@ void test_instruction_write() {
socket = guac_socket_open(wfd);
/* Write instruction */
guac_protocol_send_clipboard(socket, "a" UTF8_4 "b" UTF8_4 "c");
guac_protocol_send_name(socket, "a" UTF8_4 "b" UTF8_4 "c");
guac_protocol_send_sync(socket, 12345);
guac_socket_flush(socket);
@ -76,7 +76,7 @@ void test_instruction_write() {
else {
char expected[] =
"9.clipboard,11.a" UTF8_4 "b" UTF8_4 "c;"
"4.name,11.a" UTF8_4 "b" UTF8_4 "c;"
"4.sync,5.12345;";
int numread;

View File

@ -68,7 +68,7 @@ void test_nest_write() {
nested_socket = guac_socket_nest(socket, 0);
/* Write instruction */
guac_protocol_send_clipboard(nested_socket, "a" UTF8_4 "b" UTF8_4 "c");
guac_protocol_send_name(nested_socket, "a" UTF8_4 "b" UTF8_4 "c");
guac_protocol_send_sync(nested_socket, 12345);
guac_socket_flush(nested_socket);
guac_socket_flush(socket);
@ -82,8 +82,8 @@ void test_nest_write() {
else {
char expected[] =
"4.nest,1.0,42."
"9.clipboard,11.a" UTF8_4 "b" UTF8_4 "c;"
"4.nest,1.0,37."
"4.name,11.a" UTF8_4 "b" UTF8_4 "c;"
"4.sync,5.12345;"
";";