mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-25 07:56:21 +00:00
Check expected arg to account_get_account in cmd_rooms test
This commit is contained in:
@@ -50,6 +50,7 @@ gchar** accounts_get_list(void)
|
|||||||
|
|
||||||
ProfAccount* accounts_get_account(const char * const name)
|
ProfAccount* accounts_get_account(const char * const name)
|
||||||
{
|
{
|
||||||
|
check_expected(name);
|
||||||
return (ProfAccount *)mock();
|
return (ProfAccount *)mock();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ void cmd_rooms_uses_account_default_when_no_arg(void **state)
|
|||||||
|
|
||||||
will_return(jabber_get_connection_status, JABBER_CONNECTED);
|
will_return(jabber_get_connection_status, JABBER_CONNECTED);
|
||||||
will_return(jabber_get_account_name, "account_name");
|
will_return(jabber_get_account_name, "account_name");
|
||||||
|
expect_string(accounts_get_account, name, "account_name");
|
||||||
will_return(accounts_get_account, account);
|
will_return(accounts_get_account, account);
|
||||||
expect_string(iq_room_list_request, conferencejid, "default_conf_server");
|
expect_string(iq_room_list_request, conferencejid, "default_conf_server");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user