OLD | NEW |
---|---|
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_TEST_TEST_CHROME_PROVIDER_INITIALIZER_H_ | 5 #ifndef IOS_PUBLIC_TEST_TEST_CHROME_PROVIDER_INITIALIZER_H_ |
6 #define IOS_PUBLIC_TEST_TEST_CHROME_PROVIDER_INITIALIZER_H_ | 6 #define IOS_PUBLIC_TEST_TEST_CHROME_PROVIDER_INITIALIZER_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | |
9 | |
8 namespace ios { | 10 namespace ios { |
9 | 11 |
10 class TestChromeBrowserProvider; | 12 class TestChromeBrowserProvider; |
11 | 13 |
12 // Initializes various objects needed to run unit tests that use ios:: | 14 // Initializes various objects needed to run unit tests that use ios:: |
13 // objects. Currently this includes setting up the chrome browser provider as | 15 // objects. Currently this includes setting up the chrome browser provider as |
14 // a |TestChromeBrowserProvider|. | 16 // a |TestChromeBrowserProvider|. |
15 class TestChromeProviderInitializer { | 17 class TestChromeProviderInitializer { |
16 public: | 18 public: |
17 TestChromeProviderInitializer(); | 19 TestChromeProviderInitializer(); |
18 virtual ~TestChromeProviderInitializer(); | 20 virtual ~TestChromeProviderInitializer(); |
19 | 21 |
20 private: | 22 private: |
21 TestChromeBrowserProvider* chrome_browser_provider_; | 23 scoped_ptr<TestChromeBrowserProvider> chrome_browser_provider_; |
22 }; | 24 }; |
Alexei Svitkine (slow)
2015/01/08 18:39:40
Nit: Probably add DISALLOW_COPY_AND_ASSIGN() here
droger
2015/01/08 18:48:42
Done.
| |
23 | 25 |
24 } // namespace ios | 26 } // namespace ios |
25 | 27 |
26 #endif // IOS_PUBLIC_TEST_TEST_CHROME_PROVIDER_INITIALIZER_H_ | 28 #endif // IOS_PUBLIC_TEST_TEST_CHROME_PROVIDER_INITIALIZER_H_ |
OLD | NEW |