about summary refs log tree commit diff stats
path: root/tests/ui/mock_ui.h
blob: 6f6d34d7919e1ad50a65007b65c7cab5c87f2132 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#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);

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);

void mock_cons_show_account(void);
void expect_cons_show_account(ProfAccount *account);

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);

#endif