2013-12-18 17:49:43 -05:00
|
|
|
#ifndef COMMON_MOCKS_H
|
|
|
|
#define COMMON_MOCKS_H
|
|
|
|
|
|
|
|
#include "xmpp/xmpp.h"
|
|
|
|
|
|
|
|
void mock_connection_status(jabber_conn_status_t status);
|
|
|
|
void mock_connection_account_name(char *name);
|
2013-12-27 09:17:24 -05:00
|
|
|
void mock_connection_presence_message(char *message);
|
2013-12-18 17:49:43 -05:00
|
|
|
void expect_room_list_request(char *conf_server);
|
|
|
|
|
2013-12-26 09:48:25 -05:00
|
|
|
void mock_jabber_connect_with_details(void);
|
|
|
|
void jabber_connect_with_username_password_expect_and_return(char *jid,
|
|
|
|
char *password, jabber_conn_status_t result);
|
|
|
|
void jabber_connect_with_altdomain_expect_and_return(char *altdomain,
|
|
|
|
jabber_conn_status_t result);
|
|
|
|
void jabber_connect_with_details_return(jabber_conn_status_t result);
|
|
|
|
|
|
|
|
void mock_jabber_connect_with_account(void);
|
|
|
|
void jabber_connect_with_account_expect_and_return(ProfAccount *account,
|
|
|
|
jabber_conn_status_t result);
|
|
|
|
void jabber_connect_with_account_return(jabber_conn_status_t result);
|
|
|
|
|
2013-12-27 09:17:24 -05:00
|
|
|
void mock_presence_update(void);
|
|
|
|
void presence_update_expect(resource_presence_t presence, char *msg, int idle);
|
|
|
|
|
2013-12-18 17:49:43 -05:00
|
|
|
#endif
|