mirror of
https://github.com/profanity-im/profanity.git
synced 2024-09-01 19:24:15 -04:00
Fix clears_chat_sessions unittest
This commit is contained in:
parent
d4692b1b2d
commit
ceb5dcc0e5
@ -22,7 +22,7 @@ void clears_chat_sessions(void **state)
|
|||||||
chat_session_recipient_active("mike@server.org", "work", FALSE);
|
chat_session_recipient_active("mike@server.org", "work", FALSE);
|
||||||
|
|
||||||
will_return(connection_get_status, JABBER_CONNECTED);
|
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();
|
expect_any_cons_show();
|
||||||
|
|
||||||
gboolean result = cmd_disconnect(NULL, CMD_DISCONNECT, NULL);
|
gboolean result = cmd_disconnect(NULL, CMD_DISCONNECT, NULL);
|
||||||
|
@ -34,6 +34,11 @@ const char * connection_get_fulljid(void)
|
|||||||
return mock_ptr_type(char *);
|
return mock_ptr_type(char *);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
char* connection_get_barejid(void)
|
||||||
|
{
|
||||||
|
return mock_ptr_type(char *);
|
||||||
|
}
|
||||||
|
|
||||||
const char * connection_get_domain(void)
|
const char * connection_get_domain(void)
|
||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user