1
0
Fork 0

Fix clears_chat_sessions unittest

This commit is contained in:
Michael Vetter 2020-05-28 16:09:32 +02:00
parent d4692b1b2d
commit ceb5dcc0e5
2 changed files with 6 additions and 1 deletions

View File

@ -22,7 +22,7 @@ void clears_chat_sessions(void **state)
chat_session_recipient_active("mike@server.org", "work", FALSE);
will_return(connection_get_status, JABBER_CONNECTED);
will_return(connection_get_fulljid, "myjid@myserver.com");
will_return(connection_get_barejid, strdup("myjid@myserver.com"));
expect_any_cons_show();
gboolean result = cmd_disconnect(NULL, CMD_DISCONNECT, NULL);

View File

@ -34,6 +34,11 @@ const char * connection_get_fulljid(void)
return mock_ptr_type(char *);
}
char* connection_get_barejid(void)
{
return mock_ptr_type(char *);
}
const char * connection_get_domain(void)
{
return NULL;