Vinnie Falco
f63cf33118
New unit_test framework:
...
* Header-only!
* No external dependencies or other beast modules
* Compilation options allow for:
- Stand-alone application to run a single test suite
- Stand-alone application to run a set of test suites
- Global suite of tests inline with the host application
- Disable test suite generation completely
* Existing tests reworked to use the new classes
2014-03-21 18:00:37 -07:00
Vinnie Falco
6546c30e17
Refactor beast::asio:
...
* New tools for completion handlers:
- wrap_handler provides composed io_service execution guarantees.
- bind_handler rebinds arguments to handlers.
- shared_handler type-erases any completion handler.
- buffer_sequence type-erases templated BufferSequences
- abstract_socket replaces Socket
- socket_wrapper replaces SocketWrapper
- beast::asio placeholders to work with std::bind
* Removed obsolete classes and functions
- AbstractHandler
- ComposedAsyncOperation
- SharedFunction
- SharedHandler
- SharedHandlerAllocator
- SharedHandlerPtr
- SharedHandlerType
- SocketBase
- SocketWrapperStrand
- wrapHandler
* Refactored classes to use new tools
- abstract_socket
- socket_wrapper
- HandshakeDetector
- HttpClientType
* Miscellanous tidying
- socket classes moved to beast::asio namespace
- beast asio files provide their own namespace declaration.
- Fix IsCallPossible conflicting template parameter name
- Use <boost/get_pointer.hpp> for C++11 compatibility.
- Remove extraneous include path from build environment.
2014-03-14 08:03:48 -07:00
Howard Hinnant
4e3dcd1ce6
Fix beast::asio failures on OS X.
...
There are 38 unittest failures on OS X. These changes address all of
them by adjusting which side of the socket (send or receive) gets
shut down. In each case, the failure was 'Socket is not connected'.
I've interpreted that to mean that the other thread had already shut
down its side of the connection.
2014-03-04 15:43:33 -08:00
Howard Hinnant
bb02112752
Fix clang warnings
2014-02-28 12:15:12 -08:00
Vinnie Falco
3f74cb76e9
Rename boost_asio files
2013-09-07 11:53:34 -07:00
Vinnie Falco
d9d291abcb
Tidy up includes and header material
2013-08-30 17:33:33 -07:00
Vinnie Falco
5c0ee3d9a8
Make asio Socket unit tests run automatically
2013-08-24 20:06:16 -07:00
Vinnie Falco
b4855b6ac9
New beast Socket, SharedHandler, ComposedAsyncOperation APIs
2013-08-21 19:41:22 -07:00
Vinnie Falco
503b8047b1
Fix thread destruction in TestPeer and better exception reporting
2013-08-17 21:10:00 -07:00
Vinnie Falco
d959af430e
Fixes to handshake and socket wrapper
2013-08-17 21:09:59 -07:00
Vinnie Falco
4615297b00
Refactor handshake parsing and logic classes
2013-08-17 21:09:58 -07:00
Vinnie Falco
6108aca055
Add TestPeerLogicProxyClient
2013-08-17 21:09:57 -07:00
Vinnie Falco
9bf8c3765b
Fix server to block until listening
2013-08-15 19:00:19 -07:00
Vinnie Falco
cc133ccc4c
Refactor SocketWrapper
2013-08-15 16:57:46 -07:00
Vinnie Falco
a3ab23a36a
Improvements to TestPeer and PeerTest classes
2013-08-15 16:57:45 -07:00
Vinnie Falco
69b20b52cc
Handshake detection wrappers
2013-08-15 15:45:17 -07:00
Vinnie Falco
e4a68d9962
Infinite PeerTest timeout when debugger attached
2013-08-15 15:45:17 -07:00
Vinnie Falco
7735187d36
Move PeerRole to its own file
2013-08-15 15:45:15 -07:00
Vinnie Falco
e0eaa08597
Add PROXY TestPeer client
2013-08-15 15:45:15 -07:00
Vinnie Falco
b202b82f5a
Disable failing TestPeer unit test
2013-08-10 00:46:33 -07:00
Vinnie Falco
d0bdafff71
Fix c++0x errors
2013-08-10 00:45:40 -07:00
Vinnie Falco
685af493a4
Use deadline_timer to handle async logic properly
2013-08-09 23:14:58 -07:00
Vinnie Falco
e8ad5a0e6b
Tidy up beast_asio
2013-08-09 20:53:49 -07:00
Vinnie Falco
000b5a2b7c
Fix gcc warnings and errors
2013-08-09 19:59:59 -07:00
Vinnie Falco
88ffd3cdfb
TestPeer boost::asio Socket and UnitTest framework
2013-08-09 19:47:12 -07:00