summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Book <cbook@google.com>2016-02-01 16:46:20 -0500
committerChristopher Book <cbook@google.com>2016-02-01 16:46:20 -0500
commit38a530fdf1f484b233615105d5d1a06c21e81d63 (patch)
tree201a16f948fa98175752b5f7e06cda460b60bda7
parentc1962fbd63fd48083528bc03cfa4e6045bfc9153 (diff)
downloadshill-38a530fdf1f484b233615105d5d1a06c21e81d63.tar.gz
shill: Add APIs missing from MockSockets
BUG: None TEST=unit tests Change-Id: Iefe16470b5aa9beff2bf9c3df1f31b705b66b46d
-rw-r--r--net/mock_sockets.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mock_sockets.h b/net/mock_sockets.h
index ec4f99e4..b0688a4a 100644
--- a/net/mock_sockets.h
+++ b/net/mock_sockets.h
@@ -37,6 +37,8 @@ class MockSockets : public Sockets {
MOCK_CONST_METHOD3(Bind, int(int sockfd, const struct sockaddr* addr,
socklen_t addrlen));
MOCK_CONST_METHOD2(BindToDevice, int(int sockfd, const std::string& device));
+ MOCK_CONST_METHOD1(ReuseAddress, int(int sockfd));
+ MOCK_CONST_METHOD2(AddMulticastMembership, int(int sockfd, in_addr_t addr));
MOCK_CONST_METHOD1(Close, int(int fd));
MOCK_CONST_METHOD3(Connect, int(int sockfd, const struct sockaddr* addr,
socklen_t addrlen));