Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(241)

Unified Diff: net/socket/transport_client_socket_pool_unittest.cc

Issue 10690122: Change SpdySession::GetSSLInfo to get the SSLInfo from the underlying socket (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: FIx curvercp Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/socket/tcp_client_socket_win.cc ('k') | net/spdy/spdy_proxy_client_socket.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/transport_client_socket_pool_unittest.cc
diff --git a/net/socket/transport_client_socket_pool_unittest.cc b/net/socket/transport_client_socket_pool_unittest.cc
index 93e7d11934de1ac418da1074a107f05617bd7fd6..d7ff4e65852c5a226ffaeb71849a314fe6230778 100644
--- a/net/socket/transport_client_socket_pool_unittest.cc
+++ b/net/socket/transport_client_socket_pool_unittest.cc
@@ -89,9 +89,15 @@ class MockClientSocket : public StreamSocket {
virtual base::TimeDelta GetConnectTimeMicros() const {
return base::TimeDelta::FromMicroseconds(-1);
}
+ virtual bool WasNpnNegotiated() const {
+ return false;
+ }
virtual NextProto GetNegotiatedProtocol() const {
return kProtoUnknown;
}
+ virtual bool GetSSLInfo(SSLInfo* ssl_info) {
+ return false;
+ }
// Socket implementation.
virtual int Read(IOBuffer* buf, int buf_len,
@@ -146,9 +152,15 @@ class MockFailingClientSocket : public StreamSocket {
virtual base::TimeDelta GetConnectTimeMicros() const {
return base::TimeDelta::FromMicroseconds(-1);
}
+ virtual bool WasNpnNegotiated() const {
+ return false;
+ }
virtual NextProto GetNegotiatedProtocol() const {
return kProtoUnknown;
}
+ virtual bool GetSSLInfo(SSLInfo* ssl_info) {
+ return false;
+ }
// Socket implementation.
virtual int Read(IOBuffer* buf, int buf_len,
@@ -228,9 +240,15 @@ class MockPendingClientSocket : public StreamSocket {
virtual base::TimeDelta GetConnectTimeMicros() const {
return base::TimeDelta::FromMicroseconds(-1);
}
+ virtual bool WasNpnNegotiated() const {
+ return false;
+ }
virtual NextProto GetNegotiatedProtocol() const {
return kProtoUnknown;
}
+ virtual bool GetSSLInfo(SSLInfo* ssl_info) {
+ return false;
+ }
// Socket implementation.
virtual int Read(IOBuffer* buf, int buf_len,
« no previous file with comments | « net/socket/tcp_client_socket_win.cc ('k') | net/spdy/spdy_proxy_client_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698