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

35 lines
1.2 KiB
C
Raw Normal View History

2014-02-16 14:14:15 -05:00
#ifndef MOCK_XMPP_H
#define MOCK_XMPP_H
#include "xmpp/xmpp.h"
void mock_connection_status(jabber_conn_status_t status);
void mock_connection_account_name(char *name);
void mock_connection_presence_message(char *message);
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_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);
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,
gboolean expected_autojoin, gboolean added);
2014-02-01 18:48:24 -05:00
2014-02-01 19:37:37 -05:00
void mock_bookmark_remove(void);
void expect_and_return_bookmark_remove(char *expected_jid, gboolean expected_autojoin,
gboolean removed);
2014-02-01 19:37:37 -05:00
#endif