| 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..8b79e42f5c5a235f01717a4947aa5f415f2e4d8e 100644
|
| --- a/net/socket/socket_test_util.cc
|
| +++ b/net/socket/socket_test_util.cc
|
| @@ -16,6 +16,7 @@
|
| #include "net/base/auth.h"
|
| #include "net/base/host_resolver_proc.h"
|
| #include "net/base/ssl_info.h"
|
| +#include "net/base/ssl_cert_request_info.h"
|
| #include "net/http/http_network_session.h"
|
| #include "net/http/http_request_headers.h"
|
| #include "net/http/http_response_headers.h"
|
| @@ -531,6 +532,20 @@ 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;
|
| + } else {
|
| + cert_request_info->host_and_port.clear();
|
| + cert_request_info->client_certs.clear();
|
| + }
|
| +}
|
| +
|
| SSLClientSocket::NextProtoStatus MockSSLClientSocket::GetNextProto(
|
| std::string* proto) {
|
| *proto = data_->next_proto;
|
|
|