Commit 4e969a2d authored by Yang Chi's avatar Yang Chi Committed by Facebook Github Bot

Mock recvmmsg in AsyncUDPSocket

Summary: as title, just to add a mock function

Reviewed By: yfeldblum, lnicco

Differential Revision: D20130909

fbshipit-source-id: 469d904cce93dc8e88c5dc4728b1f1fbd0baf798
parent 072c06e3
...@@ -55,6 +55,9 @@ struct MockAsyncUDPSocket : public AsyncUDPSocket { ...@@ -55,6 +55,9 @@ struct MockAsyncUDPSocket : public AsyncUDPSocket {
MOCK_METHOD0(getGSO, int()); MOCK_METHOD0(getGSO, int());
MOCK_METHOD1(setGSO, bool(int)); MOCK_METHOD1(setGSO, bool(int));
MOCK_METHOD2(recvmsg, ssize_t(struct msghdr*, int)); MOCK_METHOD2(recvmsg, ssize_t(struct msghdr*, int));
MOCK_METHOD4(
recvmmsg,
int(struct mmsghdr*, unsigned int, unsigned int, struct timespec*));
}; };
} // namespace test } // namespace test
......
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