Expose testing callbacks from AsyncSocketTest2.
authorAndrey Ignatov <rdna@fb.com>
Sat, 4 Feb 2017 09:28:42 +0000 (01:28 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Sat, 4 Feb 2017 09:32:55 +0000 (01:32 -0800)
commitef2e3d4b5062d61a61aae45487a8bda5540295a9
tree11bf432ab7bedc6139a3daa611e8784e7f20d659
parentc847b1b4b667dcb6d8d8969d24a38a370053130f
Expose testing callbacks from AsyncSocketTest2.

Summary:
`TestConnectionEventCallback` and `TestAcceptCallback` are very handy and can
be used in other tests outside folly. Specifically I'm going to use them in
`ConnectHookTest`. It'll also allow to avoid copy/paste in `TransparentTlsTest`.

Reviewed By: plapukhov

Differential Revision: D4507461

fbshipit-source-id: dfaa97e26036ebb11da17a53d4a73431a295f4d4
folly/Makefile.am
folly/io/async/test/AsyncSocketTest2.cpp
folly/io/async/test/AsyncSocketTest2.h [new file with mode: 0644]