Lammert Bies
d317ce3e82
Renamed mg_ to httplib_
2016-12-13 17:32:31 +01:00
bel
d781523da5
Mark this file as obsolete with an additional pragma message
2016-05-09 20:47:55 +02:00
Charles Olivi
7991df09e2
fix unit tests build on linux
2016-05-08 16:53:06 +02:00
bel
5d2e7c889d
Mark test/unit_test.c as obsolete.
...
Since the new CMake based build system will use other files for
unit tests (public_func.c, public_server.c, private.c, private_exe.c
and others), this file is no longer maintained, and will be removed
in the future.
See also #269
2016-03-08 19:48:30 +01:00
mingodad
af2cb138be
Fix unit_test, still not working properly
2016-03-06 12:08:58 +00:00
bel
ac3968c850
Add patch of pull request #196 to unit_test.c
...
The pull request can not be applied automatically, due to merge conflicts.
It is easier to change the few lines manually than to resolve all these conflicts.
2015-08-25 22:02:20 +02:00
bel
323c2f1c75
unit test: Add handler to reply with chunked transfer encoding
2015-07-13 21:16:28 +02:00
bel
bf2d913fd5
Additional unit test for chunked transfer encoding
2015-07-13 01:21:05 +02:00
bel
adbb3a1f3e
More tolerance if content-length is not set correctly
2015-07-13 01:04:37 +02:00
bel
297caa1453
POST request without content length in unit test is a HTTP protocol violation
2015-07-13 00:19:15 +02:00
bel
bcd9f39bb7
Minor adjustments in unit_test.c
2015-07-12 21:50:01 +02:00
hansipie
7fd2ea80a8
MEMORY_DEBUGGING variables
...
Isolate variables used for the memory debugging
2015-07-09 01:12:09 +02:00
bel
14c57095ba
Autoformat unit_test.c
2015-06-15 21:41:38 +02:00
bel
86eb1ed0e5
Check and fix effects of SO_EXCLUSIVEADDRUSE on Windows unit test
2015-06-05 01:24:45 +02:00
bel
d6df859085
Modify unit test, so a breakpoint can be set into ASSERT
2015-06-02 23:08:12 +02:00
bel
a1c09b8186
Only use one command in a line in the unit test
2015-05-20 20:07:18 +02:00
bel
d264808e52
Clean usage of const/not const mg_context* and mg_connection* handles in the API.
...
The API had an inconsistant usage of `const mg_connection *` and `mg_connection *`,
that may cause warnings (e.g., #109 ). Now all non-const `mg_connection *` is only
required to read/write the connection.
2015-04-29 00:13:25 +02:00
bel
62a46e647f
Test for memory leaks in unit test
...
Add a test for issue #92 to the unit test
2015-04-21 22:00:46 +02:00
bel
436bc39555
Handler for websocket connection (Step 2/?)
...
Add an interface to register handler for websocket connections.
See enhancement #30 and question #101
2015-04-19 00:43:11 +02:00
Kevin Wojniak
2b76d9f7c8
Avoid crash if tests aren't ran from 'test' directory
2015-04-14 14:20:39 -07:00
Kevin Wojniak
2a647d166c
Fix passing strings with different sign
2015-04-14 14:09:56 -07:00
Kevin Wojniak
9f24dd5852
Fix wrong format specifier
2015-04-14 14:06:52 -07:00
Kevin Wojniak
3c3ddb47f4
Fix comparison of integers of different signs
2015-04-14 14:06:34 -07:00
Kevin Wojniak
95a2cf40d0
Fix clang missing field initializer warning.
...
Static variables are initialized to zero so no need to explicitely do it.
2015-04-14 14:03:35 -07:00
Kevin Wojniak
d7d9469db8
Fix unused variables in default unit test build
2015-04-14 14:01:54 -07:00
bel
e5dc8cba75
Improve unit test
2015-04-12 00:00:25 +02:00
bel
b2bdb79200
Unit test for set_request_handler (incomplete)
2015-04-12 00:00:22 +02:00
bel
457e6cc8c9
Add test for client functions and fix their timeout handling
2015-03-28 00:03:27 +01:00
bel
83475636b5
Fix unit test
...
Last pull request had syntax errors
2015-03-27 17:45:35 +01:00
Danny Al-Gaaf
3d00b0940d
unit_test.c: comment out unused variables
...
These variables are unused but there is already out commented
code useing them. Keep them until it's decided what happens
with this code.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-03-23 16:40:15 +01:00
Danny Al-Gaaf
5bf5f19452
unit_test.c: close va_list before return
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-03-23 16:39:54 +01:00
bel
154b80bb69
Make client address available in mg_request_info also for IPv6 (see also issue #33 )
2014-09-14 11:04:42 +02:00
bel
5e52950838
Add close callback for websocket clients
2014-08-31 01:34:04 +02:00
bel
eac72465ad
Allow multiple websocket clients with different callbacks and an additional user supplied argument
2014-08-30 23:31:21 +02:00
bel
593596307b
Unit test must start local server
2014-08-27 22:25:09 +02:00
bel
b53fd004c6
Get civetweb to compile for strict C again
2014-08-27 22:04:14 +02:00
bel2125
1a901e5526
Merge pull request #38 from jshelley/master
...
Implemented initial websocket client support - a few changes to interface and implementation will follow soon.
2014-08-27 21:42:13 +02:00
Jordan
5d465aadad
Fixed the copyright, changed mg_client_websocket_connect to mg_websocket_client_connect
2014-08-26 15:22:22 -04:00
Jordan
a4eca7c492
Added a unit test for websocket_client functionality, other small fixes
2014-08-21 14:53:47 -04:00
bel
61c52a6fb9
Fix another TODO in the unit test
2014-08-21 00:37:04 +02:00
bel
53d4247314
clean up unit_test: SSL related TODOs are done
2014-08-19 21:58:23 +02:00
bel
2603a43dbf
Fix unit test for SSL redirect
2014-08-19 21:42:40 +02:00
bel
49ecd448ce
Improve unit test for mg_download
2014-08-18 23:46:28 +02:00
bel
a0b8f8de31
Fix unit test for HTTPS
2014-08-17 01:52:21 +02:00
bel
65bcfea12c
Adapt unit test for mg_download, so the tested http operations are standard compliant
2014-08-17 01:06:10 +02:00
Jan Willem Janssen
d1437f9f5d
Make content length available in request_info:
...
- given that the content-length header is already parsed, lets make
it also available in the request_info struct to allow easy access;
- added simple unit test to verify the behavior of the new field.
2014-08-13 15:07:01 +02:00
Danny Al-Gaaf
d36e535c65
unit_test.c: fix printf, remove unused parameter
...
Fix for:
[test/unit_test.c:827]: (warning) printf format string requires 0
parameters but 1 is given.
[test/unit_test.c:833]: (warning) printf format string requires 0
parameters but 1 is given.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-04-24 11:25:05 +02:00
bel
8fbf4e94ce
Add md5 test to unit test
2014-04-19 22:02:03 +02:00
bel
ca5967bbdf
SSL unit tests
2014-03-22 00:51:17 +01:00
bel
34f434b07b
Get unit-tests running again (90% done, some tests commented out for the moment)
2014-03-20 23:02:56 +01:00