Index: ios/web/net/crw_url_verifying_protocol_handler_unittest.mm |
diff --git a/ios/web/net/crw_url_verifying_protocol_handler_unittest.mm b/ios/web/net/crw_url_verifying_protocol_handler_unittest.mm |
index 059c40555e8b14e9b093fc81dcbaf65f41336b29..de1534af6e5ff22c16080d625fd7bb79c5b45e17 100644 |
--- a/ios/web/net/crw_url_verifying_protocol_handler_unittest.mm |
+++ b/ios/web/net/crw_url_verifying_protocol_handler_unittest.mm |
@@ -4,7 +4,9 @@ |
#include "ios/web/net/crw_url_verifying_protocol_handler.h" |
-#include "base/memory/scoped_ptr.h" |
+#include <memory> |
+ |
+#include "base/memory/ptr_util.h" |
#include "ios/web/public/test/scoped_testing_web_client.h" |
#import "ios/web/public/test/test_web_client.h" |
#include "ios/web/public/web_client.h" |
@@ -15,7 +17,7 @@ namespace { |
// TODO(shreyasv): See if this can use the WebTest test fixture. |
TEST(CRWURLVerifyingProtocolHandlerTest, NonLazyInitializer) { |
web::ScopedTestingWebClient web_client( |
- make_scoped_ptr(new web::TestWebClient)); |
+ base::WrapUnique(new web::TestWebClient)); |
EXPECT_TRUE([CRWURLVerifyingProtocolHandler preInitialize]); |
} |