From aedef61c914a9837a2bc4819be2a8f0f4f8d96bc Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Wed, 13 Oct 2021 21:19:54 +0200 Subject: registration: add test stub --- tests/unittests/xmpp/stub_xmpp.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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) -- cgit 1.4.1-2-gfad0