Chromium Code Reviews| Index: net/socket/socket_test_util.cc |
| diff --git a/net/socket/socket_test_util.cc b/net/socket/socket_test_util.cc |
| index d88399d489dc85ce4565fb6f9e8e296e70459ab9..a7bebed41d8d257588265780a909d937a30e79e7 100644 |
| --- a/net/socket/socket_test_util.cc |
| +++ b/net/socket/socket_test_util.cc |
| @@ -15,6 +15,7 @@ |
| #include "net/base/address_family.h" |
| #include "net/base/auth.h" |
| #include "net/base/host_resolver_proc.h" |
| +#include "net/base/ssl_cert_request_info.h" |
| #include "net/base/ssl_info.h" |
| #include "net/http/http_network_session.h" |
| #include "net/http/http_request_headers.h" |
| @@ -531,6 +532,18 @@ void MockSSLClientSocket::GetSSLInfo(net::SSLInfo* ssl_info) { |
| ssl_info->Reset(); |
| } |
| +void MockSSLClientSocket::GetSSLCertRequestInfo( |
| + net::SSLCertRequestInfo* cert_request_info) { |
| + DCHECK(cert_request_info); |
| + if (data_->cert_request_info) { |
| + cert_request_info->host_and_port = |
| + data_->cert_request_info->host_and_port; |
| + cert_request_info->client_certs = data_->cert_request_info->client_certs; |
|
wtc
2011/01/12 00:21:09
Would it be better to just do a struct copy here?
Ryan Sleevi
2011/01/12 00:40:07
Yes. However, because SSLCertRequestInfo is RefCou
|
| + } else { |
| + cert_request_info->Reset(); |
| + } |
| +} |
| + |
| SSLClientSocket::NextProtoStatus MockSSLClientSocket::GetNextProto( |
| std::string* proto) { |
| *proto = data_->next_proto; |