mirror of
https://github.com/curl/curl.git
synced 2026-08-24 18:23:33 +03:00
tests: add unit tests for url.c
Approved-by: Daniel Gustafsson Closes #2937
This commit is contained in:
parent
c497472c8b
commit
b004a174ea
7 changed files with 125 additions and 9 deletions
|
|
@ -34,7 +34,7 @@
|
|||
CURLcode Curl_init_do(struct Curl_easy *data, struct connectdata *conn);
|
||||
CURLcode Curl_open(struct Curl_easy **curl);
|
||||
CURLcode Curl_init_userdefined(struct Curl_easy *data);
|
||||
CURLcode Curl_dupset(struct Curl_easy * dst, struct Curl_easy * src);
|
||||
|
||||
void Curl_freeset(struct Curl_easy * data);
|
||||
CURLcode Curl_close(struct Curl_easy *data); /* opposite of curl_open() */
|
||||
CURLcode Curl_connect(struct Curl_easy *, struct connectdata **,
|
||||
|
|
@ -57,9 +57,7 @@ int Curl_doing_getsock(struct connectdata *conn,
|
|||
CURLcode Curl_parse_login_details(const char *login, const size_t len,
|
||||
char **userptr, char **passwdptr,
|
||||
char **optionsptr);
|
||||
bool Curl_isPipeliningEnabled(const struct Curl_easy *handle);
|
||||
CURLcode Curl_addHandleToPipeline(struct Curl_easy *handle,
|
||||
struct curl_llist *pipeline);
|
||||
|
||||
int Curl_removeHandleFromPipeline(struct Curl_easy *handle,
|
||||
struct curl_llist *pipeline);
|
||||
/* remove the specified connection from all (possible) pipelines and related
|
||||
|
|
@ -67,7 +65,6 @@ int Curl_removeHandleFromPipeline(struct Curl_easy *handle,
|
|||
void Curl_getoff_all_pipelines(struct Curl_easy *data,
|
||||
struct connectdata *conn);
|
||||
|
||||
void Curl_close_connections(struct Curl_easy *data);
|
||||
|
||||
#define CURL_DEFAULT_PROXY_PORT 1080 /* default proxy port unless specified */
|
||||
#define CURL_DEFAULT_HTTPS_PROXY_PORT 443 /* default https proxy port unless
|
||||
|
|
|
|||
|
|
@ -1446,8 +1446,7 @@ enum dupstring {
|
|||
|
||||
STRING_LASTZEROTERMINATED,
|
||||
|
||||
/* -- below this are pointers to binary data that cannot be strdup'ed.
|
||||
Each such pointer must be added manually to Curl_dupset() --- */
|
||||
/* -- below this are pointers to binary data that cannot be strdup'ed. --- */
|
||||
|
||||
STRING_COPYPOSTFIELDS, /* if POST, set the fields' values here */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue