94 Commits

Author SHA1 Message Date
alandefreitas
925043e1e8 Update Beast zlib streams
fix #2439
2022-06-03 17:45:32 -03:00
Richard Hodges
f16925f2b5 Fix typo in _experimental::test::basic_stream documentation 2021-11-12 16:49:24 +01:00
Ed Tanous
071b905bc4 Remove test framework's dependency on RTTI:
Allow unit tests to compile with rtti=off

This struct is only used to make sure that there are no duplication of
test suites.  Move it to a concept that works with RTTI disabled.

Signed-off-by: Ed Tanous <ed@tanous.net>

close #2337
2021-11-03 20:53:28 +01:00
Ed Tanous
4235525c6a Allow test::stream to be used with NORTTI:
Currently, the test stream code doesn't compile when both debug builds
(namely assertions) are enabled along with disabling rtti.  The current
code directly uses type_id(), which isn't available without rtti.

This commit allows stream.hpp to compile without rtti enabled.

Signed-off-by: Ed Tanous <ed@tanous.net>

close #2331
2021-11-03 16:52:48 +01:00
Richard Hodges
f65dc21335 Fix missing includes:
Files:
beast/_experimental/test/detail/stream_state.hpp

refs #2295
2021-09-03 21:02:45 +02:00
Richard Hodges
8913a3cd21 Add executor rebind to test::stream
closes #2139
2020-12-16 21:11:29 +01:00
Richard Hodges
822722c6c3 Revert removal of deprecated lowest_layer from test::stream:
This reverts commit 3fb693eda6.
2020-12-01 17:52:53 +01:00
Richard Hodges
4357e8356e Add handler tracking locations to icy_stream 2020-08-28 13:26:21 +02:00
Christopher Kohlhoff
107b01ad24 Update bind_handler test to use standard executor form 2020-07-04 07:35:01 +02:00
Christopher Kohlhoff
aef2559c7a Use dispatch/post free functions to be independent of executor concept 2020-07-04 07:34:41 +02:00
Richard Hodges
3fb693eda6 Remove deprecated lowest_layer from test::stream.
refs #1934
2020-06-02 13:04:23 +02:00
Richard Hodges
638e2d1244 Fix compilation errors with msvc /std:c++latest
fixes #1916
fixes #1925
2020-05-01 07:08:31 +02:00
Vinnie Falco
54ea61fd42 Use docca master branch 2019-12-17 11:11:53 -08:00
Vinnie Falco
2f7ddb69ee Use plain throw in unit test framework 2019-12-06 19:48:27 -08:00
Vinnie Falco
32bbd38387 Support Concepts for completion token params 2019-10-31 06:47:22 -07:00
Vinnie Falco
7cc8759261 Async init-fns use the executor's default token 2019-10-31 05:47:05 -07:00
Vinnie Falco
7dbb3bd417 Add BEAST_THROWS 2019-10-06 15:15:54 -07:00
Mike Ellery
e681f9d212 Add default dtors to satisfy -Wnon-virtual-dtor
close #1664
2019-08-29 10:52:07 -07:00
Vinnie Falco
9f77867f0a Fix outgoing websocket message compression
fix #1666
2019-07-29 10:35:41 -07:00
Damian Jarek
b8b04f8f39 Cleanup transitive includes in beast/core/detail/type_traits.hpp
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-06-24 11:07:41 -07:00
Damian Jarek
f10dc38ae6 Replace uses of net::coroutine with asio::coroutine
`asio::coroutine` is an extension, which is not part of
the Networking TS, so the `net` alias is not appropriate in this case.

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-06-19 17:53:35 +02:00
Damian Jarek
a7ae580568 Remove unused includes from test::stream
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-06-19 17:53:34 +02:00
Damian Jarek
894ab45052 Remove experimental/unit_test/thread.hpp
The file has been unused in Beast for a few releases.

