about summary refs log tree commit diff stats
path: root/tests/unittests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unittests')
-rw-r--r--tests/unittests/ui/stub_ui.c5
-rw-r--r--tests/unittests/ui/stub_vcardwin.c4
-rw-r--r--tests/unittests/xmpp/stub_vcard.c79
3 files changed, 88 insertions, 0 deletions
diff --git a/tests/unittests/ui/stub_ui.c b/tests/unittests/ui/stub_ui.c
index ee759bb2..f95ee0d8 100644
--- a/tests/unittests/ui/stub_ui.c
+++ b/tests/unittests/ui/stub_ui.c
@@ -1256,6 +1256,11 @@ win_create_plugin(const char* const plugin_name, const char* const tag)
 {
     return NULL;
 }
+ProfWin*
+win_create_vcard(vCard* vcard)
+{
+    return NULL;
+}
 
 char*
 win_get_tab_identifier(ProfWin* window)
diff --git a/tests/unittests/ui/stub_vcardwin.c b/tests/unittests/ui/stub_vcardwin.c
new file mode 100644
index 00000000..e73eb04b
--- /dev/null
+++ b/tests/unittests/ui/stub_vcardwin.c
@@ -0,0 +1,4 @@
+void
+vcardwin_update(void)
+{
+}
diff --git a/tests/unittests/xmpp/stub_vcard.c b/tests/unittests/xmpp/stub_vcard.c
new file mode 100644
index 00000000..cc48f92c
--- /dev/null
+++ b/tests/unittests/xmpp/stub_vcard.c
@@ -0,0 +1,79 @@
+#include "ui/ui.h"
+#include "xmpp/vcard.h"
+
+ProfWin*
+vcard_user_create_win()
+{
+    return NULL;
+}
+
+void
+vcard_user_add_element(vcard_element_t* element)
+{
+}
+
+void
+vcard_user_remove_element(unsigned int index)
+{
+}
+
+void
+vcard_print(xmpp_ctx_t* ctx, ProfWin* window, char* jid)
+{
+}
+
+void
+vcard_photo(xmpp_ctx_t* ctx, char* jid, char* filename, int index, gboolean open)
+{
+}
+
+void
+vcard_user_refresh(void)
+{
+}
+
+void
+vcard_user_save(void)
+{
+}
+
+void
+vcard_user_set_fullname(char* fullname)
+{
+}
+
+void
+vcard_user_set_name_family(char* family)
+{
+}
+
+void
+vcard_user_set_name_given(char* given)
+{
+}
+
+void
+vcard_user_set_name_middle(char* middle)
+{
+}
+
+void
+vcard_user_set_name_prefix(char* prefix)
+{
+}
+
+void
+vcard_user_set_name_suffix(char* suffix)
+{
+}
+
+vcard_element_t*
+vcard_user_get_element_index(unsigned int index)
+{
+    return NULL;
+}
+
+void
+vcard_user_free(void)
+{
+}