about summary refs log tree commit diff stats
path: root/tests/unittests
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2023-03-10 07:50:30 +0100
committerGitHub <noreply@github.com>2023-03-10 07:50:30 +0100
commit96c1c44a9d1608475d61f4df7bc9114ed18c1821 (patch)
tree7f3e59fa4641501d630225e29fcb993ec8ec0655 /tests/unittests
parent792be5519ee767bb42305ef1d88eaf8570ff7cad (diff)
parentd043d53948284ab7d1f3ae92c891703033cc98b1 (diff)
downloadprofani-tty-96c1c44a9d1608475d61f4df7bc9114ed18c1821.tar.gz
Merge pull request #1795 from IsaacM88/master
Fix duplicate download IDs when using "/url save"
Diffstat (limited to 'tests/unittests')
-rw-r--r--tests/unittests/tools/stub_aesgcm_download.c1
-rw-r--r--tests/unittests/tools/stub_http_download.c1
-rw-r--r--tests/unittests/ui/stub_ui.c2
3 files changed, 3 insertions, 1 deletions
diff --git a/tests/unittests/tools/stub_aesgcm_download.c b/tests/unittests/tools/stub_aesgcm_download.c
index 6f4cc0ce..07f411ca 100644
--- a/tests/unittests/tools/stub_aesgcm_download.c
+++ b/tests/unittests/tools/stub_aesgcm_download.c
@@ -8,6 +8,7 @@ typedef struct http_download_t HTTPDownload;
 
 typedef struct aesgcm_download_t
 {
+    char* id;
     char* url;
     char* filename;
     ProfWin* window;
diff --git a/tests/unittests/tools/stub_http_download.c b/tests/unittests/tools/stub_http_download.c
index cc7bddc5..f530b384 100644
--- a/tests/unittests/tools/stub_http_download.c
+++ b/tests/unittests/tools/stub_http_download.c
@@ -8,6 +8,7 @@ typedef struct prof_win_t ProfWin;
 
 typedef struct http_download_t
 {
+    char* id;
     char* url;
     char* filename;
     char* directory;
diff --git a/tests/unittests/ui/stub_ui.c b/tests/unittests/ui/stub_ui.c
index d8272aab..edd8c336 100644
--- a/tests/unittests/ui/stub_ui.c
+++ b/tests/unittests/ui/stub_ui.c
@@ -490,7 +490,7 @@ mucwin_unset_message_char(ProfMucWin* mucwin)
 
 void win_update_entry_message(ProfWin* window, const char* const id, const char* const message){};
 void win_mark_received(ProfWin* window, const char* const id){};
-void win_print_http_transfer(ProfWin* window, const char* const message, char* url){};
+void win_print_http_transfer(ProfWin* window, const char* const message, char* id){};
 void win_print_loading_history(ProfWin* window){};
 
 void