Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(262)

Side by Side Diff: webkit/support/test_webkit_platform_support.cc

Issue 12211110: Implement WebKit::WebUnitTestSupport::createLayerTreeViewForTesting() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add enum, fix NON_EXPORTED_BASE Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/support/test_webkit_platform_support.h ('k') | webkit/support/webkit_support.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « webkit/support/test_webkit_platform_support.h ('k') | webkit/support/webkit_support.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698