projects
/
folly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b197869
)
Refactor socket peeker
author
Neel Goyal
<ngoyal@fb.com>
Tue, 26 Jul 2016 15:09:18 +0000
(08:09 -0700)
committer
Facebook Github Bot
<facebook-github-bot-bot@fb.com>
Tue, 26 Jul 2016 15:23:33 +0000
(08:23 -0700)
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
folly/io/async/test/MockAsyncSocket.h
patch
|
blob
|
history
diff --git
a/folly/io/async/test/MockAsyncSocket.h
b/folly/io/async/test/MockAsyncSocket.h
index f7f9fee165eb1b9b328a1c155ec336a4ca070060..32c692ad6e3c6a210c61d993d34e47bb466f7535 100644
(file)
--- a/
folly/io/async/test/MockAsyncSocket.h
+++ b/
folly/io/async/test/MockAsyncSocket.h
@@
-46,6
+46,8
@@
class MockAsyncSocket : public AsyncSocket {
MOCK_CONST_METHOD0(good, bool());
MOCK_CONST_METHOD0(readable, bool());
MOCK_CONST_METHOD0(hangup, bool());
+ MOCK_METHOD1(setPeek, void(bool));
+ MOCK_METHOD1(setReadCB, void(ReadCallback*));
};
}}