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/WebDeviceMotionList
ener.h" |
9 #include "third_party/WebKit/Source/Platform/chromium/public/WebGamepads.h" | 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebGamepads.h" |
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" | 11 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" |
11 #include "third_party/WebKit/Source/Platform/chromium/public/WebUnitTestSupport.
h" | 12 #include "third_party/WebKit/Source/Platform/chromium/public/WebUnitTestSupport.
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/renderer/compositor_bindings/web_compositor_support_impl.h" | 16 #include "webkit/renderer/compositor_bindings/web_compositor_support_impl.h" |
16 #include "webkit/support/simple_database_system.h" | 17 #include "webkit/support/simple_database_system.h" |
17 #include "webkit/support/weburl_loader_mock_factory.h" | 18 #include "webkit/support/weburl_loader_mock_factory.h" |
18 #include "webkit/tools/test_shell/mock_webclipboard_impl.h" | 19 #include "webkit/tools/test_shell/mock_webclipboard_impl.h" |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 virtual void serveAsynchronousMockedRequests(); | 162 virtual void serveAsynchronousMockedRequests(); |
162 virtual WebKit::WebString webKitRootDir(); | 163 virtual WebKit::WebString webKitRootDir(); |
163 virtual WebKit::WebLayerTreeView* createLayerTreeViewForTesting(); | 164 virtual WebKit::WebLayerTreeView* createLayerTreeViewForTesting(); |
164 virtual WebKit::WebLayerTreeView* createLayerTreeViewForTesting( | 165 virtual WebKit::WebLayerTreeView* createLayerTreeViewForTesting( |
165 TestViewType type); | 166 TestViewType type); |
166 | 167 |
167 void set_threaded_compositing_enabled(bool enabled) { | 168 void set_threaded_compositing_enabled(bool enabled) { |
168 threaded_compositing_enabled_ = enabled; | 169 threaded_compositing_enabled_ = enabled; |
169 } | 170 } |
170 | 171 |
| 172 void setDeviceMotionListener(WebKit::WebDeviceMotionListener*); |
| 173 |
171 private: | 174 private: |
172 TestShellWebMimeRegistryImpl mime_registry_; | 175 TestShellWebMimeRegistryImpl mime_registry_; |
173 MockWebClipboardImpl mock_clipboard_; | 176 MockWebClipboardImpl mock_clipboard_; |
174 webkit_glue::WebFileUtilitiesImpl file_utilities_; | 177 webkit_glue::WebFileUtilitiesImpl file_utilities_; |
175 base::ScopedTempDir appcache_dir_; | 178 base::ScopedTempDir appcache_dir_; |
176 SimpleAppCacheSystem appcache_system_; | 179 SimpleAppCacheSystem appcache_system_; |
177 SimpleDatabaseSystem database_system_; | 180 SimpleDatabaseSystem database_system_; |
178 SimpleDomStorageSystem dom_storage_system_; | 181 SimpleDomStorageSystem dom_storage_system_; |
179 SimpleWebCookieJarImpl cookie_jar_; | 182 SimpleWebCookieJarImpl cookie_jar_; |
180 scoped_refptr<TestShellWebBlobRegistryImpl> blob_registry_; | 183 scoped_refptr<TestShellWebBlobRegistryImpl> blob_registry_; |
181 SimpleFileSystem file_system_; | 184 SimpleFileSystem file_system_; |
182 base::ScopedTempDir file_system_root_; | 185 base::ScopedTempDir file_system_root_; |
183 webkit_glue::MockWebHyphenator hyphenator_; | 186 webkit_glue::MockWebHyphenator hyphenator_; |
184 WebURLLoaderMockFactory url_loader_factory_; | 187 WebURLLoaderMockFactory url_loader_factory_; |
185 bool unit_test_mode_; | 188 bool unit_test_mode_; |
186 WebKit::WebGamepads gamepad_data_; | 189 WebKit::WebGamepads gamepad_data_; |
187 WebKit::Platform* shadow_platform_delegate_; | 190 WebKit::Platform* shadow_platform_delegate_; |
188 bool threaded_compositing_enabled_; | 191 bool threaded_compositing_enabled_; |
189 webkit::WebCompositorSupportImpl compositor_support_; | 192 webkit::WebCompositorSupportImpl compositor_support_; |
| 193 WebKit::WebDeviceMotionListener* device_motion_listener_; |
190 | 194 |
191 scoped_refptr<cc::ContextProvider> main_thread_contexts_; | 195 scoped_refptr<cc::ContextProvider> main_thread_contexts_; |
192 | 196 |
193 #if defined(OS_WIN) || defined(OS_MACOSX) | 197 #if defined(OS_WIN) || defined(OS_MACOSX) |
194 WebKit::WebThemeEngine* active_theme_engine_; | 198 WebKit::WebThemeEngine* active_theme_engine_; |
195 #endif | 199 #endif |
196 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport); | 200 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport); |
197 }; | 201 }; |
198 | 202 |
199 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ | 203 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ |
OLD | NEW |