about summary refs log tree commit diff stats
path: root/tests/ui
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-04-09 22:29:38 +0100
committerJames Booth <boothj5@gmail.com>2014-04-09 22:29:38 +0100
commite97ec56fce641554ff7aa2ff9f0583e1fb9fc364 (patch)
tree8db6eff2bc9cc60098077765fa9417976cd164ef /tests/ui
parent714ee2486353361898df7f5bb339e9be3f456830 (diff)
downloadprofani-tty-e97ec56fce641554ff7aa2ff9f0583e1fb9fc364.tar.gz
Added ui_already_connected
Diffstat (limited to 'tests/ui')
-rw-r--r--tests/ui/mock_ui.c11
-rw-r--r--tests/ui/mock_ui.h4
2 files changed, 14 insertions, 1 deletions
diff --git a/tests/ui/mock_ui.c b/tests/ui/mock_ui.c
index 94f8e3c3..0e01be25 100644
--- a/tests/ui/mock_ui.c
+++ b/tests/ui/mock_ui.c
@@ -83,6 +83,11 @@ char * _stub_ui_ask_password(void)
 }
 
 static
+void _stub_ui_already_connected(void)
+{
+}
+
+static
 win_type_t _mock_ui_current_win_type(void)
 {
     return (win_type_t)mock();
@@ -259,6 +264,12 @@ stub_cons_show(void)
 }
 
 void
+stub_ui_already_connected(void)
+{
+    ui_already_connected = _stub_ui_already_connected;
+}
+
+void
 stub_ui_handle_recipient_not_found(void)
 {
     ui_handle_recipient_not_found = _stub_ui_handle_recipient_not_found;
diff --git a/tests/ui/mock_ui.h b/tests/ui/mock_ui.h
index 5b984615..70c9f3b3 100644
--- a/tests/ui/mock_ui.h
+++ b/tests/ui/mock_ui.h
@@ -66,4 +66,6 @@ void cons_show_roster_expect(GSList *list);
 
 void ui_switch_win_expect_and_return(int given_i, gboolean result);
 
-#endif
+void stub_ui_already_connected(void);
+
+#endif
\ No newline at end of file