From b004a174ea5efb3d6bdce83949b6c1eab994930b Mon Sep 17 00:00:00 2001 From: Jim Fuller Date: Fri, 13 Jul 2018 15:17:19 +0000 Subject: tests: add unit tests for url.c Approved-by: Daniel Gustafsson Closes #2937 --- lib/url.h | 7 ++----- lib/urldata.h | 3 +-- 2 files changed, 3 insertions(+), 7 deletions(-) (limited to 'lib') diff --git a/lib/url.h b/lib/url.h index ef3ebf03e..a914f56e6 100644 --- a/lib/url.h +++ b/lib/url.h @@ -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 diff --git a/lib/urldata.h b/lib/urldata.h index 67db3b2fc..add77e09f 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -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 */ -- cgit v1.2.3