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 #include "webkit/support/test_webkit_platform_support.h" | 5 #include "webkit/support/test_webkit_platform_support.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/files/scoped_temp_dir.h" | 8 #include "base/files/scoped_temp_dir.h" |
9 #include "base/metrics/stats_counters.h" | 9 #include "base/metrics/stats_counters.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDatabase.h" | 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDatabase.h" |
25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" | 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" |
26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h" | 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h" |
27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptController.h
" | 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptController.h
" |
28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityPolicy.h" | 28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityPolicy.h" |
29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageEventDispat
cher.h" | 29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageEventDispat
cher.h" |
30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageNamespace.h
" | 30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageNamespace.h
" |
31 #include "third_party/hyphen/hyphen.h" | 31 #include "third_party/hyphen/hyphen.h" |
32 #include "v8/include/v8.h" | 32 #include "v8/include/v8.h" |
33 #include "webkit/appcache/web_application_cache_host_impl.h" | 33 #include "webkit/appcache/web_application_cache_host_impl.h" |
| 34 #include "webkit/compositor_bindings/web_layer_tree_view_impl_for_testing.h" |
34 #include "webkit/database/vfs_backend.h" | 35 #include "webkit/database/vfs_backend.h" |
35 #include "webkit/glue/simple_webmimeregistry_impl.h" | 36 #include "webkit/glue/simple_webmimeregistry_impl.h" |
36 #include "webkit/glue/webclipboard_impl.h" | 37 #include "webkit/glue/webclipboard_impl.h" |
37 #include "webkit/glue/webkit_glue.h" | 38 #include "webkit/glue/webkit_glue.h" |
38 #include "webkit/glue/webkitplatformsupport_impl.h" | 39 #include "webkit/glue/webkitplatformsupport_impl.h" |
39 #include "webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h" | 40 #include "webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h" |
40 #include "webkit/gpu/webgraphicscontext3d_in_process_impl.h" | 41 #include "webkit/gpu/webgraphicscontext3d_in_process_impl.h" |
41 #include "webkit/plugins/npapi/plugin_list.h" | 42 #include "webkit/plugins/npapi/plugin_list.h" |
42 #include "webkit/support/gc_extension.h" | 43 #include "webkit/support/gc_extension.h" |
43 #include "webkit/support/simple_database_system.h" | 44 #include "webkit/support/simple_database_system.h" |
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
574 } | 575 } |
575 | 576 |
576 void TestWebKitPlatformSupport::serveAsynchronousMockedRequests() { | 577 void TestWebKitPlatformSupport::serveAsynchronousMockedRequests() { |
577 url_loader_factory_.ServeAsynchronousRequests(); | 578 url_loader_factory_.ServeAsynchronousRequests(); |
578 } | 579 } |
579 | 580 |
580 WebKit::WebString TestWebKitPlatformSupport::webKitRootDir() { | 581 WebKit::WebString TestWebKitPlatformSupport::webKitRootDir() { |
581 return webkit_support::GetWebKitRootDir(); | 582 return webkit_support::GetWebKitRootDir(); |
582 } | 583 } |
583 | 584 |
| 585 #if HAVE_CREATELAYERTREEVIEWFORTESTING |
| 586 WebKit::WebLayerTreeView* |
| 587 TestWebKitPlatformSupport::createLayerTreeViewForTesting( |
| 588 TestViewType type) { |
| 589 // TODO(jamesr): Support TestViewTypeLayoutTest. |
| 590 DCHECK_EQ(TestViewTypeUnitTest, type); |
| 591 scoped_ptr<WebKit::WebLayerTreeViewImplForTesting> view( |
| 592 new WebKit::WebLayerTreeViewImplForTesting); |
| 593 if (!view->initialize()) |
| 594 return NULL; |
| 595 return view.release(); |
| 596 } |
| 597 #endif |
| 598 |
OLD | NEW |