Index: net/socket/socket_test_util.cc |
diff --git a/net/socket/socket_test_util.cc b/net/socket/socket_test_util.cc |
index 3498c13428d26ee04ff61c04387ecf3b5a946eec..b847a2994d7a601f64578e5434f9395bd932b409 100644 |
--- a/net/socket/socket_test_util.cc |
+++ b/net/socket/socket_test_util.cc |
@@ -764,6 +764,11 @@ const BoundNetLog& MockClientSocket::NetLog() const { |
return net_log_; |
} |
+std::string MockClientSocket::GetSessionCacheKey() const { |
+ NOTIMPLEMENTED(); |
+ return std::string(); |
+} |
+ |
bool MockClientSocket::InSessionCache() const { |
NOTIMPLEMENTED(); |
return false; |
@@ -1322,6 +1327,7 @@ MockSSLClientSocket::MockSSLClientSocket( |
// tests. |
transport_socket->socket()->NetLog()), |
transport_(transport_socket.Pass()), |
+ host_port_pair_(host_port_pair), |
data_(data), |
is_npn_state_set_(false), |
new_npn_value_(false), |
@@ -1389,6 +1395,12 @@ bool MockSSLClientSocket::GetSSLInfo(SSLInfo* ssl_info) { |
return true; |
} |
+std::string MockSSLClientSocket::GetSessionCacheKey() const { |
+ // For the purposes of these tests, |host_and_port| will serve as the |
+ // cache key. |
+ return host_port_pair_.ToString(); |
+} |
+ |
bool MockSSLClientSocket::InSessionCache() const { |
return data_->is_in_session_cache; |
} |