diff options
Diffstat (limited to 'tests/unittests/xmpp')
-rw-r--r-- | tests/unittests/xmpp/stub_xmpp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/unittests/xmpp/stub_xmpp.c b/tests/unittests/xmpp/stub_xmpp.c index eb4945ea..df862b9b 100644 --- a/tests/unittests/xmpp/stub_xmpp.c +++ b/tests/unittests/xmpp/stub_xmpp.c @@ -17,13 +17,13 @@ jabber_conn_status_t session_connect_with_details(const char * const jid, check_expected(passwd); check_expected(altdomain); check_expected(port); - return (jabber_conn_status_t)mock(); + return mock_type(jabber_conn_status_t); } jabber_conn_status_t session_connect_with_account(const ProfAccount * const account) { check_expected(account); - return (jabber_conn_status_t)mock(); + return mock_type(jabber_conn_status_t); } void session_disconnect(void) {} @@ -60,7 +60,7 @@ void connection_free_uuid(char * uuid) {} jabber_conn_status_t connection_get_status(void) { - return (jabber_conn_status_t)mock(); + return mock_type(jabber_conn_status_t); } char* connection_get_presence_msg(void) @@ -233,7 +233,7 @@ gboolean bookmark_add(const char *jid, const char *nick, const char *password, c check_expected(nick); check_expected(password); check_expected(autojoin_str); - return (gboolean)mock(); + return mock_type(gboolean); } gboolean bookmark_update(const char *jid, const char *nick, const char *password, const char *autojoin_str) @@ -244,7 +244,7 @@ gboolean bookmark_update(const char *jid, const char *nick, const char *password gboolean bookmark_remove(const char *jid) { check_expected(jid); - return (gboolean)mock(); + return mock_type(gboolean); } gboolean bookmark_join(const char *jid) |