Index: net/socket/socket_test_util.h |
diff --git a/net/socket/socket_test_util.h b/net/socket/socket_test_util.h |
index ff5384a1a56aea74bbf121d48fb34c9d7aca829e..e2f35040b79b51e0cb49ae5e0eba359aeea2df67 100644 |
--- a/net/socket/socket_test_util.h |
+++ b/net/socket/socket_test_util.h |
@@ -245,11 +245,11 @@ class MockClientSocketFactory : public ClientSocketFactory { |
// Return |index|-th MockTCPClientSocket (starting from 0) that the factory |
// created. |
- MockTCPClientSocket* GetMockTCPClientSocket(int index) const; |
+ MockTCPClientSocket* GetMockTCPClientSocket(size_t index) const; |
// Return |index|-th MockSSLClientSocket (starting from 0) that the factory |
// created. |
- MockSSLClientSocket* GetMockSSLClientSocket(int index) const; |
+ MockSSLClientSocket* GetMockSSLClientSocket(size_t index) const; |
// ClientSocketFactory |
virtual ClientSocket* CreateTCPClientSocket(const AddressList& addresses); |
@@ -276,7 +276,7 @@ class MockClientSocket : public net::SSLClientSocket { |
virtual void Disconnect(); |
virtual bool IsConnected() const; |
virtual bool IsConnectedAndIdle() const; |
- virtual int GetPeerName(struct sockaddr* name, socklen_t* namelen); |
+ virtual int GetPeerAddress(AddressList* address) const; |
// SSLClientSocket methods: |
virtual void GetSSLInfo(net::SSLInfo* ssl_info); |