2014-02-16 14:14:15 -05:00
|
|
|
#ifndef MOCK_XMPP_H
|
|
|
|
#define MOCK_XMPP_H
|
2013-12-18 17:49:43 -05:00
|
|
|
|
|
|
|
#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);
|
2014-01-18 17:02:51 -05:00
|
|
|
void jabber_connect_with_details_expect_and_return(char *jid,
|
|
|
|
char *password, char *altdomain, int port, jabber_conn_status_t result);
|
2013-12-26 09:48:25 -05:00
|
|
|
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);
|
|
|
|
|
2014-02-01 16:18:15 -05:00
|
|
|
void bookmark_get_list_returns(GList *bookmarks);
|
|
|
|
|
2014-02-01 18:48:24 -05:00
|
|
|
void mock_bookmark_add(void);
|
2014-02-01 19:49:02 -05:00
|
|
|
void expect_and_return_bookmark_add(char *expected_jid, char *expected_nick,
|
2014-05-09 19:50:43 -04:00
|
|
|
char *expected_password, char *expected_autojoin_str, gboolean added);
|
2014-02-01 18:48:24 -05:00
|
|
|
|
2014-02-01 19:37:37 -05:00
|
|
|
void mock_bookmark_remove(void);
|
2014-05-09 19:50:43 -04:00
|
|
|
void expect_and_return_bookmark_remove(char *expected_jid, gboolean removed);
|
2014-02-01 19:37:37 -05:00
|
|
|
|
2014-12-19 19:52:35 -05:00
|
|
|
void message_send_chat_expect(char *message, char *recipient);
|
2014-02-23 16:20:41 -05:00
|
|
|
|
2014-03-08 16:10:23 -05:00
|
|
|
void mock_presence_join_room(void);
|
|
|
|
void presence_join_room_expect(char *room, char *nick, char *passwd);
|
|
|
|
|
2014-03-15 21:46:18 -04:00
|
|
|
void mock_roster_send_add_new(void);
|
|
|
|
void roster_send_add_new_expect(char *jid, char *nick);
|
|
|
|
|
2014-03-16 12:00:10 -04:00
|
|
|
void mock_roster_send_remove(void);
|
|
|
|
void roster_send_remove_expect(char *jid);
|
|
|
|
|
2014-03-16 13:53:41 -04:00
|
|
|
void mock_roster_send_name_change(void);
|
|
|
|
void roster_send_name_change_expect(char *jid, char *name, GSList *groups);
|
|
|
|
|
2013-12-18 17:49:43 -05:00
|
|
|
#endif
|