[vlc-commits] http: test vlc_http_res_set_login()

Rémi Denis-Courmont git at videolan.org
Tue Aug 30 20:54:41 CEST 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Aug 30 20:17:45 2016 +0300| [e957e41e051a8d5ebe423aed458b100195f09347] | committer: Rémi Denis-Courmont

http: test vlc_http_res_set_login()

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e957e41e051a8d5ebe423aed458b100195f09347
---

 modules/access/http/file_test.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/access/http/file_test.c b/modules/access/http/file_test.c
index c74b5c6..64fab07 100644
--- a/modules/access/http/file_test.c
+++ b/modules/access/http/file_test.c
@@ -59,6 +59,11 @@ int main(void)
     /* Request failure test */
     f = vlc_http_file_create(NULL, url, ua, NULL);
     assert(f != NULL);
+    vlc_http_res_set_login(f, NULL, NULL);
+    vlc_http_res_set_login(f, "john", NULL);
+    vlc_http_res_set_login(f, NULL, NULL);
+    vlc_http_res_set_login(f, "john", "secret");
+    vlc_http_res_set_login(f, NULL, NULL);
     vlc_http_file_seek(f, 0);
     assert(vlc_http_file_get_status(f) < 0);
     assert(vlc_http_file_get_redirect(f) == NULL);



More information about the vlc-commits mailing list