about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--tests/unittests/xmpp/stub_xmpp.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/unittests/xmpp/stub_xmpp.c b/tests/unittests/xmpp/stub_xmpp.c
index 4ecb8f79..393fe262 100644
--- a/tests/unittests/xmpp/stub_xmpp.c
+++ b/tests/unittests/xmpp/stub_xmpp.c
@@ -144,6 +144,18 @@ connection_get_profanity_identifier(void)
     return "profident";
 }
 
+jabber_conn_status_t
+connection_register(const char* const altdomain, int port, const char* const tls_policy,
+                   const char* const username, const char* const password)
+{
+    check_expected(altdomain);
+    check_expected(port);
+    check_expected(tls_policy);
+    check_expected(username);
+    check_expected(password);
+    return mock_type(jabber_conn_status_t);
+}
+
 // message functions
 char*
 message_send_chat(const char* const barejid, const char* const msg, const char* const oob_url, gboolean request_receipt, const char* const replace_id)