| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ssl/ssl_client_auth_requestor_mock.h" | 5 #include "chrome/browser/ssl/ssl_client_auth_requestor_mock.h" |
| 6 | 6 |
| 7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
| 9 #include "content/public/browser/client_certificate_delegate.h" | 9 #include "content/public/browser/client_certificate_delegate.h" |
| 10 #include "net/ssl/ssl_cert_request_info.h" | 10 #include "net/ssl/ssl_cert_request_info.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 SSLClientAuthRequestorMock::SSLClientAuthRequestorMock( | 40 SSLClientAuthRequestorMock::SSLClientAuthRequestorMock( |
| 41 net::URLRequest* request, | 41 net::URLRequest* request, |
| 42 const scoped_refptr<net::SSLCertRequestInfo>& cert_request_info) | 42 const scoped_refptr<net::SSLCertRequestInfo>& cert_request_info) |
| 43 : cert_request_info_(cert_request_info) { | 43 : cert_request_info_(cert_request_info) { |
| 44 } | 44 } |
| 45 | 45 |
| 46 SSLClientAuthRequestorMock::~SSLClientAuthRequestorMock() {} | 46 SSLClientAuthRequestorMock::~SSLClientAuthRequestorMock() {} |
| 47 | 47 |
| 48 std::unique_ptr<content::ClientCertificateDelegate> | 48 std::unique_ptr<content::ClientCertificateDelegate> |
| 49 SSLClientAuthRequestorMock::CreateDelegate() { | 49 SSLClientAuthRequestorMock::CreateDelegate() { |
| 50 return base::WrapUnique(new FakeClientCertificateDelegate(this)); | 50 return base::MakeUnique<FakeClientCertificateDelegate>(this); |
| 51 } | 51 } |
| OLD | NEW |