about summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2023-06-06 18:35:18 +0200
committerGitHub <noreply@github.com>2023-06-06 18:35:18 +0200
commit6247c28e3116d85efce0f6e39552241d6de80966 (patch)
treee3cf13a08c70e667733fa777d4b9e2a70db42a4f /tests
parentd761e88ee62c0909275386258de345deef174174 (diff)
parent95e06ad16955f3b49c117cc6f2d53bf4da747154 (diff)
downloadprofani-tty-6247c28e3116d85efce0f6e39552241d6de80966.tar.gz
Merge pull request #1842 from H3rnand3zzz/feature/plugins-download
New Feature: Plugins Download
Diffstat (limited to 'tests')
-rw-r--r--tests/unittests/tools/stub_http_download.c2
-rw-r--r--tests/unittests/tools/stub_plugin_download.c19
2 files changed, 21 insertions, 0 deletions
diff --git a/tests/unittests/tools/stub_http_download.c b/tests/unittests/tools/stub_http_download.c
index f530b384..aff47200 100644
--- a/tests/unittests/tools/stub_http_download.c
+++ b/tests/unittests/tools/stub_http_download.c
@@ -3,6 +3,7 @@
 
 #include <curl/curl.h>
 #include <pthread.h>
+#include "common.h"
 
 typedef struct prof_win_t ProfWin;
 
@@ -17,6 +18,7 @@ typedef struct http_download_t
     ProfWin* window;
     pthread_t worker;
     int cancel;
+    gboolean silent;
 } HTTPDownload;
 
 void*
diff --git a/tests/unittests/tools/stub_plugin_download.c b/tests/unittests/tools/stub_plugin_download.c
new file mode 100644
index 00000000..c54f60d2
--- /dev/null
+++ b/tests/unittests/tools/stub_plugin_download.c
@@ -0,0 +1,19 @@
+#ifndef TOOLS_PLUGIN_DOWNLOAD_H
+#define TOOLS_PLUGIN_DOWNLOAD_H
+
+#include <stdlib.h>
+typedef struct prof_win_t ProfWin;
+typedef struct http_download_t HTTPDownload;
+
+void*
+plugin_download_install(void* userdata)
+{
+    return NULL;
+}
+
+void
+plugin_download_add_download(HTTPDownload* download)
+{
+}
+
+#endif