Commit 5bb10c1e authored by Neel Goyal's avatar Neel Goyal Committed by Facebook Github Bot

Refactor socket peeker

Summary:
Refactor the socket peeker into its
own class so that it can be used in
other places as well, for example
for peeking at plaintext traffic.

Reviewed By: knekritz

Differential Revision: D3521899

fbshipit-source-id: fcd5615dd5d7cd1ddece4c624efbdecfbbc88a09
parent b197869b
...@@ -46,6 +46,8 @@ class MockAsyncSocket : public AsyncSocket { ...@@ -46,6 +46,8 @@ class MockAsyncSocket : public AsyncSocket {
MOCK_CONST_METHOD0(good, bool()); MOCK_CONST_METHOD0(good, bool());
MOCK_CONST_METHOD0(readable, bool()); MOCK_CONST_METHOD0(readable, bool());
MOCK_CONST_METHOD0(hangup, bool()); MOCK_CONST_METHOD0(hangup, bool());
MOCK_METHOD1(setPeek, void(bool));
MOCK_METHOD1(setReadCB, void(ReadCallback*));
}; };
}} }}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment