diff options
| author | Garrett D'Amore <garrett@damore.org> | 2019-12-28 10:55:13 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2019-12-28 12:41:31 -0800 |
| commit | 255a85d10f68a898c671f9387da61e0ba62a61c7 (patch) | |
| tree | 17b93ed72f14b023677234a5cb870efe4f9f4f35 /tests/testutil.h | |
| parent | 50b5f060548987de6f5ac65f39fa0eecb597decb (diff) | |
| download | nng-255a85d10f68a898c671f9387da61e0ba62a61c7.tar.gz nng-255a85d10f68a898c671f9387da61e0ba62a61c7.tar.bz2 nng-255a85d10f68a898c671f9387da61e0ba62a61c7.zip | |
fixes #986 ws_read_finish_str free invalid pointer
Also, this has refactored the websocket stream test to the new
acutest.h, and includes a much deeper test of fragmentation and
reassembly of websocket streams.
Diffstat (limited to 'tests/testutil.h')
| -rw-r--r-- | tests/testutil.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/testutil.h b/tests/testutil.h index ab792557..b9acfedf 100644 --- a/tests/testutil.h +++ b/tests/testutil.h @@ -31,6 +31,9 @@ extern bool testutil_pollfd(int); // testutil_htons is just htons portably. extern uint16_t testutil_htons(uint16_t); +// testutil_htonl is just htonl portably. +extern uint32_t testutil_htonl(uint32_t); + // testutil_sleep sleeps the specified number of msec extern void testutil_sleep(int); |
