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

Side by Side Diff: ios/public/provider/chrome/browser/test_chrome_provider_initializer.h

Issue 1861593005: Convert //ios from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase? 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef IOS_PUBLIC_PROVIDER_CHROME_BROWSER_TEST_CHROME_PROVIDER_INITIALIZER_H_ 5 #ifndef IOS_PUBLIC_PROVIDER_CHROME_BROWSER_TEST_CHROME_PROVIDER_INITIALIZER_H_
6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_TEST_CHROME_PROVIDER_INITIALIZER_H_ 6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_TEST_CHROME_PROVIDER_INITIALIZER_H_
7 7
8 #include <memory>
9
8 #include "base/macros.h" 10 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 11
11 namespace ios { 12 namespace ios {
12 13
13 class TestChromeBrowserProvider; 14 class TestChromeBrowserProvider;
14 15
15 // Initializes various objects needed to run unit tests that use ios:: 16 // Initializes various objects needed to run unit tests that use ios::
16 // objects. Currently this includes setting up the chrome browser provider as 17 // objects. Currently this includes setting up the chrome browser provider as
17 // a |TestChromeBrowserProvider|. 18 // a |TestChromeBrowserProvider|.
18 class TestChromeProviderInitializer { 19 class TestChromeProviderInitializer {
19 public: 20 public:
20 TestChromeProviderInitializer(); 21 TestChromeProviderInitializer();
21 virtual ~TestChromeProviderInitializer(); 22 virtual ~TestChromeProviderInitializer();
22 23
23 private: 24 private:
24 scoped_ptr<TestChromeBrowserProvider> chrome_browser_provider_; 25 std::unique_ptr<TestChromeBrowserProvider> chrome_browser_provider_;
25 26
26 DISALLOW_COPY_AND_ASSIGN(TestChromeProviderInitializer); 27 DISALLOW_COPY_AND_ASSIGN(TestChromeProviderInitializer);
27 }; 28 };
28 29
29 } // namespace ios 30 } // namespace ios
30 31
31 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_TEST_CHROME_PROVIDER_INITIALIZER_H _ 32 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_TEST_CHROME_PROVIDER_INITIALIZER_H _
OLDNEW
« no previous file with comments | « ios/public/provider/chrome/browser/test_chrome_browser_provider.h ('k') | ios/public/provider/web/web_controller_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698