diff options
Diffstat (limited to 'tests/unittests')
-rw-r--r-- | tests/unittests/omemo/stub_omemo.c | 5 | ||||
-rw-r--r-- | tests/unittests/ui/stub_ui.c | 25 | ||||
-rw-r--r-- | tests/unittests/xmpp/stub_xmpp.c | 6 |
3 files changed, 36 insertions, 0 deletions
diff --git a/tests/unittests/omemo/stub_omemo.c b/tests/unittests/omemo/stub_omemo.c index f6cc4491..127787ec 100644 --- a/tests/unittests/omemo/stub_omemo.c +++ b/tests/unittests/omemo/stub_omemo.c @@ -114,3 +114,8 @@ omemo_encrypt_file(FILE* in, FILE* out, off_t file_size, int* gcry_res) return NULL; }; void omemo_free(void* a){}; + +uint32_t +omemo_device_id() { + return 123; +} diff --git a/tests/unittests/ui/stub_ui.c b/tests/unittests/ui/stub_ui.c index dc36678b..1cae8bde 100644 --- a/tests/unittests/ui/stub_ui.c +++ b/tests/unittests/ui/stub_ui.c @@ -210,6 +210,20 @@ ui_win_unread(int index) return 0; } +gboolean +ui_win_has_attention(int index) { + return FALSE; +} + +gboolean +win_has_attention(ProfWin* window){ + return FALSE; +} + +gboolean +win_toggle_attention(ProfWin* window){ + return FALSE; +} char* ui_ask_password(gboolean confirm) { @@ -828,6 +842,12 @@ void cons_show_wins(gboolean unread) { } + +void +cons_show_wins_attention() +{ +} + void cons_show_status(const char* const barejid) { @@ -888,6 +908,11 @@ cons_show_bookmarks(const GList* list) } void +cons_show_bookmark(Bookmark* item) +{ +} + +void cons_show_disco_items(GSList* items, const char* const jid) { } diff --git a/tests/unittests/xmpp/stub_xmpp.c b/tests/unittests/xmpp/stub_xmpp.c index cffaae7f..ba72024c 100644 --- a/tests/unittests/xmpp/stub_xmpp.c +++ b/tests/unittests/xmpp/stub_xmpp.c @@ -487,6 +487,12 @@ bookmark_get_list(void) return mock_ptr_type(GList*); } +Bookmark* +bookmark_get_by_jid(const char* jid) +{ + return NULL; +} + char* bookmark_find(const char* const search_str, gboolean previous, void* context) { |