| 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/Source/Platform/chromium/public/WebGamepads.h" | 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebGamepads.h" |
| 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" | 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" |
| 11 #include "third_party/WebKit/Source/Platform/chromium/public/WebUnitTestSupport.
h" | 11 #include "third_party/WebKit/Source/Platform/chromium/public/WebUnitTestSupport.
h" |
| 12 #include "webkit/compositor_bindings/web_compositor_support_impl.h" |
| 12 #include "webkit/glue/webfileutilities_impl.h" | 13 #include "webkit/glue/webfileutilities_impl.h" |
| 13 #include "webkit/glue/webkitplatformsupport_impl.h" | 14 #include "webkit/glue/webkitplatformsupport_impl.h" |
| 14 #include "webkit/mocks/mock_webhyphenator.h" | 15 #include "webkit/mocks/mock_webhyphenator.h" |
| 15 #include "webkit/support/simple_database_system.h" | 16 #include "webkit/support/simple_database_system.h" |
| 16 #include "webkit/support/weburl_loader_mock_factory.h" | 17 #include "webkit/support/weburl_loader_mock_factory.h" |
| 17 #include "webkit/tools/test_shell/mock_webclipboard_impl.h" | 18 #include "webkit/tools/test_shell/mock_webclipboard_impl.h" |
| 18 #include "webkit/tools/test_shell/simple_appcache_system.h" | 19 #include "webkit/tools/test_shell/simple_appcache_system.h" |
| 19 #include "webkit/tools/test_shell/simple_dom_storage_system.h" | 20 #include "webkit/tools/test_shell/simple_dom_storage_system.h" |
| 20 #include "webkit/tools/test_shell/simple_file_system.h" | 21 #include "webkit/tools/test_shell/simple_file_system.h" |
| 21 #include "webkit/tools/test_shell/simple_webcookiejar_impl.h" | 22 #include "webkit/tools/test_shell/simple_webcookiejar_impl.h" |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 #endif | 89 #endif |
| 89 | 90 |
| 90 virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D( | 91 virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D( |
| 91 const WebKit::WebGraphicsContext3D::Attributes&); | 92 const WebKit::WebGraphicsContext3D::Attributes&); |
| 92 virtual WebKit::WebGraphicsContext3D* sharedOffscreenGraphicsContext3D(); | 93 virtual WebKit::WebGraphicsContext3D* sharedOffscreenGraphicsContext3D(); |
| 93 virtual GrContext* sharedOffscreenGrContext(); | 94 virtual GrContext* sharedOffscreenGrContext(); |
| 94 virtual WebKit::WebGraphicsContext3DProvider* | 95 virtual WebKit::WebGraphicsContext3DProvider* |
| 95 createSharedOffscreenGraphicsContext3DProvider(); | 96 createSharedOffscreenGraphicsContext3DProvider(); |
| 96 virtual bool canAccelerate2dCanvas(); | 97 virtual bool canAccelerate2dCanvas(); |
| 97 virtual bool isThreadedCompositingEnabled(); | 98 virtual bool isThreadedCompositingEnabled(); |
| 99 virtual WebKit::WebCompositorSupport* compositorSupport(); |
| 98 | 100 |
| 99 WebURLLoaderMockFactory* url_loader_factory() { | 101 WebURLLoaderMockFactory* url_loader_factory() { |
| 100 return &url_loader_factory_; | 102 return &url_loader_factory_; |
| 101 } | 103 } |
| 102 | 104 |
| 103 const base::FilePath& file_system_root() const { | 105 const base::FilePath& file_system_root() const { |
| 104 return file_system_root_.path(); | 106 return file_system_root_.path(); |
| 105 } | 107 } |
| 106 | 108 |
| 107 // Mock out the WebAudioDevice since the real one | 109 // Mock out the WebAudioDevice since the real one |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 SimpleWebCookieJarImpl cookie_jar_; | 179 SimpleWebCookieJarImpl cookie_jar_; |
| 178 scoped_refptr<TestShellWebBlobRegistryImpl> blob_registry_; | 180 scoped_refptr<TestShellWebBlobRegistryImpl> blob_registry_; |
| 179 SimpleFileSystem file_system_; | 181 SimpleFileSystem file_system_; |
| 180 base::ScopedTempDir file_system_root_; | 182 base::ScopedTempDir file_system_root_; |
| 181 webkit_glue::MockWebHyphenator hyphenator_; | 183 webkit_glue::MockWebHyphenator hyphenator_; |
| 182 WebURLLoaderMockFactory url_loader_factory_; | 184 WebURLLoaderMockFactory url_loader_factory_; |
| 183 bool unit_test_mode_; | 185 bool unit_test_mode_; |
| 184 WebKit::WebGamepads gamepad_data_; | 186 WebKit::WebGamepads gamepad_data_; |
| 185 WebKit::Platform* shadow_platform_delegate_; | 187 WebKit::Platform* shadow_platform_delegate_; |
| 186 bool threaded_compositing_enabled_; | 188 bool threaded_compositing_enabled_; |
| 189 webkit::WebCompositorSupportImpl compositor_support_; |
| 187 | 190 |
| 188 scoped_refptr<cc::ContextProvider> main_thread_contexts_; | 191 scoped_refptr<cc::ContextProvider> main_thread_contexts_; |
| 189 | 192 |
| 190 #if defined(OS_WIN) || defined(OS_MACOSX) | 193 #if defined(OS_WIN) || defined(OS_MACOSX) |
| 191 WebKit::WebThemeEngine* active_theme_engine_; | 194 WebKit::WebThemeEngine* active_theme_engine_; |
| 192 #endif | 195 #endif |
| 193 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport); | 196 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport); |
| 194 }; | 197 }; |
| 195 | 198 |
| 196 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ | 199 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ |
| OLD | NEW |