diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-06-29 21:21:16 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2020-06-29 21:21:16 +0200 |
commit | 60f40988462c4d0fe4645839b866c576a2536aef (patch) | |
tree | 9b06efaf386227756fba193f296001bf13bd81cb | |
parent | 31ec640d051b58b13868340741957e4066274b21 (diff) | |
download | profani-tty-60f40988462c4d0fe4645839b866c576a2536aef.tar.gz |
Add OX test stubs
-rw-r--r-- | tests/unittests/pgp/stub_gpg.c | 11 | ||||
-rw-r--r-- | tests/unittests/xmpp/stub_xmpp.c | 5 |
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/unittests/pgp/stub_gpg.c b/tests/unittests/pgp/stub_gpg.c index f5c63930..efa6dcd3 100644 --- a/tests/unittests/pgp/stub_gpg.c +++ b/tests/unittests/pgp/stub_gpg.c @@ -67,3 +67,14 @@ p_gpg_format_fp_str(char *fp) return NULL; } +gboolean ox_is_private_key_available(const char *const barejid) { + return FALSE; +} + +gboolean ox_is_public_key_available(const char *const barejid) { + return FALSE; +} + +GHashTable* ox_gpg_public_keys(void) { + return NULL; +} diff --git a/tests/unittests/xmpp/stub_xmpp.c b/tests/unittests/xmpp/stub_xmpp.c index 668e8725..16392283 100644 --- a/tests/unittests/xmpp/stub_xmpp.c +++ b/tests/unittests/xmpp/stub_xmpp.c @@ -122,6 +122,11 @@ char* message_send_chat_pgp(const char * const barejid, const char * const msg, return NULL; } +char* message_send_chat_ox(const char * const barejid, const char * const msg, gboolean request_receipt, const char *const replace_id) +{ + return NULL; +} + char* message_send_private(const char *const fulljid, const char *const msg, const char *const oob_url) { return NULL; |