about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2022-10-21 16:47:03 +0200
committerMichael Vetter <jubalh@iodoru.org>2022-10-21 16:47:03 +0200
commite5f506a200367577f8a288c405bc5f0275b55e77 (patch)
tree59c7c386e2f33ed8ad7b25b2043a88f4e9372ab4
parent688191f5e15e011dc873d1df3d01a5092b43f262 (diff)
downloadprofani-tty-e5f506a200367577f8a288c405bc5f0275b55e77.tar.gz
Add MAM test stubs
-rw-r--r--tests/unittests/ui/stub_ui.c1
-rw-r--r--tests/unittests/xmpp/stub_xmpp.c5
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/unittests/ui/stub_ui.c b/tests/unittests/ui/stub_ui.c
index f95ee0d8..204a8c35 100644
--- a/tests/unittests/ui/stub_ui.c
+++ b/tests/unittests/ui/stub_ui.c
@@ -491,6 +491,7 @@ mucwin_unset_message_char(ProfMucWin* mucwin)
 void win_update_entry_message(ProfWin* window, const char* const id, const char* const message){};
 void win_mark_received(ProfWin* window, const char* const id){};
 void win_print_http_transfer(ProfWin* window, const char* const message, char* url){};
+void win_print_loading_history(ProfWin* window){};
 
 void
 ui_show_roster(void)
diff --git a/tests/unittests/xmpp/stub_xmpp.c b/tests/unittests/xmpp/stub_xmpp.c
index a01c9930..f79aeb55 100644
--- a/tests/unittests/xmpp/stub_xmpp.c
+++ b/tests/unittests/xmpp/stub_xmpp.c
@@ -427,6 +427,11 @@ iq_muc_register_nick(const char* const roomjid)
 }
 
 void
+iq_mam_request(ProfChatWin* win, GDateTime* enddate)
+{
+}
+
+void
 publish_user_mood(const char* const mood, const char* const text)
 {
 }