diff options
author | wtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-30 20:16:29 +0000 |
---|---|---|
committer | wtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-30 20:16:29 +0000 |
commit | 4dcdb14d4d5a69bed1dd9bbaa84389ef5a078737 (patch) | |
tree | a1de6c21540f352b8b24a2a7ca61886a71c74440 /net/socket/socket_test_util.h | |
parent | cd70bdff829e7587d889824841f808425772a29e (diff) | |
download | chromium_src-4dcdb14d4d5a69bed1dd9bbaa84389ef5a078737.zip chromium_src-4dcdb14d4d5a69bed1dd9bbaa84389ef5a078737.tar.gz chromium_src-4dcdb14d4d5a69bed1dd9bbaa84389ef5a078737.tar.bz2 |
Define the GetPeerName method of the ClientSocket interface for all
platforms, in preparation for using SSLClientSocketNSS on Windows.
nss_memio.c does not need to include <unistd.h>
Fix style nits.
R=eroman
BUG=28744
TEST=none
Review URL: http://codereview.chromium.org/440031
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33319 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket/socket_test_util.h')
-rw-r--r-- | net/socket/socket_test_util.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/net/socket/socket_test_util.h b/net/socket/socket_test_util.h index 29f4d67..d288203 100644 --- a/net/socket/socket_test_util.h +++ b/net/socket/socket_test_util.h @@ -266,14 +266,15 @@ class MockClientSocket : public net::SSLClientSocket { // ClientSocket methods: virtual int Connect(net::CompletionCallback* callback, LoadLog* load_log) = 0; + virtual void Disconnect(); + virtual bool IsConnected() const; + virtual bool IsConnectedAndIdle() const; + virtual int GetPeerName(struct sockaddr* name, socklen_t* namelen); // SSLClientSocket methods: virtual void GetSSLInfo(net::SSLInfo* ssl_info); virtual void GetSSLCertRequestInfo( net::SSLCertRequestInfo* cert_request_info); - virtual void Disconnect(); - virtual bool IsConnected() const; - virtual bool IsConnectedAndIdle() const; // Socket methods: virtual int Read(net::IOBuffer* buf, int buf_len, @@ -283,10 +284,6 @@ class MockClientSocket : public net::SSLClientSocket { virtual bool SetReceiveBufferSize(int32 size) { return true; }; virtual bool SetSendBufferSize(int32 size) { return true; }; -#if defined(OS_LINUX) - virtual int GetPeerName(struct sockaddr *name, socklen_t *namelen); -#endif - // If an async IO is pending because the SocketDataProvider returned // ERR_IO_PENDING, then the MockClientSocket waits until this OnReadComplete // is called to complete the asynchronous read operation. |