Index: ios/web/web_state/wk_web_view_security_util_unittest.mm |
diff --git a/ios/web/web_state/wk_web_view_security_util_unittest.mm b/ios/web/web_state/wk_web_view_security_util_unittest.mm |
index b785e0244d51acd2d9be3a6ffbc874c272d3cc43..bce18cf7e5669d8280081db9a8edd7b7d7903e5d 100644 |
--- a/ios/web/web_state/wk_web_view_security_util_unittest.mm |
+++ b/ios/web/web_state/wk_web_view_security_util_unittest.mm |
@@ -7,8 +7,9 @@ |
#import <Foundation/Foundation.h> |
#include <Security/Security.h> |
+#include <memory> |
+ |
#include "base/mac/scoped_cftyperef.h" |
-#include "base/memory/scoped_ptr.h" |
#include "crypto/rsa_private_key.h" |
#include "net/cert/x509_cert_types.h" |
#include "net/cert/x509_certificate.h" |
@@ -28,7 +29,7 @@ NSString* const kTestHost = @"www.example.com"; |
// Returns an autoreleased certificate chain for testing. Chain will contain a |
// single self-signed cert with |subject| as a subject. |
NSArray* MakeTestCertChain(const std::string& subject) { |
- scoped_ptr<crypto::RSAPrivateKey> private_key; |
+ std::unique_ptr<crypto::RSAPrivateKey> private_key; |
std::string der_cert; |
net::x509_util::CreateKeyAndSelfSignedCert( |
"CN=" + subject, 1, base::Time::Now(), |