about summary refs log tree commit diff stats
path: root/tests/unittests/xmpp
diff options
context:
space:
mode:
authorFrank Zschockelt <profanity@freakysoft.de>2019-05-08 21:52:16 +0200
committerFrank Zschockelt <profanity@freakysoft.de>2019-05-08 21:52:16 +0200
commit4683395aca05c396c5f8fa8ca56db3b761e16331 (patch)
tree7f9ea0051bffa86ea684de13083832c822d49726 /tests/unittests/xmpp
parenta5db791dc484bfde7df067911d8ee9f95968b88d (diff)
downloadprofani-tty-4683395aca05c396c5f8fa8ca56db3b761e16331.tar.gz
Use mock_type() for casting mock()
Diffstat (limited to 'tests/unittests/xmpp')
-rw-r--r--tests/unittests/xmpp/stub_xmpp.c10
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)