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_EXTENSIONS_TEST_H_ | 5 #ifndef EXTENSIONS_BROWSER_EXTENSIONS_TEST_H_ |
6 #define EXTENSIONS_BROWSER_EXTENSIONS_TEST_H_ | 6 #define EXTENSIONS_BROWSER_EXTENSIONS_TEST_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "content/public/test/test_renderer_host.h" | 11 #include "content/public/test/test_renderer_host.h" |
| 12 #include "extensions/browser/mock_extension_system.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
13 | 14 |
14 namespace content { | 15 namespace content { |
15 class BrowserContext; | 16 class BrowserContext; |
16 class ContentBrowserClient; | 17 class ContentBrowserClient; |
17 class ContentClient; | 18 class ContentClient; |
18 class ContentUtilityClient; | 19 class ContentUtilityClient; |
19 class RenderViewHostTestEnabler; | 20 class RenderViewHostTestEnabler; |
20 } | 21 } |
21 | 22 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 scoped_ptr<content::ContentClient> content_client_; | 55 scoped_ptr<content::ContentClient> content_client_; |
55 scoped_ptr<content::ContentUtilityClient> content_utility_client_; | 56 scoped_ptr<content::ContentUtilityClient> content_utility_client_; |
56 scoped_ptr<content::ContentBrowserClient> content_browser_client_; | 57 scoped_ptr<content::ContentBrowserClient> content_browser_client_; |
57 scoped_ptr<content::BrowserContext> browser_context_; | 58 scoped_ptr<content::BrowserContext> browser_context_; |
58 scoped_ptr<TestExtensionsBrowserClient> extensions_browser_client_; | 59 scoped_ptr<TestExtensionsBrowserClient> extensions_browser_client_; |
59 | 60 |
60 // The existence of this object enables tests via | 61 // The existence of this object enables tests via |
61 // RenderViewHostTester. | 62 // RenderViewHostTester. |
62 content::RenderViewHostTestEnabler rvh_test_enabler_; | 63 content::RenderViewHostTestEnabler rvh_test_enabler_; |
63 | 64 |
| 65 MockExtensionSystemFactory<MockExtensionSystem> extension_system_factory_; |
| 66 |
64 DISALLOW_COPY_AND_ASSIGN(ExtensionsTest); | 67 DISALLOW_COPY_AND_ASSIGN(ExtensionsTest); |
65 }; | 68 }; |
66 | 69 |
67 } // namespace extensions | 70 } // namespace extensions |
68 | 71 |
69 #endif // EXTENSIONS_BROWSER_EXTENSIONS_TEST_H_ | 72 #endif // EXTENSIONS_BROWSER_EXTENSIONS_TEST_H_ |
OLD | NEW |