Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(432)

Unified Diff: ios/web/net/crw_url_verifying_protocol_handler_unittest.mm

Issue 1861593005: Convert //ios from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add header Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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]);
}

Powered by Google App Engine
This is Rietveld 408576698