1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

registration: add test stub

This commit is contained in:
Michael Vetter 2021-10-13 21:19:54 +02:00
parent e0e45b7b24
commit aedef61c91

View File

@ -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)