about summary refs log tree commit diff stats
path: root/tests/unittests/xmpp
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2019-10-18 14:53:06 +0200
committerMichael Vetter <jubalh@iodoru.org>2019-10-18 14:53:06 +0200
commit72bdae1014b0835adfa9f0d40ab8a469031ed135 (patch)
treeb15329cab7e0421c5f39a6e47cc77a2272467a6b /tests/unittests/xmpp
parent06f300a42c4c627b6f1817bd48d92f083ffd9883 (diff)
downloadprofani-tty-72bdae1014b0835adfa9f0d40ab8a469031ed135.tar.gz
Add message_is_sent_by_us stub
Diffstat (limited to 'tests/unittests/xmpp')
-rw-r--r--tests/unittests/xmpp/stub_xmpp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/unittests/xmpp/stub_xmpp.c b/tests/unittests/xmpp/stub_xmpp.c
index 5c74a338..94129b30 100644
--- a/tests/unittests/xmpp/stub_xmpp.c
+++ b/tests/unittests/xmpp/stub_xmpp.c
@@ -3,6 +3,7 @@
 #include <setjmp.h>
 #include <cmocka.h>
 
+#include "xmpp/message.h"
 #include "xmpp/xmpp.h"
 
 // connection functions
@@ -132,6 +133,10 @@ void message_send_gone(const char * const barejid) {}
 void message_send_invite(const char * const room, const char * const contact,
     const char * const reason) {}
 
+bool message_is_sent_by_us(ProfMessage *message) {
+    return TRUE;
+}
+
 // presence functions
 void presence_subscription(const char * const jid, const jabber_subscr_t action) {}