Added current window reference to command functions
This commit is contained in:
@@ -24,7 +24,7 @@ static void test_with_connection_status(jabber_conn_status_t status)
|
||||
|
||||
expect_cons_show("You are not currently connected.");
|
||||
|
||||
gboolean result = cmd_join(NULL, *help);
|
||||
gboolean result = cmd_join(NULL, NULL, *help);
|
||||
assert_true(result);
|
||||
|
||||
free(help);
|
||||
@@ -60,7 +60,7 @@ void cmd_join_shows_error_message_when_invalid_room_jid(void **state)
|
||||
expect_cons_show_error("Specified room has incorrect format.");
|
||||
expect_cons_show("");
|
||||
|
||||
gboolean result = cmd_join(args, *help);
|
||||
gboolean result = cmd_join(NULL, args, *help);
|
||||
assert_true(result);
|
||||
|
||||
free(help);
|
||||
@@ -90,7 +90,7 @@ void cmd_join_uses_account_mucservice_when_no_service_specified(void **state)
|
||||
expect_string(presence_join_room, nick, nick);
|
||||
expect_value(presence_join_room, passwd, NULL);
|
||||
|
||||
gboolean result = cmd_join(args, *help);
|
||||
gboolean result = cmd_join(NULL, args, *help);
|
||||
assert_true(result);
|
||||
|
||||
free(help);
|
||||
@@ -118,7 +118,7 @@ void cmd_join_uses_supplied_nick(void **state)
|
||||
expect_string(presence_join_room, nick, nick);
|
||||
expect_value(presence_join_room, passwd, NULL);
|
||||
|
||||
gboolean result = cmd_join(args, *help);
|
||||
gboolean result = cmd_join(NULL, args, *help);
|
||||
assert_true(result);
|
||||
|
||||
free(help);
|
||||
@@ -146,7 +146,7 @@ void cmd_join_uses_account_nick_when_not_supplied(void **state)
|
||||
expect_string(presence_join_room, nick, account_nick);
|
||||
expect_value(presence_join_room, passwd, NULL);
|
||||
|
||||
gboolean result = cmd_join(args, *help);
|
||||
gboolean result = cmd_join(NULL, args, *help);
|
||||
assert_true(result);
|
||||
|
||||
free(help);
|
||||
@@ -177,7 +177,7 @@ void cmd_join_uses_password_when_supplied(void **state)
|
||||
expect_string(presence_join_room, nick, account_nick);
|
||||
expect_value(presence_join_room, passwd, password);
|
||||
|
||||
gboolean result = cmd_join(args, *help);
|
||||
gboolean result = cmd_join(NULL, args, *help);
|
||||
assert_true(result);
|
||||
|
||||
free(help);
|
||||
|
||||
Reference in New Issue
Block a user