about summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-01-16 22:50:40 +0000
committerJames Booth <boothj5@gmail.com>2015-01-16 22:50:40 +0000
commit4c6cfcdca0f7aec1f0e3243a60d88ed494357a5d (patch)
tree262aea8ef8992ae962aab0946d7f948a068d7808 /tests
parent7a5deca77c4f1b792dde0a1a361b02fa86807a68 (diff)
downloadprofani-tty-4c6cfcdca0f7aec1f0e3243a60d88ed494357a5d.tar.gz
Simplified autocompleters and command history
Diffstat (limited to 'tests')
-rw-r--r--tests/ui/stub_ui.c3
-rw-r--r--tests/xmpp/stub_xmpp.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/tests/ui/stub_ui.c b/tests/ui/stub_ui.c
index 2c7cebf6..51b82d42 100644
--- a/tests/ui/stub_ui.c
+++ b/tests/ui/stub_ui.c
@@ -328,9 +328,10 @@ char * ui_readline(void)
     return NULL;
 }
 
+void ui_inp_history_append(char *inp) {}
+
 void ui_input_clear(void) {}
 void ui_input_nonblocking(gboolean reset) {}
-void ui_replace_input(char *input, const char * const new_input, int *size) {}
 
 void ui_invalid_command_usage(const char * const usage, void (*setting_func)(void)) {}
 
diff --git a/tests/xmpp/stub_xmpp.c b/tests/xmpp/stub_xmpp.c
index cc5ad5fc..281857f0 100644
--- a/tests/xmpp/stub_xmpp.c
+++ b/tests/xmpp/stub_xmpp.c
@@ -91,7 +91,7 @@ gint presence_sub_request_count(void)
 
 void presence_reset_sub_request_search(void) {}
 
-char * presence_sub_request_find(char * search_str)
+char * presence_sub_request_find(const char * const search_str)
 {
     return  NULL;
 }
@@ -189,7 +189,7 @@ const GList * bookmark_get_list(void)
     return (GList *)mock();
 }
 
-char * bookmark_find(char *search_str)
+char * bookmark_find(const char * const search_str)
 {
     return NULL;
 }