Commit 039e8ff1 authored by Konstantin Tsoy's avatar Konstantin Tsoy Committed by Facebook GitHub Bot

Mock AsyncUDPSocket::applyOptions()

Summary: This fixes mvfst OSS tests on Mac.

Reviewed By: lnicco

Differential Revision: D32227732

fbshipit-source-id: 1375799046803a5183f83441b93deb0ab2e0961f
parent c2556a0e
......@@ -458,7 +458,7 @@ class AsyncUDPSocket : public EventHandler {
void setTrafficClass(int tclass);
void applyOptions(
virtual void applyOptions(
const SocketOptionMap& options, SocketOptionKey::ApplyPos pos);
/**
......
......@@ -60,6 +60,8 @@ struct MockAsyncUDPSocket : public AsyncUDPSocket {
int(struct mmsghdr*, unsigned int, unsigned int, struct timespec*));
MOCK_METHOD1(setCmsgs, void(const SocketOptionMap&));
MOCK_METHOD1(appendCmsgs, void(const SocketOptionMap&));
MOCK_METHOD2(
applyOptions, void(const SocketOptionMap&, SocketOptionKey::ApplyPos));
};
} // 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