Actions required:
- Copy the `thread` class into your project.

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-05-27 22:13:13 +02:00
Damian Jarek
fd52df9206 Fix data race in test stream
Resolve: #1594

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-05-02 19:39:22 +02:00
Vinnie Falco
4e90183bda Check defined(BOOST_MSVC) 2019-03-29 20:42:44 -07:00
Vinnie Falco
3c82717fed test::stream has deprecated lowest_layer for ssl 2019-03-29 17:31:18 -07:00
Vinnie Falco
61fcd9ef6f Refactor Jamfiles to work with release layout 2019-03-24 09:18:02 -07:00
Vinnie Falco
30d1972aa2 Add missing include 2019-03-11 13:24:20 -07:00
Vinnie Falco
f4e2a327c8 Don't use dynamic_buffer_ref 2019-03-07 12:56:40 -08:00
Vinnie Falco
45353a7f04 handler_ptr is deprecated (API Change):
* `handler_ptr` is deprecated and should not be used.

Actions Required:

* Replace use of `handler_ptr` with `stable_async_base`
  and `allocate_stable`.
2019-03-06 10:38:08 -08:00
Vinnie Falco
e073a9e7fc Tidy up docs 2019-03-05 20:15:07 -08:00
Vinnie Falco
9f2b0ce1db Rename to buffer_bytes 2019-03-05 11:09:53 -08:00
Vinnie Falco
6ccdcdf51d buffer_size is in buffer_traits.hpp 2019-03-05 11:09:50 -08:00
Vinnie Falco
8e2620e2b1 Doc tidy 2019-03-05 08:00:14 -08:00
Vinnie Falco
8c53abe6e5 Support -fno-exceptions 2019-03-01 13:52:50 -08:00
Vinnie Falco
c510662c67 Add test::stream::service 2019-02-27 14:05:16 -08:00
Vinnie Falco
7953ac281f Pass references as pointers to async_initiate 2019-02-26 07:21:05 -08:00
Vinnie Falco
ab9a4c66e0 Doc work 2019-02-26 07:21:04 -08:00
Damian Jarek
e9ba521c60 Cleanup in test::stream internals:
* avoid one instantiation of `bind_handler_front`
* avoid going through the 2-arg post unnecessarily in `read_op`

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-02-26 07:20:48 -08:00
Vinnie Falco
0647c902ac role_type is in boost/beast/core/role.hpp (API Change):
This enumeration is now part of the library core and
not specific to websocket.
2019-02-26 07:20:46 -08:00
Vinnie Falco
81f33a0f89 Rename to async_base, stable_async_base 2019-02-26 07:20:08 -08:00
Vinnie Falco
59bda5d9c6 basic_parser is abstract, not CRTP (API Change):
* `basic_parser` now uses pure virtual member functions instead
  of the curiously recurring template pattern.

Actions Required:

* Change uses of the `basic_parser` type to omit the `Derived`
  template parameter

* Classes derived from `basic_parser` no longer need to friend
  the base.

* Virtual functions in the derived class may be marked `override`.
2019-02-23 11:15:59 -08:00
Vinnie Falco
bbd62dd181 ssl_stream is a public interface 2019-02-23 09:57:45 -08:00
Vinnie Falco
46eb006757 Tidy up docs 2019-02-22 19:46:29 -08:00
Damian Jarek
d048aa8e7e More split definitions in test::stream
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-02-22 17:42:44 -08:00
Vinnie Falco
955354b9dd Enable split Beast compilation for tests 2019-02-22 17:27:27 -08:00
Vinnie Falco
90b783cb62 detect_ssl, async_detect_ssl are public interfaces 2019-02-22 15:39:34 -08:00
Vinnie Falco
6ada618c12 Check BOOST_NO_CXX11_THREAD_LOCAL 2019-02-21 11:09:02 -08:00
Vinnie Falco
d08cc82e15 Use async_initiate 2019-02-21 06:39:35 -08:00
Vinnie Falco
eea3929b26 Concept check tidying 2019-02-20 19:19:59 -08:00