Added /roster add test
This commit is contained in:
@@ -96,6 +96,13 @@ _mock_presence_join_room(char *room, char*nick, char *passwd)
|
||||
check_expected(passwd);
|
||||
}
|
||||
|
||||
static void
|
||||
_mock_roster_send_add_new(const char *const barejid, const char * const name)
|
||||
{
|
||||
check_expected(barejid);
|
||||
check_expected(name);
|
||||
}
|
||||
|
||||
void
|
||||
mock_jabber_connect_with_details(void)
|
||||
{
|
||||
@@ -139,6 +146,12 @@ mock_presence_join_room(void)
|
||||
presence_join_room = _mock_presence_join_room;
|
||||
}
|
||||
|
||||
void
|
||||
mock_roster_send_add_new(void)
|
||||
{
|
||||
roster_send_add_new = _mock_roster_send_add_new;
|
||||
}
|
||||
|
||||
void
|
||||
bookmark_get_list_returns(GList *bookmarks)
|
||||
{
|
||||
@@ -260,3 +273,10 @@ presence_join_room_expect(char *room, char *nick, char *passwd)
|
||||
expect_string(_mock_presence_join_room, passwd, passwd);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
roster_send_add_new_expect(char *jid, char *nick)
|
||||
{
|
||||
expect_string(_mock_roster_send_add_new, barejid, jid);
|
||||
expect_string(_mock_roster_send_add_new, name, nick);
|
||||
}
|
||||
|
||||
@@ -36,4 +36,7 @@ void message_send_expect(char *message, char *recipient);
|
||||
void mock_presence_join_room(void);
|
||||
void presence_join_room_expect(char *room, char *nick, char *passwd);
|
||||
|
||||
void mock_roster_send_add_new(void);
|
||||
void roster_send_add_new_expect(char *jid, char *nick);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user