Add stubs
This commit is contained in:
23
tests/unittests/tools/stub_aesgcm_download.c
Normal file
23
tests/unittests/tools/stub_aesgcm_download.c
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef TOOLS_AESGCM_DOWNLOAD_H
|
||||
#define TOOLS_AESGCM_DOWNLOAD_H
|
||||
|
||||
#include <pthread.h>
|
||||
|
||||
typedef struct prof_win_t ProfWin;
|
||||
typedef struct http_download_t HTTPDownload;
|
||||
|
||||
typedef struct aesgcm_download_t
|
||||
{
|
||||
char* url;
|
||||
char* filename;
|
||||
ProfWin* window;
|
||||
pthread_t worker;
|
||||
HTTPDownload* http_dl;
|
||||
} AESGCMDownload;
|
||||
|
||||
void* aesgcm_file_get(void* userdata);
|
||||
|
||||
void aesgcm_download_cancel_processes(ProfWin* window);
|
||||
void aesgcm_download_add_download(AESGCMDownload* download);
|
||||
|
||||
#endif
|
||||
16
tests/unittests/tools/stub_http_common.c
Normal file
16
tests/unittests/tools/stub_http_common.c
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef TOOLS_HTTP_COMMON_H
|
||||
#define TOOLS_HTTP_COMMON_H
|
||||
|
||||
typedef struct prof_win_t ProfWin;
|
||||
|
||||
char*
|
||||
http_basename_from_url(const char* url)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
void http_print_transfer(ProfWin* window, char* url, const char* fmt, ...);
|
||||
void http_print_transfer_update(ProfWin* window, char* url,
|
||||
const char* fmt, ...);
|
||||
|
||||
#endif
|
||||
@@ -23,6 +23,4 @@ void* http_file_get(void* userdata);
|
||||
void http_download_cancel_processes(ProfWin* window);
|
||||
void http_download_add_download(HTTPDownload* download);
|
||||
|
||||
char* http_filename_from_url(const char* url);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user