Explicitly initialize AsyncSocket in MockAsyncSSLSocket
authorMingtao Yang <mingtao@fb.com>
Tue, 22 Aug 2017 17:36:32 +0000 (10:36 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 22 Aug 2017 17:57:06 +0000 (10:57 -0700)
commit02fe20e3434fd6400ecf2ad92c7e1231b8f17108
tree80451b847e24982def9a1bd82f724de42a700f1a
parent1eccb2e616d848a21699bd11b04622d0ef7b07c3
Explicitly initialize AsyncSocket in MockAsyncSSLSocket

Summary:
Even though MockAsyncSSLSocket's initializes AsyncSSLSocket, which should
initialize AsyncSocket, this does not actually happen because AsyncSSLSocket
virtually inherits from AsyncSocket.

Because of this, prior to this diff, the MockAsyncSSLSocket was not properly
setting its EventBase.

Reviewed By: knekritz

Differential Revision: D5676596

fbshipit-source-id: 5f3c0e848179cb5eb4d2dc4921a11e7c04d7c0e0
folly/io/async/test/MockAsyncSSLSocket.h