diff options
author | James Booth <boothj5@gmail.com> | 2016-05-06 01:12:54 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-05-06 01:12:54 +0100 |
commit | d1c71e98f4f6b5271e97bc2a5274c92491bfdbd3 (patch) | |
tree | b1427ee5d49a1a1246a124fa2de9a9fd5aef841f /tests/unittests | |
parent | cc485ed338c854489f08e95dafdb8503093e5150 (diff) | |
download | profani-tty-d1c71e98f4f6b5271e97bc2a5274c92491bfdbd3.tar.gz |
Move connection fulljid function
Diffstat (limited to 'tests/unittests')
-rw-r--r-- | tests/unittests/test_cmd_disconnect.c | 2 | ||||
-rw-r--r-- | tests/unittests/xmpp/stub_xmpp.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/unittests/test_cmd_disconnect.c b/tests/unittests/test_cmd_disconnect.c index d9690d9e..ba73adf5 100644 --- a/tests/unittests/test_cmd_disconnect.c +++ b/tests/unittests/test_cmd_disconnect.c @@ -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(session_get_fulljid, "myjid@myserver.com"); + will_return(connection_get_fulljid, "myjid@myserver.com"); expect_any_cons_show(); gboolean result = cmd_disconnect(NULL, CMD_DISCONNECT, NULL); diff --git a/tests/unittests/xmpp/stub_xmpp.c b/tests/unittests/xmpp/stub_xmpp.c index 87fbeb70..8e33ff79 100644 --- a/tests/unittests/xmpp/stub_xmpp.c +++ b/tests/unittests/xmpp/stub_xmpp.c @@ -27,7 +27,7 @@ jabber_conn_status_t session_connect_with_account(const ProfAccount * const acco void session_disconnect(void) {} void session_shutdown(void) {} void session_process_events(int millis) {} -const char * session_get_fulljid(void) +const char * connection_get_fulljid(void) { return (char *)mock(); } |