| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/metrics/stats_counters.h" | 8 #include "base/metrics/stats_counters.h" |
| 9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
| 10 #include "base/scoped_temp_dir.h" | 10 #include "base/scoped_temp_dir.h" |
| 11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
| 12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
| 13 #include "media/base/media.h" | 13 #include "media/base/media.h" |
| 14 #include "net/base/cookie_monster.h" | 14 #include "net/base/cookie_monster.h" |
| 15 #include "net/http/http_cache.h" | 15 #include "net/http/http_cache.h" |
| 16 #include "net/test/test_server.h" | 16 #include "net/test/test_server.h" |
| 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAudioDevice.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebAudioDevi
ce.h" |
| 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h" |
| 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebData.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebData.h" |
| 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDatabase.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDatabase.h" |
| 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystem.h" | 21 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebFileSyste
m.h" |
| 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebGamepads.h" | 22 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGamepads.
h" |
| 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBFactory.h" | 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBFactory.h" |
| 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKey.h" | 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKey.h" |
| 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKeyPath.h" | 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKeyPath.h" |
| 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" | 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" |
| 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h" | 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h" |
| 28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptController.h
" | 28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptController.h
" |
| 29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityPolicy.h" | 29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityPolicy.h" |
| 30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSerializedScriptVa
lue.h" | 30 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSerialize
dScriptValue.h" |
| 31 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageArea.h" | 31 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageArea.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 "third_party/WebKit/Source/WebKit/chromium/public/WebStorageNamespace.h
" | 33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageNamespace.h
" |
| 34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 34 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
| 35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" | 35 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" |
| 36 #include "v8/include/v8.h" | 36 #include "v8/include/v8.h" |
| 37 #include "webkit/appcache/web_application_cache_host_impl.h" | 37 #include "webkit/appcache/web_application_cache_host_impl.h" |
| 38 #include "webkit/database/vfs_backend.h" | 38 #include "webkit/database/vfs_backend.h" |
| 39 #include "webkit/extensions/v8/gc_extension.h" | 39 #include "webkit/extensions/v8/gc_extension.h" |
| 40 #include "webkit/glue/simple_webmimeregistry_impl.h" | 40 #include "webkit/glue/simple_webmimeregistry_impl.h" |
| 41 #include "webkit/glue/webclipboard_impl.h" | 41 #include "webkit/glue/webclipboard_impl.h" |
| 42 #include "webkit/glue/webkit_glue.h" | 42 #include "webkit/glue/webkit_glue.h" |
| 43 #include "webkit/glue/webkitplatformsupport_impl.h" | 43 #include "webkit/glue/webkitplatformsupport_impl.h" |
| 44 #include "webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h" | 44 #include "webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h" |
| 45 #include "webkit/gpu/webgraphicscontext3d_in_process_impl.h" | 45 #include "webkit/gpu/webgraphicscontext3d_in_process_impl.h" |
| 46 #include "webkit/plugins/npapi/plugin_list.h" | 46 #include "webkit/plugins/npapi/plugin_list.h" |
| 47 #include "webkit/support/simple_database_system.h" | 47 #include "webkit/support/simple_database_system.h" |
| 48 #include "webkit/support/test_webmessageportchannel.h" | 48 #include "webkit/support/test_webmessageportchannel.h" |
| 49 #include "webkit/support/webkit_support.h" | 49 #include "webkit/support/webkit_support.h" |
| 50 #include "webkit/support/weburl_loader_mock_factory.h" | 50 #include "webkit/support/weburl_loader_mock_factory.h" |
| 51 #include "webkit/support/web_audio_device_mock.h" | 51 #include "webkit/support/web_audio_device_mock.h" |
| 52 #include "webkit/tools/test_shell/mock_webclipboard_impl.h" | 52 #include "webkit/tools/test_shell/mock_webclipboard_impl.h" |
| 53 #include "webkit/tools/test_shell/simple_appcache_system.h" | 53 #include "webkit/tools/test_shell/simple_appcache_system.h" |
| 54 #include "webkit/tools/test_shell/simple_file_system.h" | 54 #include "webkit/tools/test_shell/simple_file_system.h" |
| 55 #include "webkit/tools/test_shell/simple_socket_stream_bridge.h" | 55 #include "webkit/tools/test_shell/simple_socket_stream_bridge.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_webcookiejar_impl.h" | 57 #include "webkit/tools/test_shell/simple_webcookiejar_impl.h" |
| 58 #include "webkit/tools/test_shell/test_shell_request_context.h" | 58 #include "webkit/tools/test_shell/test_shell_request_context.h" |
| 59 #include "webkit/tools/test_shell/test_shell_webblobregistry_impl.h" | 59 #include "webkit/tools/test_shell/test_shell_webblobregistry_impl.h" |
| 60 | 60 |
| 61 #if defined(OS_WIN) | 61 #if defined(OS_WIN) |
| 62 #include "third_party/WebKit/Source/WebKit/chromium/public/win/WebThemeEngine.h" | 62 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/win/WebTheme
Engine.h" |
| 63 #include "webkit/tools/test_shell/test_shell_webthemeengine.h" | 63 #include "webkit/tools/test_shell/test_shell_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 #elif defined(OS_POSIX) && !defined(OS_ANDROID) | 66 #elif defined(OS_POSIX) && !defined(OS_ANDROID) |
| 67 #include "third_party/WebKit/Source/WebKit/chromium/public/linux/WebThemeEngine.
h" | 67 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/linux/WebThe
meEngine.h" |
| 68 #endif | 68 #endif |
| 69 | 69 |
| 70 using WebKit::WebScriptController; | 70 using WebKit::WebScriptController; |
| 71 | 71 |
| 72 TestWebKitPlatformSupport::TestWebKitPlatformSupport(bool unit_test_mode) | 72 TestWebKitPlatformSupport::TestWebKitPlatformSupport(bool unit_test_mode) |
| 73 : unit_test_mode_(unit_test_mode) { | 73 : unit_test_mode_(unit_test_mode) { |
| 74 v8::V8::SetCounterFunction(base::StatsTable::FindLocation); | 74 v8::V8::SetCounterFunction(base::StatsTable::FindLocation); |
| 75 | 75 |
| 76 WebKit::initialize(this); | 76 WebKit::initialize(this); |
| 77 WebKit::setLayoutTestMode(true); | 77 WebKit::setLayoutTestMode(true); |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) { | 437 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) { |
| 438 return SimpleResourceLoaderBridge::Create(request_info); | 438 return SimpleResourceLoaderBridge::Create(request_info); |
| 439 } | 439 } |
| 440 | 440 |
| 441 webkit_glue::WebSocketStreamHandleBridge* | 441 webkit_glue::WebSocketStreamHandleBridge* |
| 442 TestWebKitPlatformSupport::CreateWebSocketBridge( | 442 TestWebKitPlatformSupport::CreateWebSocketBridge( |
| 443 WebKit::WebSocketStreamHandle* handle, | 443 WebKit::WebSocketStreamHandle* handle, |
| 444 webkit_glue::WebSocketStreamHandleDelegate* delegate) { | 444 webkit_glue::WebSocketStreamHandleDelegate* delegate) { |
| 445 return SimpleSocketStreamBridge::Create(handle, delegate); | 445 return SimpleSocketStreamBridge::Create(handle, delegate); |
| 446 } | 446 } |
| OLD | NEW |