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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 "ios/web/net/crw_url_verifying_protocol_handler.h" 5 #include "ios/web/net/crw_url_verifying_protocol_handler.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include <memory>
8
9 #include "base/memory/ptr_util.h"
8 #include "ios/web/public/test/scoped_testing_web_client.h" 10 #include "ios/web/public/test/scoped_testing_web_client.h"
9 #import "ios/web/public/test/test_web_client.h" 11 #import "ios/web/public/test/test_web_client.h"
10 #include "ios/web/public/web_client.h" 12 #include "ios/web/public/web_client.h"
11 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
12 14
13 namespace { 15 namespace {
14 16
15 // TODO(shreyasv): See if this can use the WebTest test fixture. 17 // TODO(shreyasv): See if this can use the WebTest test fixture.
16 TEST(CRWURLVerifyingProtocolHandlerTest, NonLazyInitializer) { 18 TEST(CRWURLVerifyingProtocolHandlerTest, NonLazyInitializer) {
17 web::ScopedTestingWebClient web_client( 19 web::ScopedTestingWebClient web_client(
18 make_scoped_ptr(new web::TestWebClient)); 20 base::WrapUnique(new web::TestWebClient));
19 EXPECT_TRUE([CRWURLVerifyingProtocolHandler preInitialize]); 21 EXPECT_TRUE([CRWURLVerifyingProtocolHandler preInitialize]);
20 } 22 }
21 23
22 } // namespace 24 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698