diff options
author | Frank Zschockelt <profanity@freakysoft.de> | 2019-05-08 21:52:16 +0200 |
---|---|---|
committer | Frank Zschockelt <profanity@freakysoft.de> | 2019-05-08 21:52:16 +0200 |
commit | 4683395aca05c396c5f8fa8ca56db3b761e16331 (patch) | |
tree | 7f9ea0051bffa86ea684de13083832c822d49726 /tests/unittests/xmpp | |
parent | a5db791dc484bfde7df067911d8ee9f95968b88d (diff) | |
download | profani-tty-4683395aca05c396c5f8fa8ca56db3b761e16331.tar.gz |
Use mock_type() for casting mock()
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) |