diff options
Diffstat (limited to 'net/socket/tcp_client_socket_pool_unittest.cc')
-rw-r--r-- | net/socket/tcp_client_socket_pool_unittest.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/net/socket/tcp_client_socket_pool_unittest.cc b/net/socket/tcp_client_socket_pool_unittest.cc index 8aa9ea0..500725a 100644 --- a/net/socket/tcp_client_socket_pool_unittest.cc +++ b/net/socket/tcp_client_socket_pool_unittest.cc @@ -42,6 +42,9 @@ class MockClientSocket : public ClientSocket { virtual bool IsConnectedAndIdle() const { return connected_; } + virtual int GetPeerName(struct sockaddr* name, socklen_t* namelen) { + return ERR_UNEXPECTED; + } // Socket methods: virtual int Read(IOBuffer* buf, int buf_len, @@ -76,6 +79,9 @@ class MockFailingClientSocket : public ClientSocket { virtual bool IsConnectedAndIdle() const { return false; } + virtual int GetPeerName(struct sockaddr* name, socklen_t* namelen) { + return ERR_UNEXPECTED; + } // Socket methods: virtual int Read(IOBuffer* buf, int buf_len, @@ -115,6 +121,9 @@ class MockPendingClientSocket : public ClientSocket { virtual bool IsConnectedAndIdle() const { return is_connected_; } + virtual int GetPeerName(struct sockaddr* name, socklen_t* namelen) { + return ERR_UNEXPECTED; + } // Socket methods: virtual int Read(IOBuffer* buf, int buf_len, |