mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 05:46:20 +00:00
Fix clears_chat_sessions unittest
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user