1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00
profanity/tests/ui/mock_ui.h

41 lines
1.1 KiB
C
Raw Normal View History

2013-12-19 16:05:39 -05:00
#ifndef MOCK_UI_H
#define MICK_UI_H
#include <glib.h>
#include <setjmp.h>
#include <cmocka.h>
void stub_cons_show(void);
void mock_cons_show(void);
void expect_cons_show(char *output);
void expect_cons_show_calls(int n);
2014-01-20 13:40:48 -05:00
void mock_cons_show_contact_online(void);
void expect_cons_show_contact_online(PContact contact, Resource *resource, GDateTime *last_activity);
void stub_ui_chat_win_contact_online(void);
void mock_cons_show_error(void);
void expect_cons_show_error(char *output);
2014-01-28 18:56:45 -05:00
void stub_ui_handle_recipient_not_found(void);
void stub_ui_handle_recipient_error(void);
void expect_ui_handle_error(char *err_msg);
2014-01-28 18:56:45 -05:00
void expect_ui_handle_recipient_error(char *recipient, char *err_msg);
void expect_ui_handle_recipient_not_found(char *recipient, char *err_msg);
void mock_cons_show_account(void);
void expect_cons_show_account(ProfAccount *account);
void mock_cons_show_aliases(void);
void expect_cons_show_aliases(void);
void mock_cons_show_account_list(void);
void expect_cons_show_account_list(gchar **accounts);
void stub_ui_ask_password(void);
void mock_ui_ask_password(void);
void mock_ui_ask_password_returns(char *password);
2013-12-19 16:05:39 -05:00
#endif