summaryrefslogtreecommitdiff
path: root/libproxy/test/get-pac-test.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix test #10dominique.leuenberger@gmail.com2013-08-271-11/+19
| | | | | | | | | | | | | | | | | | Fix the way we detect if get_pac correctly aborted on our server trying to send a > 102400 byte long stream (which we do to avoid malicious pac files/wpad server to buffer overflow us). Replace assert calls with proper error handling, which avoids the server from hanging (the write command to send the quit was wrapped in assert()). When not building for a Debug release with CMAKE, the -DNDEBUG is being specified, which in turn disables the assert macro. Fixes bug 189. git-svn-id: http://libproxy.googlecode.com/svn/trunk@878 c587cffe-e639-0410-9787-d7902ae8ed56
* Add HTTP client unit testnicolas.dufresne@gmail.com2012-10-151-0/+258
This should help in preventing regression that could lead to new security issues. This unit test only runs on Unix for now. git-svn-id: http://libproxy.googlecode.com/svn/trunk@861 c587cffe-e639-0410-9787-d7902ae8ed56