about summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-03-11 23:47:11 +0000
committerJames Booth <boothj5@gmail.com>2015-03-11 23:47:11 +0000
commit57c7564445bb9b3034be895a709d8ec777188a74 (patch)
treebc1d30407978e03e48978ccd512e0608e0b12f1d /tests
parent78becceedb19b1a793fcd3465363501f5468a83d (diff)
downloadprofani-tty-57c7564445bb9b3034be895a709d8ec777188a74.tar.gz
Show message received text for receipts
Diffstat (limited to 'tests')
-rw-r--r--tests/ui/stub_ui.c2
-rw-r--r--tests/xmpp/stub_xmpp.c6
2 files changed, 5 insertions, 3 deletions
diff --git a/tests/ui/stub_ui.c b/tests/ui/stub_ui.c
index 55c67335..4ae08ee7 100644
--- a/tests/ui/stub_ui.c
+++ b/tests/ui/stub_ui.c
@@ -202,7 +202,7 @@ void ui_disconnected(void) {}
 void ui_recipient_gone(const char * const barejid, const char * const resource) {}
 
 void ui_outgoing_chat_msg(const char * const from, const char * const barejid,
-    const char * const message) {}
+    const char * const message, char *id) {}
 void ui_outgoing_private_msg(const char * const from, const char * const fulljid,
     const char * const message) {}
 
diff --git a/tests/xmpp/stub_xmpp.c b/tests/xmpp/stub_xmpp.c
index 9ca0c2d4..53a01c95 100644
--- a/tests/xmpp/stub_xmpp.c
+++ b/tests/xmpp/stub_xmpp.c
@@ -58,16 +58,18 @@ GList * jabber_get_available_resources(void)
 }
 
 // message functions
-void message_send_chat(const char * const barejid, const char * const msg)
+char* message_send_chat(const char * const barejid, const char * const msg)
 {
     check_expected(barejid);
     check_expected(msg);
+    return NULL;
 }
 
-void message_send_chat_encrypted(const char * const barejid, const char * const msg)
+char* message_send_chat_encrypted(const char * const barejid, const char * const msg)
 {
     check_expected(barejid);
     check_expected(msg);
+    return NULL;
 }
 
 void message_send_private(const char * const fulljid, const char * const msg) {}