diff options
author | Michael Vetter <jubalh@iodoru.org> | 2021-10-13 21:19:54 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2021-10-13 21:19:54 +0200 |
commit | aedef61c914a9837a2bc4819be2a8f0f4f8d96bc (patch) | |
tree | 5e9e5550362c2def09f5a20bbc82b079ea3c4304 | |
parent | e0e45b7b24aad0932c2778ba5f93a87778cb9c24 (diff) | |
download | profani-tty-aedef61c914a9837a2bc4819be2a8f0f4f8d96bc.tar.gz |
registration: add test stub
-rw-r--r-- | tests/unittests/xmpp/stub_xmpp.c | 12 |
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) |