| 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/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
| 10 #include "base/metrics/stats_counters.h" | 10 #include "base/metrics/stats_counters.h" |
| 11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
| 12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
| 13 #include "cc/base/thread_impl.h" | 13 #include "cc/base/thread_impl.h" |
| 14 #include "cc/output/context_provider.h" | 14 #include "cc/output/context_provider.h" |
| 15 #include "media/base/media.h" | 15 #include "media/base/media.h" |
| 16 #include "net/cookies/cookie_monster.h" | 16 #include "net/cookies/cookie_monster.h" |
| 17 #include "net/http/http_cache.h" | 17 #include "net/http/http_cache.h" |
| 18 #include "net/test/spawned_test_server/spawned_test_server.h" | 18 #include "net/test/spawned_test_server/spawned_test_server.h" |
| 19 #include "third_party/WebKit/Source/Platform/chromium/public/WebAudioDevice.h" | 19 #include "third_party/WebKit/public/platform/WebAudioDevice.h" |
| 20 #include "third_party/WebKit/Source/Platform/chromium/public/WebData.h" | 20 #include "third_party/WebKit/public/platform/WebData.h" |
| 21 #include "third_party/WebKit/Source/Platform/chromium/public/WebFileSystem.h" | 21 #include "third_party/WebKit/public/platform/WebFileSystem.h" |
| 22 #include "third_party/WebKit/Source/Platform/chromium/public/WebGamepads.h" | 22 #include "third_party/WebKit/public/platform/WebGamepads.h" |
| 23 #include "third_party/WebKit/Source/Platform/chromium/public/WebStorageArea.h" | 23 #include "third_party/WebKit/public/platform/WebStorageArea.h" |
| 24 #include "third_party/WebKit/Source/Platform/chromium/public/WebStorageNamespace
.h" | 24 #include "third_party/WebKit/public/platform/WebStorageNamespace.h" |
| 25 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" | 25 #include "third_party/WebKit/public/platform/WebString.h" |
| 26 #include "third_party/WebKit/Source/Platform/chromium/public/WebURL.h" | 26 #include "third_party/WebKit/public/platform/WebURL.h" |
| 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDatabase.h" | 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDatabase.h" |
| 28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" | 28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" |
| 29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h" | 29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h" |
| 30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptController.h
" | 30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptController.h
" |
| 31 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityPolicy.h" | 31 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityPolicy.h" |
| 32 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageEventDispat
cher.h" | 32 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageEventDispat
cher.h" |
| 33 #include "v8/include/v8.h" | 33 #include "v8/include/v8.h" |
| 34 #include "webkit/appcache/web_application_cache_host_impl.h" | 34 #include "webkit/appcache/web_application_cache_host_impl.h" |
| 35 #include "webkit/database/vfs_backend.h" | 35 #include "webkit/database/vfs_backend.h" |
| 36 #include "webkit/glue/simple_webmimeregistry_impl.h" | 36 #include "webkit/glue/simple_webmimeregistry_impl.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 53 #include "webkit/tools/test_shell/mock_webclipboard_impl.h" | 53 #include "webkit/tools/test_shell/mock_webclipboard_impl.h" |
| 54 #include "webkit/tools/test_shell/simple_appcache_system.h" | 54 #include "webkit/tools/test_shell/simple_appcache_system.h" |
| 55 #include "webkit/tools/test_shell/simple_file_system.h" | 55 #include "webkit/tools/test_shell/simple_file_system.h" |
| 56 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" | 56 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" |
| 57 #include "webkit/tools/test_shell/simple_socket_stream_bridge.h" | 57 #include "webkit/tools/test_shell/simple_socket_stream_bridge.h" |
| 58 #include "webkit/tools/test_shell/simple_webcookiejar_impl.h" | 58 #include "webkit/tools/test_shell/simple_webcookiejar_impl.h" |
| 59 #include "webkit/tools/test_shell/test_shell_request_context.h" | 59 #include "webkit/tools/test_shell/test_shell_request_context.h" |
| 60 #include "webkit/tools/test_shell/test_shell_webblobregistry_impl.h" | 60 #include "webkit/tools/test_shell/test_shell_webblobregistry_impl.h" |
| 61 | 61 |
| 62 #if defined(OS_WIN) | 62 #if defined(OS_WIN) |
| 63 #include "third_party/WebKit/Source/Platform/chromium/public/win/WebThemeEngine.
h" | 63 #include "third_party/WebKit/public/platform/win/WebThemeEngine.h" |
| 64 #elif defined(OS_MACOSX) | 64 #elif defined(OS_MACOSX) |
| 65 #include "base/mac/mac_util.h" | 65 #include "base/mac/mac_util.h" |
| 66 #endif | 66 #endif |
| 67 | 67 |
| 68 using WebKit::WebScriptController; | 68 using WebKit::WebScriptController; |
| 69 using webkit::WebLayerTreeViewImplForTesting; | 69 using webkit::WebLayerTreeViewImplForTesting; |
| 70 | 70 |
| 71 TestWebKitPlatformSupport::TestWebKitPlatformSupport(bool unit_test_mode, | 71 TestWebKitPlatformSupport::TestWebKitPlatformSupport(bool unit_test_mode, |
| 72 WebKit::Platform* shadow_platform_delegate) | 72 WebKit::Platform* shadow_platform_delegate) |
| 73 : unit_test_mode_(unit_test_mode), | 73 : unit_test_mode_(unit_test_mode), |
| (...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 return view.release(); | 535 return view.release(); |
| 536 } | 536 } |
| 537 | 537 |
| 538 WebKit::WebLayerTreeView* | 538 WebKit::WebLayerTreeView* |
| 539 TestWebKitPlatformSupport::createLayerTreeViewForTesting( | 539 TestWebKitPlatformSupport::createLayerTreeViewForTesting( |
| 540 TestViewType type) { | 540 TestViewType type) { |
| 541 DCHECK_EQ(TestViewTypeUnitTest, type); | 541 DCHECK_EQ(TestViewTypeUnitTest, type); |
| 542 return createLayerTreeViewForTesting(); | 542 return createLayerTreeViewForTesting(); |
| 543 } | 543 } |
| 544 | 544 |
| OLD | NEW |