about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2021-10-13 21:19:54 +0200
committerMichael Vetter <jubalh@iodoru.org>2021-10-13 21:19:54 +0200
commitaedef61c914a9837a2bc4819be2a8f0f4f8d96bc (patch)
tree5e9e5550362c2def09f5a20bbc82b079ea3c4304
parente0e45b7b24aad0932c2778ba5f93a87778cb9c24 (diff)
downloadprofani-tty-aedef61c914a9837a2bc4819be2a8f0f4f8d96bc.tar.gz
registration: add test stub
-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)