cpp-httplib/test
Joel Rosdahl 887074efd2
Add test of httplib.h split into .h + .cc (#1015)
In order to test the split version (.h + .cc via split.py):

- Added a test_split program in the test directory whose main purpose is
  to verify that it works to compile and link the test case code against
  the split httplib.h version.
- Moved types needed for test cases to the “header part” of httplib.h.
  Also added forward declarations of functions needed by test cases.
- Added an include_httplib.cc file which is linked together with test.cc
  to verify that inline keywords have not been forgotten.

The changes to httplib.h just move code around (or add forward
declarations), with one exception: detail::split and
detail::process_client_socket have been converted to non-template
functions (taking an std::function instead of using a type parameter for
the function) and forward-declared instead. This avoids having to move
the templates to the “header part”.
2021-07-31 09:53:30 -04:00
..
fuzzing Fix #762 2020-11-30 21:49:31 -05:00
gtest Use googletest 1.11.0 (#1000) 2021-07-17 13:21:03 -04:00
proxy Improved Stream interface 2020-01-16 23:28:11 -05:00
www/dir Fix #335 2020-01-21 09:09:05 -05:00
www2/dir Fix #276 2019-11-29 17:07:51 -05:00
www3/dir Fix #276 2019-11-29 17:07:51 -05:00
ca-bundle.crt Wildcard support for verifying server certificate. fix #87 2019-05-07 21:40:03 -04:00
image.jpg Add a file for test 2017-12-29 22:34:59 -05:00
include_httplib.cc Add test of httplib.h split into .h + .cc (#1015) 2021-07-31 09:53:30 -04:00
Makefile Add test of httplib.h split into .h + .cc (#1015) 2021-07-31 09:53:30 -04:00
Makefile.fuzz_test Add cpp-httplib to oss-fuzz (#684) 2020-10-15 08:11:40 -04:00
test.cc Avoid hardcoded ports in RedirectToDifferentPort.Redirect test (#1012) 2021-07-30 10:04:02 -04:00
test.conf ssl-verify-host: fix verifying ip addresses containing zero's (#732) 2020-11-02 20:27:34 -05:00
test.rootCA.conf setup test cases for client certificates 2019-06-07 01:23:22 +08:00
test.sln static file support. vc12 support. 2013-07-04 18:18:52 -04:00
test.vcxproj OpenSSL support on Visual Studio project 2020-07-30 17:19:12 -04:00
test_proxy.cc Switch to hghttp2.org/httpbin for redirect test. (#538) 2020-12-19 20:27:52 -05:00