From 2d88e7d8b4c382e0ef178c52a87450c226150ef2 Mon Sep 17 00:00:00 2001 From: "rch@chromium.org" Date: Thu, 19 Jul 2012 17:55:17 +0000 Subject: Change SpdySession::GetSSLInfo to get the SSLInfo from the underlying socket even if the session is not "secure". This required refactoring StreamSocket to add WasNpnNegotiated() and GetSSLInfo() methods. This allows for a change to SpdySession::GetSSLInfo to accurately return the correct SSLInfo in the case of SPDY Proxy sessions. BUG=134690 TEST=\*DoNotUseSpdySessionIfCertDoesNotMatch\* Review URL: https://chromiumcodereview.appspot.com/10690122 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147479 0039d316-1c4b-4281-b951-d872f2087c98 --- net/socket/ssl_server_socket_unittest.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'net/socket/ssl_server_socket_unittest.cc') diff --git a/net/socket/ssl_server_socket_unittest.cc b/net/socket/ssl_server_socket_unittest.cc index 03a6db0..f93d7c6 100644 --- a/net/socket/ssl_server_socket_unittest.cc +++ b/net/socket/ssl_server_socket_unittest.cc @@ -236,10 +236,18 @@ class FakeSocket : public StreamSocket { 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; + } + private: net::BoundNetLog net_log_; FakeDataChannel* incoming_; -- cgit v1.1