| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ | 5 #ifndef WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ |
| 6 #define WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ | 6 #define WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "third_party/WebKit/public/platform/WebGamepads.h" | 9 #include "third_party/WebKit/public/platform/WebGamepads.h" |
| 10 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" | 10 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" |
| 11 #include "third_party/WebKit/public/platform/WebUnitTestSupport.h" | 11 #include "third_party/WebKit/public/platform/WebUnitTestSupport.h" |
| 12 #include "webkit/child/webkitplatformsupport_child_impl.h" | 12 #include "webkit/child/webkitplatformsupport_child_impl.h" |
| 13 #include "webkit/glue/simple_webmimeregistry_impl.h" |
| 13 #include "webkit/glue/webfileutilities_impl.h" | 14 #include "webkit/glue/webfileutilities_impl.h" |
| 14 #include "webkit/mocks/mock_webhyphenator.h" | 15 #include "webkit/mocks/mock_webhyphenator.h" |
| 15 #include "webkit/renderer/compositor_bindings/web_compositor_support_impl.h" | 16 #include "webkit/renderer/compositor_bindings/web_compositor_support_impl.h" |
| 16 #include "webkit/support/mock_webclipboard_impl.h" | 17 #include "webkit/support/mock_webclipboard_impl.h" |
| 17 #include "webkit/support/simple_appcache_system.h" | 18 #include "webkit/support/simple_appcache_system.h" |
| 18 #include "webkit/support/simple_database_system.h" | 19 #include "webkit/support/simple_database_system.h" |
| 19 #include "webkit/support/simple_dom_storage_system.h" | 20 #include "webkit/support/simple_dom_storage_system.h" |
| 20 #include "webkit/support/simple_file_system.h" | 21 #include "webkit/support/simple_file_system.h" |
| 21 #include "webkit/support/simple_webcookiejar_impl.h" | 22 #include "webkit/support/simple_webcookiejar_impl.h" |
| 22 #include "webkit/support/test_shell_webmimeregistry_impl.h" | |
| 23 #include "webkit/support/weburl_loader_mock_factory.h" | 23 #include "webkit/support/weburl_loader_mock_factory.h" |
| 24 | 24 |
| 25 class TestShellWebBlobRegistryImpl; | 25 class TestShellWebBlobRegistryImpl; |
| 26 | 26 |
| 27 namespace cc { | 27 namespace cc { |
| 28 class ContextProvider; | 28 class ContextProvider; |
| 29 } | 29 } |
| 30 | 30 |
| 31 namespace WebKit { | 31 namespace WebKit { |
| 32 class WebAudioDevice; | 32 class WebAudioDevice; |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 virtual WebKit::WebString webKitRootDir(); | 161 virtual WebKit::WebString webKitRootDir(); |
| 162 virtual WebKit::WebLayerTreeView* createLayerTreeViewForTesting(); | 162 virtual WebKit::WebLayerTreeView* createLayerTreeViewForTesting(); |
| 163 virtual WebKit::WebLayerTreeView* createLayerTreeViewForTesting( | 163 virtual WebKit::WebLayerTreeView* createLayerTreeViewForTesting( |
| 164 TestViewType type); | 164 TestViewType type); |
| 165 | 165 |
| 166 void set_threaded_compositing_enabled(bool enabled) { | 166 void set_threaded_compositing_enabled(bool enabled) { |
| 167 threaded_compositing_enabled_ = enabled; | 167 threaded_compositing_enabled_ = enabled; |
| 168 } | 168 } |
| 169 | 169 |
| 170 private: | 170 private: |
| 171 TestShellWebMimeRegistryImpl mime_registry_; | 171 webkit_glue::SimpleWebMimeRegistryImpl mime_registry_; |
| 172 MockWebClipboardImpl mock_clipboard_; | 172 MockWebClipboardImpl mock_clipboard_; |
| 173 webkit_glue::WebFileUtilitiesImpl file_utilities_; | 173 webkit_glue::WebFileUtilitiesImpl file_utilities_; |
| 174 base::ScopedTempDir appcache_dir_; | 174 base::ScopedTempDir appcache_dir_; |
| 175 SimpleAppCacheSystem appcache_system_; | 175 SimpleAppCacheSystem appcache_system_; |
| 176 SimpleDatabaseSystem database_system_; | 176 SimpleDatabaseSystem database_system_; |
| 177 SimpleDomStorageSystem dom_storage_system_; | 177 SimpleDomStorageSystem dom_storage_system_; |
| 178 SimpleWebCookieJarImpl cookie_jar_; | 178 SimpleWebCookieJarImpl cookie_jar_; |
| 179 scoped_refptr<TestShellWebBlobRegistryImpl> blob_registry_; | 179 scoped_refptr<TestShellWebBlobRegistryImpl> blob_registry_; |
| 180 SimpleFileSystem file_system_; | 180 SimpleFileSystem file_system_; |
| 181 base::ScopedTempDir file_system_root_; | 181 base::ScopedTempDir file_system_root_; |
| 182 webkit_glue::MockWebHyphenator hyphenator_; | 182 webkit_glue::MockWebHyphenator hyphenator_; |
| 183 WebURLLoaderMockFactory url_loader_factory_; | 183 WebURLLoaderMockFactory url_loader_factory_; |
| 184 bool unit_test_mode_; | 184 bool unit_test_mode_; |
| 185 WebKit::WebGamepads gamepad_data_; | 185 WebKit::WebGamepads gamepad_data_; |
| 186 WebKit::Platform* shadow_platform_delegate_; | 186 WebKit::Platform* shadow_platform_delegate_; |
| 187 bool threaded_compositing_enabled_; | 187 bool threaded_compositing_enabled_; |
| 188 webkit::WebCompositorSupportImpl compositor_support_; | 188 webkit::WebCompositorSupportImpl compositor_support_; |
| 189 | 189 |
| 190 scoped_refptr<cc::ContextProvider> main_thread_contexts_; | 190 scoped_refptr<cc::ContextProvider> main_thread_contexts_; |
| 191 | 191 |
| 192 #if defined(OS_WIN) || defined(OS_MACOSX) | 192 #if defined(OS_WIN) || defined(OS_MACOSX) |
| 193 WebKit::WebThemeEngine* active_theme_engine_; | 193 WebKit::WebThemeEngine* active_theme_engine_; |
| 194 #endif | 194 #endif |
| 195 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport); | 195 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport); |
| 196 }; | 196 }; |
| 197 | 197 |
| 198 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ | 198 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ |
| OLD | NEW |