about summary refs log tree commit diff stats
path: root/tests/unittests
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2022-06-29 08:58:38 +0200
committerMichael Vetter <jubalh@iodoru.org>2022-06-29 09:17:15 +0200
commita40a0f51895025b23384bba680e8d48cfe62c607 (patch)
tree9604397aa3614a12fa1252ef5351656d8d9b9995 /tests/unittests
parent5fabca1e3746634eed2be3244313af173c1b6a7d (diff)
downloadprofani-tty-a40a0f51895025b23384bba680e8d48cfe62c607.tar.gz
Split ox functions from gpg.c to ox.c
Diffstat (limited to 'tests/unittests')
-rw-r--r--tests/unittests/pgp/stub_gpg.c18
-rw-r--r--tests/unittests/pgp/stub_ox.c21
2 files changed, 21 insertions, 18 deletions
diff --git a/tests/unittests/pgp/stub_gpg.c b/tests/unittests/pgp/stub_gpg.c
index 807e9b6b..35616e61 100644
--- a/tests/unittests/pgp/stub_gpg.c
+++ b/tests/unittests/pgp/stub_gpg.c
@@ -98,21 +98,3 @@ 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/pgp/stub_ox.c b/tests/unittests/pgp/stub_ox.c
new file mode 100644
index 00000000..95958425
--- /dev/null
+++ b/tests/unittests/pgp/stub_ox.c
@@ -0,0 +1,21 @@
+#include <glib.h>
+
+#include "pgp/gpg.h"
+
+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;
+}