mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-25 23:06:21 +00:00
Added test for /bookmark list
This commit is contained in:
@@ -58,6 +58,12 @@ _mock_presence_update(resource_presence_t status, const char * const msg, int id
|
||||
check_expected(idle);
|
||||
}
|
||||
|
||||
static const GList *
|
||||
_mock_bookmark_get_list(void)
|
||||
{
|
||||
return (GList *)mock();
|
||||
}
|
||||
|
||||
void
|
||||
mock_jabber_connect_with_details(void)
|
||||
{
|
||||
@@ -83,6 +89,13 @@ mock_connection_status(jabber_conn_status_t status)
|
||||
will_return(_mock_jabber_get_connection_status, status);
|
||||
}
|
||||
|
||||
void
|
||||
bookmark_get_list_returns(GList *bookmarks)
|
||||
{
|
||||
bookmark_get_list = _mock_bookmark_get_list;
|
||||
will_return(_mock_bookmark_get_list, bookmarks);
|
||||
}
|
||||
|
||||
void
|
||||
mock_connection_account_name(char *name)
|
||||
{
|
||||
|
||||
@@ -21,4 +21,6 @@ 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);
|
||||
|
||||
void bookmark_get_list_returns(GList *bookmarks);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user