| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_TEST_BASE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_TEST_BASE_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_TEST_BASE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_TEST_BASE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 class Profile; | 31 class Profile; |
| 32 class TestingProfile; | 32 class TestingProfile; |
| 33 | 33 |
| 34 namespace content { | 34 namespace content { |
| 35 class BrowserContext; | 35 class BrowserContext; |
| 36 } | 36 } |
| 37 | 37 |
| 38 namespace extensions { | 38 namespace extensions { |
| 39 | 39 |
| 40 class ExtensionRegistry; | 40 class ExtensionRegistry; |
| 41 class ManagementPolicy; | |
| 42 | 41 |
| 43 // A unittest infrastructure which creates an ExtensionService. Whenever | 42 // A unittest infrastructure which creates an ExtensionService. Whenever |
| 44 // possible, use this instead of creating a browsertest. | 43 // possible, use this instead of creating a browsertest. |
| 45 // Note: Before adding methods to this class, please, please, please think about | 44 // Note: Before adding methods to this class, please, please, please think about |
| 46 // whether they should go here or in a more specific subclass. Lots of things | 45 // whether they should go here or in a more specific subclass. Lots of things |
| 47 // need an ExtensionService, but they don't all need to know how you want yours | 46 // need an ExtensionService, but they don't all need to know how you want yours |
| 48 // to be initialized. | 47 // to be initialized. |
| 49 class ExtensionServiceTestBase : public testing::Test { | 48 class ExtensionServiceTestBase : public testing::Test { |
| 50 public: | 49 public: |
| 51 struct ExtensionServiceInitParams { | 50 struct ExtensionServiceInitParams { |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 chromeos::ScopedTestCrosSettings test_cros_settings_; | 174 chromeos::ScopedTestCrosSettings test_cros_settings_; |
| 176 chromeos::ScopedTestUserManager test_user_manager_; | 175 chromeos::ScopedTestUserManager test_user_manager_; |
| 177 #endif | 176 #endif |
| 178 | 177 |
| 179 DISALLOW_COPY_AND_ASSIGN(ExtensionServiceTestBase); | 178 DISALLOW_COPY_AND_ASSIGN(ExtensionServiceTestBase); |
| 180 }; | 179 }; |
| 181 | 180 |
| 182 } // namespace extensions | 181 } // namespace extensions |
| 183 | 182 |
| 184 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_TEST_BASE_H_ | 183 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_TEST_BASE_H_ |
| OLD | NEW |