mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -05:00
Fixed test compilation
This commit is contained in:
parent
e7013408e5
commit
39e0782da8
@ -119,7 +119,7 @@ _accounts_reset_enabled_search(void)
|
||||
}
|
||||
|
||||
static void
|
||||
_accounts_add(const char *account_name, const char *altdomain, int port)
|
||||
_accounts_add(const char *account_name, const char *altdomain, const int port)
|
||||
{
|
||||
// set account name and resource
|
||||
const char *barejid = account_name;
|
||||
|
@ -56,7 +56,7 @@ char * (*accounts_find_all)(char *prefix);
|
||||
char * (*accounts_find_enabled)(char *prefix);
|
||||
void (*accounts_reset_all_search)(void);
|
||||
void (*accounts_reset_enabled_search)(void);
|
||||
void (*accounts_add)(const char *jid, const char *altdomain, int port);
|
||||
void (*accounts_add)(const char *jid, const char *altdomain, const int port);
|
||||
gchar** (*accounts_get_list)(void);
|
||||
ProfAccount* (*accounts_get_account)(const char * const name);
|
||||
void (*accounts_free_account)(ProfAccount *account);
|
||||
|
@ -132,7 +132,7 @@ _jabber_connect_with_account(const ProfAccount * const account)
|
||||
|
||||
static jabber_conn_status_t
|
||||
_jabber_connect_with_details(const char * const jid,
|
||||
const char * const passwd, const char * const altdomain, int port)
|
||||
const char * const passwd, const char * const altdomain, const int port)
|
||||
{
|
||||
assert(jid != NULL);
|
||||
assert(passwd != NULL);
|
||||
|
@ -85,7 +85,7 @@ void roster_init_module(void);
|
||||
// connection functions
|
||||
void (*jabber_init)(const int disable_tls);
|
||||
jabber_conn_status_t (*jabber_connect_with_details)(const char * const jid,
|
||||
const char * const passwd, const char * const altdomain, int port);
|
||||
const char * const passwd, const char * const altdomain, const int port);
|
||||
jabber_conn_status_t (*jabber_connect_with_account)(const ProfAccount * const account);
|
||||
void (*jabber_disconnect)(void);
|
||||
void (*jabber_shutdown)(void);
|
||||
|
@ -62,14 +62,14 @@ _mock_accounts_get_list(void)
|
||||
}
|
||||
|
||||
void
|
||||
_mock_accounts_add(const char *account_name, const char *altdomain)
|
||||
_mock_accounts_add(const char *account_name, const char *altdomain, const int port)
|
||||
{
|
||||
check_expected(account_name);
|
||||
check_expected(altdomain);
|
||||
}
|
||||
|
||||
void
|
||||
_stub_accounts_add(const char *account_name, const char *altdomain)
|
||||
_stub_accounts_add(const char *account_name, const char *altdomain, const int port)
|
||||
{
|
||||
// do nothing
|
||||
}
|
||||
|
@ -28,11 +28,12 @@ _mock_iq_room_list_request(gchar *conf_server)
|
||||
|
||||
static jabber_conn_status_t
|
||||
_mock_jabber_connect_with_details(const char * const jid,
|
||||
const char * const passwd, const char * const altdomain)
|
||||
const char * const passwd, const char * const altdomain, const int port)
|
||||
{
|
||||
check_expected(jid);
|
||||
check_expected(passwd);
|
||||
check_expected(altdomain);
|
||||
check_expected(port);
|
||||
return (jabber_conn_status_t)mock();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user