| 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 EXTENSIONS_BROWSER_MOCK_EXTENSION_SYSTEM_H_ | 5 #ifndef EXTENSIONS_BROWSER_MOCK_EXTENSION_SYSTEM_H_ |
| 6 #define EXTENSIONS_BROWSER_MOCK_EXTENSION_SYSTEM_H_ | 6 #define EXTENSIONS_BROWSER_MOCK_EXTENSION_SYSTEM_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" |
| 8 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 9 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
| 9 #include "extensions/browser/extension_registry_factory.h" | 10 #include "extensions/browser/extension_registry_factory.h" |
| 10 #include "extensions/browser/extension_system.h" | 11 #include "extensions/browser/extension_system.h" |
| 11 #include "extensions/browser/extension_system_provider.h" | 12 #include "extensions/browser/extension_system_provider.h" |
| 12 #include "extensions/common/one_shot_event.h" | 13 #include "extensions/common/one_shot_event.h" |
| 13 | 14 |
| 14 namespace extensions { | 15 namespace extensions { |
| 15 | 16 |
| 16 // An empty ExtensionSystem for testing. Tests that need only specific | 17 // An empty ExtensionSystem for testing. Tests that need only specific |
| 17 // parts of ExtensionSystem should derive from this class and override | 18 // parts of ExtensionSystem should derive from this class and override |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 GetServiceForBrowserContext(context, true)); | 81 GetServiceForBrowserContext(context, true)); |
| 81 } | 82 } |
| 82 | 83 |
| 83 private: | 84 private: |
| 84 DISALLOW_COPY_AND_ASSIGN(MockExtensionSystemFactory); | 85 DISALLOW_COPY_AND_ASSIGN(MockExtensionSystemFactory); |
| 85 }; | 86 }; |
| 86 | 87 |
| 87 } // namespace extensions | 88 } // namespace extensions |
| 88 | 89 |
| 89 #endif // EXTENSIONS_BROWSER_MOCK_EXTENSION_SYSTEM_H_ | 90 #endif // EXTENSIONS_BROWSER_MOCK_EXTENSION_SYSTEM_H_ |
| OLD | NEW |