diff options
-rw-r--r-- | android_webview/tools/third_party_files_whitelist.txt | 4 | ||||
-rw-r--r-- | chrome/chrome_browser.gypi | 2 | ||||
-rw-r--r-- | chrome/chrome_tests.gypi | 4 | ||||
-rw-r--r-- | chrome/chrome_tests_unit.gypi | 2 | ||||
-rw-r--r-- | content/content_plugin.gypi | 2 | ||||
-rw-r--r-- | content/content_renderer.gypi | 2 | ||||
-rw-r--r-- | content/content_tests.gypi | 6 | ||||
-rw-r--r-- | content/shell/renderer/shell_content_renderer_client.cc | 4 | ||||
-rw-r--r-- | webkit/glue/webkit_glue.gypi | 4 | ||||
-rw-r--r-- | webkit/plugins/webkit_plugins.gyp | 246 | ||||
-rw-r--r-- | webkit/plugins/webkit_plugins.gypi | 80 | ||||
-rw-r--r-- | webkit/support/mac/DumpRenderTreePasteboard.h (renamed from webkit/tools/test_shell/mac/DumpRenderTreePasteboard.h) | 0 | ||||
-rw-r--r-- | webkit/support/mac/DumpRenderTreePasteboard.m (renamed from webkit/tools/test_shell/mac/DumpRenderTreePasteboard.m) | 0 | ||||
-rw-r--r-- | webkit/support/mock_webclipboard_impl.cc (renamed from webkit/tools/test_shell/mock_webclipboard_impl.cc) | 2 | ||||
-rw-r--r-- | webkit/support/mock_webclipboard_impl.h (renamed from webkit/tools/test_shell/mock_webclipboard_impl.h) | 6 | ||||
-rw-r--r-- | webkit/support/platform_support_android.cc | 2 | ||||
-rw-r--r-- | webkit/support/platform_support_mac.mm | 4 | ||||
-rw-r--r-- | webkit/support/simple_appcache_system.cc (renamed from webkit/tools/test_shell/simple_appcache_system.cc) | 4 | ||||
-rw-r--r-- | webkit/support/simple_appcache_system.h (renamed from webkit/tools/test_shell/simple_appcache_system.h) | 6 | ||||
-rw-r--r-- | webkit/support/simple_clipboard_impl.cc (renamed from webkit/tools/test_shell/simple_clipboard_impl.cc) | 2 | ||||
-rw-r--r-- | webkit/support/simple_clipboard_impl.h (renamed from webkit/tools/test_shell/simple_clipboard_impl.h) | 6 | ||||
-rw-r--r-- | webkit/support/simple_dom_storage_system.cc (renamed from webkit/tools/test_shell/simple_dom_storage_system.cc) | 2 | ||||
-rw-r--r-- | webkit/support/simple_dom_storage_system.h (renamed from webkit/tools/test_shell/simple_dom_storage_system.h) | 6 | ||||
-rw-r--r-- | webkit/support/simple_file_system.cc (renamed from webkit/tools/test_shell/simple_file_system.cc) | 4 | ||||
-rw-r--r-- | webkit/support/simple_file_system.h (renamed from webkit/tools/test_shell/simple_file_system.h) | 6 | ||||
-rw-r--r-- | webkit/support/simple_file_writer.cc (renamed from webkit/tools/test_shell/simple_file_writer.cc) | 4 | ||||
-rw-r--r-- | webkit/support/simple_file_writer.h (renamed from webkit/tools/test_shell/simple_file_writer.h) | 6 | ||||
-rw-r--r-- | webkit/support/simple_resource_loader_bridge.cc (renamed from webkit/tools/test_shell/simple_resource_loader_bridge.cc) | 14 | ||||
-rw-r--r-- | webkit/support/simple_resource_loader_bridge.h (renamed from webkit/tools/test_shell/simple_resource_loader_bridge.h) | 6 | ||||
-rw-r--r-- | webkit/support/simple_socket_stream_bridge.cc (renamed from webkit/tools/test_shell/simple_socket_stream_bridge.cc) | 6 | ||||
-rw-r--r-- | webkit/support/simple_socket_stream_bridge.h (renamed from webkit/tools/test_shell/simple_socket_stream_bridge.h) | 6 | ||||
-rw-r--r-- | webkit/support/simple_webcookiejar_impl.cc (renamed from webkit/tools/test_shell/simple_webcookiejar_impl.cc) | 4 | ||||
-rw-r--r-- | webkit/support/simple_webcookiejar_impl.h (renamed from webkit/tools/test_shell/simple_webcookiejar_impl.h) | 6 | ||||
-rw-r--r-- | webkit/support/test_shell_dummy.cc (renamed from webkit/tools/test_shell/test_shell_dummy.cc) | 0 | ||||
-rw-r--r-- | webkit/support/test_shell_request_context.cc (renamed from webkit/tools/test_shell/test_shell_request_context.cc) | 9 | ||||
-rw-r--r-- | webkit/support/test_shell_request_context.h (renamed from webkit/tools/test_shell/test_shell_request_context.h) | 6 | ||||
-rw-r--r-- | webkit/support/test_shell_webblobregistry_impl.cc (renamed from webkit/tools/test_shell/test_shell_webblobregistry_impl.cc) | 2 | ||||
-rw-r--r-- | webkit/support/test_shell_webblobregistry_impl.h (renamed from webkit/tools/test_shell/test_shell_webblobregistry_impl.h) | 6 | ||||
-rw-r--r-- | webkit/support/test_shell_webmimeregistry_impl.cc (renamed from webkit/tools/test_shell/test_shell_webmimeregistry_impl.cc) | 2 | ||||
-rw-r--r-- | webkit/support/test_shell_webmimeregistry_impl.h (renamed from webkit/tools/test_shell/test_shell_webmimeregistry_impl.h) | 6 | ||||
-rw-r--r-- | webkit/support/test_webkit_platform_support.cc | 16 | ||||
-rw-r--r-- | webkit/support/test_webkit_platform_support.h | 12 | ||||
-rw-r--r-- | webkit/support/webkit_support.cc | 8 | ||||
-rw-r--r-- | webkit/support/webkit_support.gypi | 52 | ||||
-rw-r--r-- | webkit/tools/test_shell/DEPS | 7 | ||||
-rw-r--r-- | webkit/tools/test_shell/test_shell.gypi | 198 | ||||
-rw-r--r-- | webkit/webkit.gyp | 26 |
47 files changed, 398 insertions, 410 deletions
diff --git a/android_webview/tools/third_party_files_whitelist.txt b/android_webview/tools/third_party_files_whitelist.txt index 7cf9d42..eb5dfe9 100644 --- a/android_webview/tools/third_party_files_whitelist.txt +++ b/android_webview/tools/third_party_files_whitelist.txt @@ -197,6 +197,6 @@ webkit/glue/multipart_response_delegate.h # been re-licensed under the Chromium license. webkit/support/webkit_support_gfx.cc # Copyright Apple, Inc, Graham Dennis and Eric Seidel; BSD license. Tool only -webkit/tools/test_shell/mac/DumpRenderTreePasteboard.h +webkit/support/mac/DumpRenderTreePasteboard.h # Copyright Apple, Inc, Graham Dennis and Eric Seidel; BSD license. Tool only -webkit/tools/test_shell/mac/DumpRenderTreePasteboard.m +webkit/support/mac/DumpRenderTreePasteboard.m diff --git a/chrome/chrome_browser.gypi b/chrome/chrome_browser.gypi index ba8d9c2..f4ffbb9 100644 --- a/chrome/chrome_browser.gypi +++ b/chrome/chrome_browser.gypi @@ -2378,8 +2378,8 @@ '../ui/surface/surface.gyp:surface', '../ui/web_dialogs/web_dialogs.gyp:web_dialogs', '../v8/tools/gyp/v8.gyp:v8', + '../webkit/plugins/webkit_plugins.gyp:plugins_common', '../webkit/support/webkit_support.gyp:glue_common', - '../webkit/support/webkit_support.gyp:plugins_common', '../webkit/support/webkit_support.gyp:webkit_resources', '../webkit/support/webkit_support.gyp:webkit_storage', ], diff --git a/chrome/chrome_tests.gypi b/chrome/chrome_tests.gypi index da91827..dd9b024 100644 --- a/chrome/chrome_tests.gypi +++ b/chrome/chrome_tests.gypi @@ -1175,7 +1175,7 @@ '../third_party/safe_browsing/safe_browsing.gyp:safe_browsing', '../ui/web_dialogs/web_dialogs.gyp:web_dialogs_test_support', '../v8/tools/gyp/v8.gyp:v8', - '../webkit/webkit.gyp:test_shell_test_support', + '../webkit/plugins/webkit_plugins.gyp:test_mock_plugin_list', # Runtime dependencies '../ppapi/ppapi_internal.gyp:ppapi_tests', '../third_party/mesa/mesa.gyp:osmesa', @@ -2061,7 +2061,7 @@ 'dependencies': [ # build time dependency. '../v8/tools/gyp/v8.gyp:v8_shell#host', - '../webkit/webkit.gyp:copy_npapi_test_plugin', + '../webkit/plugins/webkit_plugins.gyp:copy_npapi_test_plugin', ], }], ['enable_app_list==0', { diff --git a/chrome/chrome_tests_unit.gypi b/chrome/chrome_tests_unit.gypi index 1c49faf..1375425 100644 --- a/chrome/chrome_tests_unit.gypi +++ b/chrome/chrome_tests_unit.gypi @@ -1861,7 +1861,7 @@ '../tools/json_schema_compiler/test/json_schema_compiler_tests.gyp:json_schema_compiler_tests', '../ui/gl/gl.gyp:gl', '../v8/tools/gyp/v8.gyp:v8', - '../webkit/webkit.gyp:test_shell_test_support', + '../webkit/plugins/webkit_plugins.gyp:test_mock_plugin_list', ], # TODO(scr): Use this in browser_tests too. 'includes': [ diff --git a/content/content_plugin.gypi b/content/content_plugin.gypi index 6ff0057..453879a 100644 --- a/content/content_plugin.gypi +++ b/content/content_plugin.gypi @@ -8,9 +8,9 @@ 'dependencies': [ '../skia/skia.gyp:skia', '../third_party/npapi/npapi.gyp:npapi', + '../webkit/plugins/webkit_plugins.gyp:plugins_common', '../webkit/support/webkit_support.gyp:glue', '../webkit/support/webkit_support.gyp:plugins', - '../webkit/support/webkit_support.gyp:plugins_common', ], 'include_dirs': [ '<(INTERMEDIATE_DIR)', diff --git a/content/content_renderer.gypi b/content/content_renderer.gypi index 03b5db1..b25b0f8 100644 --- a/content/content_renderer.gypi +++ b/content/content_renderer.gypi @@ -19,11 +19,11 @@ '../webkit/common/gpu/webkit_gpu.gyp:webkit_gpu', '../webkit/renderer/compositor_bindings/compositor_bindings.gyp:webkit_compositor_bindings', '../webkit/renderer/compositor_bindings/compositor_bindings.gyp:webkit_compositor_support', + '../webkit/plugins/webkit_plugins.gyp:plugins_common', '../webkit/support/webkit_support.gyp:glue', '../webkit/support/webkit_support.gyp:glue_common', '../webkit/support/webkit_support.gyp:glue_renderer', '../webkit/support/webkit_support.gyp:plugins', - '../webkit/support/webkit_support.gyp:plugins_common', '../webkit/support/webkit_support.gyp:webkit_common', '../webkit/support/webkit_support.gyp:webkit_media', ], diff --git a/content/content_tests.gypi b/content/content_tests.gypi index 2cdb9ad..91504d7 100644 --- a/content/content_tests.gypi +++ b/content/content_tests.gypi @@ -562,16 +562,16 @@ '../third_party/libjingle/libjingle.gyp:libjingle', '../ui/gl/gl.gyp:gl', '../v8/tools/gyp/v8.gyp:v8', + '../webkit/plugins/webkit_plugins.gyp:plugins_common', + '../webkit/plugins/webkit_plugins.gyp:test_mock_plugin_list', '../webkit/support/webkit_support.gyp:glue', '../webkit/support/webkit_support.gyp:glue_common', '../webkit/support/webkit_support.gyp:glue_renderer', '../webkit/support/webkit_support.gyp:plugins', - '../webkit/support/webkit_support.gyp:plugins_common', '../webkit/support/webkit_support.gyp:webkit_base', '../webkit/support/webkit_support.gyp:webkit_common', '../webkit/support/webkit_support.gyp:webkit_media', '../webkit/support/webkit_support.gyp:webkit_storage', - '../webkit/webkit.gyp:test_shell_test_support', ], }], ['enable_plugins==0', { @@ -931,7 +931,7 @@ # npapi test plugin doesn't build on android or ios 'dependencies': [ # Runtime dependencies - '../webkit/webkit.gyp:copy_npapi_test_plugin', + '../webkit/plugins/webkit_plugins.gyp:copy_npapi_test_plugin', '../webkit/webkit.gyp:pull_in_copy_TestNetscapePlugIn', ], }], diff --git a/content/shell/renderer/shell_content_renderer_client.cc b/content/shell/renderer/shell_content_renderer_client.cc index acc103e..f317b75 100644 --- a/content/shell/renderer/shell_content_renderer_client.cc +++ b/content/shell/renderer/shell_content_renderer_client.cc @@ -22,8 +22,8 @@ #include "third_party/WebKit/Tools/DumpRenderTree/chromium/TestRunner/public/WebTestRunner.h" #include "v8/include/v8.h" #include "webkit/mocks/mock_webhyphenator.h" -#include "webkit/tools/test_shell/mock_webclipboard_impl.h" -#include "webkit/tools/test_shell/test_shell_webmimeregistry_impl.h" +#include "webkit/support/mock_webclipboard_impl.h" +#include "webkit/support/test_shell_webmimeregistry_impl.h" using WebKit::WebClipboard; using WebKit::WebFrame; diff --git a/webkit/glue/webkit_glue.gypi b/webkit/glue/webkit_glue.gypi index 7c993b5..df8346d 100644 --- a/webkit/glue/webkit_glue.gypi +++ b/webkit/glue/webkit_glue.gypi @@ -181,10 +181,10 @@ '<(DEPTH)/ui/ui.gyp:ui_resources', '<(DEPTH)/url/url.gyp:url_lib', '<(DEPTH)/v8/tools/gyp/v8.gyp:v8', - '<(DEPTH)/webkit/renderer/compositor_bindings/compositor_bindings.gyp:webkit_compositor_support', '<(DEPTH)/webkit/common/user_agent/webkit_user_agent.gyp:user_agent', + '<(DEPTH)/webkit/plugins/webkit_plugins.gyp:plugins_common', + '<(DEPTH)/webkit/renderer/compositor_bindings/compositor_bindings.gyp:webkit_compositor_support', 'glue_common', - 'plugins_common', 'plugins', 'webkit_base', 'webkit_common', diff --git a/webkit/plugins/webkit_plugins.gyp b/webkit/plugins/webkit_plugins.gyp new file mode 100644 index 0000000..f0097cd --- /dev/null +++ b/webkit/plugins/webkit_plugins.gyp @@ -0,0 +1,246 @@ +# Copyright (c) 2013 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +{ + 'targets': [ + { + 'target_name': 'plugins_common', + 'type': 'static_library', + 'defines': [ + 'WEBKIT_PLUGINS_IMPLEMENTATION', + ], + 'include_dirs': [ + '<(INTERMEDIATE_DIR)', + '<(SHARED_INTERMEDIATE_DIR)/ui', + ], + 'dependencies': [ + '<(DEPTH)/base/base.gyp:base_i18n', + '<(DEPTH)/base/base.gyp:base', + '<(DEPTH)/base/base.gyp:base_static', + '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', + '<(DEPTH)/net/net.gyp:net', + '<(DEPTH)/ui/ui.gyp:ui', + '<(DEPTH)/ui/ui.gyp:ui_resources', + ], + 'sources': [ + '../plugins/webplugininfo.cc', + '../plugins/webplugininfo.h', + '../plugins/plugin_constants.cc', + '../plugins/plugin_constants.h', + '../plugins/plugin_switches.cc', + '../plugins/plugin_switches.h', + '../plugins/npapi/plugin_constants_win.cc', + '../plugins/npapi/plugin_constants_win.h', + '../plugins/npapi/plugin_list.cc', + '../plugins/npapi/plugin_list.h', + '../plugins/npapi/plugin_list_mac.mm', + '../plugins/npapi/plugin_list_posix.cc', + '../plugins/npapi/plugin_list_win.cc', + '../plugins/npapi/plugin_utils.cc', + '../plugins/npapi/plugin_utils.h', + '../common/plugins/ppapi/ppapi_utils.cc', + '../common/plugins/ppapi/ppapi_utils.h', + ], + 'conditions': [ + ['toolkit_uses_gtk == 1', { + 'dependencies': [ + '<(DEPTH)/build/linux/system.gyp:gtk', + ], + 'sources/': [['exclude', '_x11\\.cc$']], + }], + ['OS!="mac"', { + 'sources/': [['exclude', '_mac\\.(cc|mm)$']], + }, { # else: OS=="mac" + 'sources/': [['exclude', 'plugin_list_posix\\.cc$']], + 'link_settings': { + 'libraries': [ + '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework', + ], + }, + }], + ['OS!="win"', { + 'sources/': [['exclude', '_win\\.cc$']], + }, { # else: OS=="win" + # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. + 'msvs_disabled_warnings': [ 4800, 4267 ], + 'sources/': [['exclude', '_posix\\.cc$']], + 'include_dirs': [ + '<(DEPTH)/third_party/wtl/include', + ], + }], + ], + }, + { + 'target_name': 'test_mock_plugin_list', + 'type': 'static_library', + 'dependencies': [ + 'plugins_common' + ], + 'include_dirs': [ + '../..', + ], + 'sources': [ + 'npapi/mock_plugin_list.cc', + 'npapi/mock_plugin_list.h', + ] + }, + ], + 'conditions': [ + ['OS!="android" and OS!="ios"', { + # npapi test plugin doesn't build on android or ios + 'targets': [ + { + 'target_name': 'npapi_test_common', + 'type': 'static_library', + 'dependencies': [ + '<(DEPTH)/base/base.gyp:base', + '<(DEPTH)/third_party/npapi/npapi.gyp:npapi', + ], + 'sources': [ + 'npapi/test/npapi_constants.cc', + 'npapi/test/npapi_constants.h', + 'npapi/test/plugin_client.cc', + 'npapi/test/plugin_client.h', + 'npapi/test/plugin_test.cc', + 'npapi/test/plugin_test.h', + 'npapi/test/plugin_test_factory.h', + ], + 'export_dependent_settings': [ + '<(DEPTH)/base/base.gyp:base', + ], + }, + { + 'target_name': 'npapi_test_plugin', + 'type': 'loadable_module', + 'variables': { + 'chromium_code': 1, + }, + 'mac_bundle': 1, + 'dependencies': [ + '<(DEPTH)/third_party/icu/icu.gyp:icuuc', + 'npapi_test_common', + ], + 'sources': [ + 'npapi/test/npapi_test.cc', + 'npapi/test/npapi_test.def', + 'npapi/test/npapi_test.rc', + 'npapi/test/plugin_arguments_test.cc', + 'npapi/test/plugin_arguments_test.h', + 'npapi/test/plugin_create_instance_in_paint.cc', + 'npapi/test/plugin_create_instance_in_paint.h', + 'npapi/test/plugin_delete_plugin_in_deallocate_test.cc', + 'npapi/test/plugin_delete_plugin_in_deallocate_test.h', + 'npapi/test/plugin_delete_plugin_in_stream_test.cc', + 'npapi/test/plugin_delete_plugin_in_stream_test.h', + 'npapi/test/plugin_execute_stream_javascript.cc', + 'npapi/test/plugin_execute_stream_javascript.h', + 'npapi/test/plugin_get_javascript_url_test.cc', + 'npapi/test/plugin_get_javascript_url_test.h', + 'npapi/test/plugin_get_javascript_url2_test.cc', + 'npapi/test/plugin_get_javascript_url2_test.h', + 'npapi/test/plugin_geturl_test.cc', + 'npapi/test/plugin_geturl_test.h', + 'npapi/test/plugin_javascript_open_popup.cc', + 'npapi/test/plugin_javascript_open_popup.h', + 'npapi/test/plugin_new_fails_test.cc', + 'npapi/test/plugin_new_fails_test.h', + 'npapi/test/plugin_npobject_identity_test.cc', + 'npapi/test/plugin_npobject_identity_test.h', + 'npapi/test/plugin_npobject_lifetime_test.cc', + 'npapi/test/plugin_npobject_lifetime_test.h', + 'npapi/test/plugin_npobject_proxy_test.cc', + 'npapi/test/plugin_npobject_proxy_test.h', + 'npapi/test/plugin_schedule_timer_test.cc', + 'npapi/test/plugin_schedule_timer_test.h', + 'npapi/test/plugin_setup_test.cc', + 'npapi/test/plugin_setup_test.h', + 'npapi/test/plugin_thread_async_call_test.cc', + 'npapi/test/plugin_thread_async_call_test.h', + 'npapi/test/plugin_windowed_test.cc', + 'npapi/test/plugin_windowed_test.h', + 'npapi/test/plugin_private_test.cc', + 'npapi/test/plugin_private_test.h', + 'npapi/test/plugin_test_factory.cc', + 'npapi/test/plugin_window_size_test.cc', + 'npapi/test/plugin_window_size_test.h', + 'npapi/test/plugin_windowless_test.cc', + 'npapi/test/plugin_windowless_test.h', + 'npapi/test/resource.h', + ], + 'include_dirs': [ + '../..', + ], + 'xcode_settings': { + 'INFOPLIST_FILE': '<(DEPTH)/webkit/plugins/npapi/test/Info.plist', + }, + 'conditions': [ + ['OS!="win"', { + 'sources!': [ + # TODO(port): Port these. + # plugin_npobject_lifetime_test.cc has win32-isms + # (HWND, CALLBACK). + 'npapi/test/plugin_npobject_lifetime_test.cc', + # The window APIs are necessarily platform-specific. + 'npapi/test/plugin_window_size_test.cc', + 'npapi/test/plugin_windowed_test.cc', + # Seems windows specific. + 'npapi/test/plugin_create_instance_in_paint.cc', + 'npapi/test/plugin_create_instance_in_paint.h', + # windows-specific resources + 'npapi/test/npapi_test.def', + 'npapi/test/npapi_test.rc', + ], + }], + ['OS=="mac"', { + 'product_extension': 'plugin', + 'link_settings': { + 'libraries': [ + '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', + ], + }, + }], + ['os_posix == 1 and OS != "mac" and (target_arch == "x64" or target_arch == "arm")', { + # Shared libraries need -fPIC on x86-64 + 'cflags': ['-fPIC'] + }], + ], + }, + { + 'target_name': 'copy_npapi_test_plugin', + 'type': 'none', + 'dependencies': [ + 'npapi_test_plugin', + ], + 'conditions': [ + ['OS=="win"', { + 'copies': [ + { + 'destination': '<(PRODUCT_DIR)/plugins', + 'files': ['<(PRODUCT_DIR)/npapi_test_plugin.dll'], + }, + ], + }], + ['OS=="mac"', { + 'copies': [ + { + 'destination': '<(PRODUCT_DIR)/plugins/', + 'files': ['<(PRODUCT_DIR)/npapi_test_plugin.plugin'], + }, + ] + }], + ['os_posix == 1 and OS != "mac"', { + 'copies': [ + { + 'destination': '<(PRODUCT_DIR)/plugins', + 'files': ['<(PRODUCT_DIR)/libnpapi_test_plugin.so'], + }, + ], + }], + ], + }, + ], + }], + ], +} + diff --git a/webkit/plugins/webkit_plugins.gypi b/webkit/plugins/webkit_plugins.gypi index 5c1ef0e..56b952c 100644 --- a/webkit/plugins/webkit_plugins.gypi +++ b/webkit/plugins/webkit_plugins.gypi @@ -5,74 +5,6 @@ { 'targets': [ { - 'target_name': 'plugins_common', - 'type': 'static_library', - 'defines': [ - 'WEBKIT_PLUGINS_IMPLEMENTATION', - ], - 'include_dirs': [ - '<(INTERMEDIATE_DIR)', - '<(SHARED_INTERMEDIATE_DIR)/ui', - ], - 'dependencies': [ - '<(DEPTH)/base/base.gyp:base_i18n', - '<(DEPTH)/base/base.gyp:base', - '<(DEPTH)/base/base.gyp:base_static', - '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', - '<(DEPTH)/net/net.gyp:net', - '<(DEPTH)/ui/ui.gyp:ui', - '<(DEPTH)/ui/ui.gyp:ui_resources', - ], - 'sources': [ - '../plugins/webplugininfo.cc', - '../plugins/webplugininfo.h', - '../plugins/plugin_constants.cc', - '../plugins/plugin_constants.h', - '../plugins/plugin_switches.cc', - '../plugins/plugin_switches.h', - '../plugins/npapi/plugin_constants_win.cc', - '../plugins/npapi/plugin_constants_win.h', - '../plugins/npapi/plugin_list.cc', - '../plugins/npapi/plugin_list.h', - '../plugins/npapi/plugin_list_mac.mm', - '../plugins/npapi/plugin_list_posix.cc', - '../plugins/npapi/plugin_list_win.cc', - '../plugins/npapi/plugin_utils.cc', - '../plugins/npapi/plugin_utils.h', - '../common/plugins/ppapi/ppapi_utils.cc', - '../common/plugins/ppapi/ppapi_utils.h', - ], - 'conditions': [ - ['toolkit_uses_gtk == 1', { - 'dependencies': [ - '<(DEPTH)/build/linux/system.gyp:gtk', - ], - 'sources/': [['exclude', '_x11\\.cc$']], - }], - ['OS!="mac"', { - 'sources/': [['exclude', '_mac\\.(cc|mm)$']], - }, { # else: OS=="mac" - 'sources/': [['exclude', 'plugin_list_posix\\.cc$']], - 'link_settings': { - 'libraries': [ - '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework', - ], - }, - }], - ['OS!="win"', { - 'sources/': [['exclude', '_win\\.cc$']], - }, { # else: OS=="win" - # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. - 'msvs_disabled_warnings': [ 4800, 4267 ], - 'sources/': [['exclude', '_posix\\.cc$']], - 'include_dirs': [ - '<(DEPTH)/third_party/wtl/include', - ], - }], - ], - }, - - { 'target_name': 'plugins', 'type': '<(component)', 'defines': [ @@ -104,9 +36,9 @@ '<(DEPTH)/v8/tools/gyp/v8.gyp:v8', '<(DEPTH)/third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit', '<(DEPTH)/webkit/common/user_agent/webkit_user_agent.gyp:user_agent', + '<(DEPTH)/webkit/plugins/webkit_plugins.gyp:plugins_common', '<(DEPTH)/webkit/renderer/compositor_bindings/compositor_bindings.gyp:webkit_compositor_support', 'glue_common', - 'plugins_common', 'webkit_base', 'webkit_common', 'webkit_storage', @@ -248,9 +180,6 @@ '<(DEPTH)/build/linux/system.gyp:gtk', ], 'sources/': [['exclude', '_x11\\.cc$']], - 'sources!': [ - 'plugins/plugin_stubs.cc', - ], }], ['use_aura==1', { 'sources/': [ @@ -287,11 +216,8 @@ 'include_dirs': [ '<(DEPTH)/third_party/wtl/include', ], - 'sources!': [ - 'plugins/plugin_stubs.cc', - ], }], ], - } - ], + }, + ] } diff --git a/webkit/tools/test_shell/mac/DumpRenderTreePasteboard.h b/webkit/support/mac/DumpRenderTreePasteboard.h index 41796ea3..41796ea3 100644 --- a/webkit/tools/test_shell/mac/DumpRenderTreePasteboard.h +++ b/webkit/support/mac/DumpRenderTreePasteboard.h diff --git a/webkit/tools/test_shell/mac/DumpRenderTreePasteboard.m b/webkit/support/mac/DumpRenderTreePasteboard.m index 3e3cf1c..3e3cf1c 100644 --- a/webkit/tools/test_shell/mac/DumpRenderTreePasteboard.m +++ b/webkit/support/mac/DumpRenderTreePasteboard.m diff --git a/webkit/tools/test_shell/mock_webclipboard_impl.cc b/webkit/support/mock_webclipboard_impl.cc index ec78d0a..e71681c 100644 --- a/webkit/tools/test_shell/mock_webclipboard_impl.cc +++ b/webkit/support/mock_webclipboard_impl.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "webkit/tools/test_shell/mock_webclipboard_impl.h" +#include "webkit/support/mock_webclipboard_impl.h" #include <algorithm> diff --git a/webkit/tools/test_shell/mock_webclipboard_impl.h b/webkit/support/mock_webclipboard_impl.h index 1ec33b2..845d1bf 100644 --- a/webkit/tools/test_shell/mock_webclipboard_impl.h +++ b/webkit/support/mock_webclipboard_impl.h @@ -7,8 +7,8 @@ // clipboard, which allows for running them in parallel and having the tests // not interact with actual user actions. -#ifndef WEBKIT_TOOLS_TEST_SHELL_MOCK_WEBCLIPBOARD_IMPL_H_ -#define WEBKIT_TOOLS_TEST_SHELL_MOCK_WEBCLIPBOARD_IMPL_H_ +#ifndef WEBKIT_SUPPORT_MOCK_WEBCLIPBOARD_IMPL_H_ +#define WEBKIT_SUPPORT_MOCK_WEBCLIPBOARD_IMPL_H_ #include <map> @@ -57,4 +57,4 @@ class MockWebClipboardImpl : public WebKit::WebClipboard { bool m_writeSmartPaste; }; -#endif // WEBKIT_TOOLS_TEST_SHELL_MOCK_WEBCLIPBOARD_IMPL_H_ +#endif // WEBKIT_SUPPORT_MOCK_WEBCLIPBOARD_IMPL_H_ diff --git a/webkit/support/platform_support_android.cc b/webkit/support/platform_support_android.cc index 3c1e2c4..581c974 100644 --- a/webkit/support/platform_support_android.cc +++ b/webkit/support/platform_support_android.cc @@ -20,8 +20,8 @@ #include "ui/android/ui_jni_registrar.h" #include "ui/base/resource/resource_bundle.h" #include "ui/gl/android/gl_jni_registrar.h" +#include "webkit/support/simple_resource_loader_bridge.h" #include "webkit/support/test_webkit_platform_support.h" -#include "webkit/tools/test_shell/simple_resource_loader_bridge.h" namespace { diff --git a/webkit/support/platform_support_mac.mm b/webkit/support/platform_support_mac.mm index 5abd93f..9a48d95 100644 --- a/webkit/support/platform_support_mac.mm +++ b/webkit/support/platform_support_mac.mm @@ -20,9 +20,9 @@ #include "grit/webkit_resources.h" #include "ui/base/resource/data_pack.h" #include "webkit/plugins/npapi/plugin_list.h" -#include "webkit/support/test_webkit_platform_support.h" #import "webkit/support/drt_application_mac.h" -#import "webkit/tools/test_shell/mac/DumpRenderTreePasteboard.h" +#import "webkit/support/mac/DumpRenderTreePasteboard.h" +#include "webkit/support/test_webkit_platform_support.h" static ui::DataPack* g_resource_data_pack = NULL; diff --git a/webkit/tools/test_shell/simple_appcache_system.cc b/webkit/support/simple_appcache_system.cc index 7c6e0ed..1305bc9 100644 --- a/webkit/tools/test_shell/simple_appcache_system.cc +++ b/webkit/support/simple_appcache_system.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "webkit/tools/test_shell/simple_appcache_system.h" +#include "webkit/support/simple_appcache_system.h" #include <string> #include <vector> @@ -13,7 +13,7 @@ #include "base/synchronization/waitable_event.h" #include "webkit/appcache/appcache_interceptor.h" #include "webkit/appcache/web_application_cache_host_impl.h" -#include "webkit/tools/test_shell/simple_resource_loader_bridge.h" +#include "webkit/support/simple_resource_loader_bridge.h" using WebKit::WebApplicationCacheHost; using WebKit::WebApplicationCacheHostClient; diff --git a/webkit/tools/test_shell/simple_appcache_system.h b/webkit/support/simple_appcache_system.h index e6639ad..c07a52f 100644 --- a/webkit/tools/test_shell/simple_appcache_system.h +++ b/webkit/support/simple_appcache_system.h @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#ifndef WEBKIT_TOOLS_TEST_SHELL_SIMPLE_APPCACHE_SYSTEM_H_ -#define WEBKIT_TOOLS_TEST_SHELL_SIMPLE_APPCACHE_SYSTEM_H_ +#ifndef WEBKIT_SUPPORT_SIMPLE_APPCACHE_SYSTEM_H_ +#define WEBKIT_SUPPORT_SIMPLE_APPCACHE_SYSTEM_H_ #include "base/files/file_path.h" #include "base/message_loop.h" @@ -133,4 +133,4 @@ class SimpleAppCacheSystem { static SimpleAppCacheSystem* instance_; }; -#endif // WEBKIT_TOOLS_TEST_SHELL_SIMPLE_APPCACHE_SYSTEM_H_ +#endif // WEBKIT_SUPPORT_SIMPLE_APPCACHE_SYSTEM_H_ diff --git a/webkit/tools/test_shell/simple_clipboard_impl.cc b/webkit/support/simple_clipboard_impl.cc index 4e63b8ab..ac10492 100644 --- a/webkit/tools/test_shell/simple_clipboard_impl.cc +++ b/webkit/support/simple_clipboard_impl.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "webkit/tools/test_shell/simple_clipboard_impl.h" +#include "webkit/support/simple_clipboard_impl.h" #include <string> diff --git a/webkit/tools/test_shell/simple_clipboard_impl.h b/webkit/support/simple_clipboard_impl.h index 9a8b438..0d3d146 100644 --- a/webkit/tools/test_shell/simple_clipboard_impl.h +++ b/webkit/support/simple_clipboard_impl.h @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#ifndef WEBKIT_TOOLS_TEST_SHELL_SIMPLE_CLIPBOARD_IMPL_H_ -#define WEBKIT_TOOLS_TEST_SHELL_SIMPLE_CLIPBOARD_IMPL_H_ +#ifndef WEBKIT_SUPPORT_SIMPLE_CLIPBOARD_IMPL_H_ +#define WEBKIT_SUPPORT_SIMPLE_CLIPBOARD_IMPL_H_ #include "base/compiler_specific.h" #include "webkit/glue/clipboard_client.h" @@ -40,4 +40,4 @@ class SimpleClipboardClient : public webkit_glue::ClipboardClient { virtual WriteContext* CreateWriteContext() OVERRIDE; }; -#endif // WEBKIT_TOOLS_TEST_SHELL_SIMPLE_CLIPBOARD_IMPL_H_ +#endif // WEBKIT_SUPPORT_SIMPLE_CLIPBOARD_IMPL_H_ diff --git a/webkit/tools/test_shell/simple_dom_storage_system.cc b/webkit/support/simple_dom_storage_system.cc index 1acdc7b..34762ac 100644 --- a/webkit/tools/test_shell/simple_dom_storage_system.cc +++ b/webkit/support/simple_dom_storage_system.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "webkit/tools/test_shell/simple_dom_storage_system.h" +#include "webkit/support/simple_dom_storage_system.h" #include "base/auto_reset.h" #include "googleurl/src/gurl.h" diff --git a/webkit/tools/test_shell/simple_dom_storage_system.h b/webkit/support/simple_dom_storage_system.h index cfe69a7..71824a9 100644 --- a/webkit/tools/test_shell/simple_dom_storage_system.h +++ b/webkit/support/simple_dom_storage_system.h @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#ifndef WEBKIT_TOOLS_TEST_SHELL_SIMPLE_DOM_STORAGE_SYSTEM_H_ -#define WEBKIT_TOOLS_TEST_SHELL_SIMPLE_DOM_STORAGE_SYSTEM_H_ +#ifndef WEBKIT_SUPPORT_SIMPLE_DOM_STORAGE_SYSTEM_H_ +#define WEBKIT_SUPPORT_SIMPLE_DOM_STORAGE_SYSTEM_H_ #include "base/memory/scoped_ptr.h" #include "base/memory/weak_ptr.h" @@ -76,4 +76,4 @@ class SimpleDomStorageSystem static SimpleDomStorageSystem* g_instance_; }; -#endif // WEBKIT_TOOLS_TEST_SHELL_SIMPLE_DOM_STORAGE_SYSTEM_H_ +#endif // WEBKIT_SUPPORT_SIMPLE_DOM_STORAGE_SYSTEM_H_ diff --git a/webkit/tools/test_shell/simple_file_system.cc b/webkit/support/simple_file_system.cc index 7fe4ff5..b7e9ef3 100644 --- a/webkit/tools/test_shell/simple_file_system.cc +++ b/webkit/support/simple_file_system.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "webkit/tools/test_shell/simple_file_system.h" +#include "webkit/support/simple_file_system.h" #include "base/bind.h" #include "base/files/file_path.h" @@ -27,7 +27,7 @@ #include "webkit/browser/fileapi/mock_file_system_context.h" #include "webkit/common/fileapi/directory_entry.h" #include "webkit/common/fileapi/file_system_util.h" -#include "webkit/tools/test_shell/simple_file_writer.h" +#include "webkit/support/simple_file_writer.h" using base::WeakPtr; diff --git a/webkit/tools/test_shell/simple_file_system.h b/webkit/support/simple_file_system.h index 464c591..6430aa0 100644 --- a/webkit/tools/test_shell/simple_file_system.h +++ b/webkit/support/simple_file_system.h @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#ifndef WEBKIT_TOOLS_TEST_SHELL_SIMPLE_FILE_SYSTEM_H_ -#define WEBKIT_TOOLS_TEST_SHELL_SIMPLE_FILE_SYSTEM_H_ +#ifndef WEBKIT_SUPPORT_SIMPLE_FILE_SYSTEM_H_ +#define WEBKIT_SUPPORT_SIMPLE_FILE_SYSTEM_H_ #include <vector> @@ -157,4 +157,4 @@ class SimpleFileSystem DISALLOW_COPY_AND_ASSIGN(SimpleFileSystem); }; -#endif // WEBKIT_TOOLS_TEST_SHELL_SIMPLE_FILE_SYSTEM_H_ +#endif // WEBKIT_SUPPORT_SIMPLE_FILE_SYSTEM_H_ diff --git a/webkit/tools/test_shell/simple_file_writer.cc b/webkit/support/simple_file_writer.cc index b6e15c6..b372fd1 100644 --- a/webkit/tools/test_shell/simple_file_writer.cc +++ b/webkit/support/simple_file_writer.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "webkit/tools/test_shell/simple_file_writer.h" +#include "webkit/support/simple_file_writer.h" #include "base/bind.h" #include "base/location.h" @@ -14,7 +14,7 @@ #include "webkit/browser/fileapi/file_system_url.h" #include "webkit/common/fileapi/file_system_types.h" #include "webkit/glue/webkit_glue.h" -#include "webkit/tools/test_shell/simple_resource_loader_bridge.h" +#include "webkit/support/simple_resource_loader_bridge.h" using fileapi::FileSystemURL; using fileapi::FileSystemContext; diff --git a/webkit/tools/test_shell/simple_file_writer.h b/webkit/support/simple_file_writer.h index 41f11fa..778fb55 100644 --- a/webkit/tools/test_shell/simple_file_writer.h +++ b/webkit/support/simple_file_writer.h @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#ifndef WEBKIT_TOOLS_TEST_SHELL_SIMPLE_FILE_WRITER_H_ -#define WEBKIT_TOOLS_TEST_SHELL_SIMPLE_FILE_WRITER_H_ +#ifndef WEBKIT_SUPPORT_SIMPLE_FILE_WRITER_H_ +#define WEBKIT_SUPPORT_SIMPLE_FILE_WRITER_H_ #include "base/memory/ref_counted.h" #include "base/memory/weak_ptr.h" @@ -50,4 +50,4 @@ class SimpleFileWriter : public fileapi::WebFileWriterBase, static net::URLRequestContext* request_context_; }; -#endif // WEBKIT_TOOLS_TEST_SHELL_SIMPLE_FILE_WRITER_H_ +#endif // WEBKIT_SUPPORT_SIMPLE_FILE_WRITER_H_ diff --git a/webkit/tools/test_shell/simple_resource_loader_bridge.cc b/webkit/support/simple_resource_loader_bridge.cc index 127c858..42701a8 100644 --- a/webkit/tools/test_shell/simple_resource_loader_bridge.cc +++ b/webkit/support/simple_resource_loader_bridge.cc @@ -30,7 +30,7 @@ // perform URL loads. See renderer/resource_dispatcher.h for details on an // alternate implementation that defers fetching to another process. -#include "webkit/tools/test_shell/simple_resource_loader_bridge.h" +#include "webkit/support/simple_resource_loader_bridge.h" #include "base/bind.h" #include "base/compiler_specific.h" @@ -71,12 +71,12 @@ #include "webkit/glue/resource_loader_bridge.h" #include "webkit/glue/resource_request_body.h" #include "webkit/glue/webkit_glue.h" -#include "webkit/tools/test_shell/simple_appcache_system.h" -#include "webkit/tools/test_shell/simple_file_system.h" -#include "webkit/tools/test_shell/simple_file_writer.h" -#include "webkit/tools/test_shell/simple_socket_stream_bridge.h" -#include "webkit/tools/test_shell/test_shell_request_context.h" -#include "webkit/tools/test_shell/test_shell_webblobregistry_impl.h" +#include "webkit/support/simple_appcache_system.h" +#include "webkit/support/simple_file_system.h" +#include "webkit/support/simple_file_writer.h" +#include "webkit/support/simple_socket_stream_bridge.h" +#include "webkit/support/test_shell_request_context.h" +#include "webkit/support/test_shell_webblobregistry_impl.h" #if defined(OS_MACOSX) || defined(OS_WIN) #include "crypto/nss_util.h" diff --git a/webkit/tools/test_shell/simple_resource_loader_bridge.h b/webkit/support/simple_resource_loader_bridge.h index 35d38b5..ea73ee7 100644 --- a/webkit/tools/test_shell/simple_resource_loader_bridge.h +++ b/webkit/support/simple_resource_loader_bridge.h @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#ifndef WEBKIT_TOOLS_TEST_SHELL_SIMPLE_RESOURCE_LOADER_BRIDGE_H__ -#define WEBKIT_TOOLS_TEST_SHELL_SIMPLE_RESOURCE_LOADER_BRIDGE_H__ +#ifndef WEBKIT_SUPPORT_SIMPLE_RESOURCE_LOADER_BRIDGE_H__ +#define WEBKIT_SUPPORT_SIMPLE_RESOURCE_LOADER_BRIDGE_H__ #include <string> #include "base/message_loop_proxy.h" @@ -58,4 +58,4 @@ class SimpleResourceLoaderBridge { const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info); }; -#endif // WEBKIT_TOOLS_TEST_SHELL_SIMPLE_RESOURCE_LOADER_BRIDGE_H__ +#endif // WEBKIT_SUPPORT_SIMPLE_RESOURCE_LOADER_BRIDGE_H__ diff --git a/webkit/tools/test_shell/simple_socket_stream_bridge.cc b/webkit/support/simple_socket_stream_bridge.cc index 23253cc..0dce0c0 100644 --- a/webkit/tools/test_shell/simple_socket_stream_bridge.cc +++ b/webkit/support/simple_socket_stream_bridge.cc @@ -2,9 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include <vector> +#include "webkit/support/simple_socket_stream_bridge.h" -#include "webkit/tools/test_shell/simple_socket_stream_bridge.h" +#include <vector> #include "base/atomicops.h" #include "base/bind.h" @@ -13,8 +13,8 @@ #include "base/utf_string_conversions.h" #include "googleurl/src/gurl.h" #include "net/socket_stream/socket_stream_job.h" -#include "net/websockets/websocket_job.h" #include "net/url_request/url_request_context.h" +#include "net/websockets/websocket_job.h" #include "third_party/WebKit/public/platform/WebSocketStreamHandle.h" #include "webkit/glue/websocketstreamhandle_bridge.h" #include "webkit/glue/websocketstreamhandle_delegate.h" diff --git a/webkit/tools/test_shell/simple_socket_stream_bridge.h b/webkit/support/simple_socket_stream_bridge.h index dee2120..a68e3f1 100644 --- a/webkit/tools/test_shell/simple_socket_stream_bridge.h +++ b/webkit/support/simple_socket_stream_bridge.h @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#ifndef WEBKIT_TOOLS_TEST_SHELL_SIMPLE_SOCKET_STREAM_BRIDGE_H_ -#define WEBKIT_TOOLS_TEST_SHELL_SIMPLE_SOCKET_STREAM_BRIDGE_H_ +#ifndef WEBKIT_SUPPORT_SIMPLE_SOCKET_STREAM_BRIDGE_H_ +#define WEBKIT_SUPPORT_SIMPLE_SOCKET_STREAM_BRIDGE_H_ #include "base/basictypes.h" @@ -32,4 +32,4 @@ class SimpleSocketStreamBridge { DISALLOW_IMPLICIT_CONSTRUCTORS(SimpleSocketStreamBridge); }; -#endif // WEBKIT_TOOLS_TEST_SHELL_SIMPLE_SOCKET_STREAM_BRIDGE_H_ +#endif // WEBKIT_SUPPORT_SIMPLE_SOCKET_STREAM_BRIDGE_H_ diff --git a/webkit/tools/test_shell/simple_webcookiejar_impl.cc b/webkit/support/simple_webcookiejar_impl.cc index 8636404..771d6f4 100644 --- a/webkit/tools/test_shell/simple_webcookiejar_impl.cc +++ b/webkit/support/simple_webcookiejar_impl.cc @@ -2,10 +2,10 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "webkit/tools/test_shell/simple_webcookiejar_impl.h" +#include "webkit/support/simple_webcookiejar_impl.h" #include "third_party/WebKit/public/platform/WebURL.h" -#include "webkit/tools/test_shell/simple_resource_loader_bridge.h" +#include "webkit/support/simple_resource_loader_bridge.h" using WebKit::WebString; using WebKit::WebURL; diff --git a/webkit/tools/test_shell/simple_webcookiejar_impl.h b/webkit/support/simple_webcookiejar_impl.h index 93ea5b5..cb89d03 100644 --- a/webkit/tools/test_shell/simple_webcookiejar_impl.h +++ b/webkit/support/simple_webcookiejar_impl.h @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#ifndef WEBKIT_TOOLS_TEST_SHELL_SIMPLE_WEBCOOKIEJAR_IMPL_H_ -#define WEBKIT_TOOLS_TEST_SHELL_SIMPLE_WEBCOOKIEJAR_IMPL_H_ +#ifndef WEBKIT_SUPPORT_SIMPLE_WEBCOOKIEJAR_IMPL_H_ +#define WEBKIT_SUPPORT_SIMPLE_WEBCOOKIEJAR_IMPL_H_ // TODO(darin): WebCookieJar.h is missing a WebString.h include! #include "third_party/WebKit/public/platform/WebCookieJar.h" @@ -19,4 +19,4 @@ class SimpleWebCookieJarImpl : public WebKit::WebCookieJar { const WebKit::WebURL& url, const WebKit::WebURL& first_party_for_cookies); }; -#endif // WEBKIT_TOOLS_TEST_SHELL_SIMPLE_WEBCOOKIEJAR_IMPL_H_ +#endif // WEBKIT_SUPPORT_SIMPLE_WEBCOOKIEJAR_IMPL_H_ diff --git a/webkit/tools/test_shell/test_shell_dummy.cc b/webkit/support/test_shell_dummy.cc index e1a88a9..e1a88a9 100644 --- a/webkit/tools/test_shell/test_shell_dummy.cc +++ b/webkit/support/test_shell_dummy.cc diff --git a/webkit/tools/test_shell/test_shell_request_context.cc b/webkit/support/test_shell_request_context.cc index 6675e3f..f2c31ba 100644 --- a/webkit/tools/test_shell/test_shell_request_context.cc +++ b/webkit/support/test_shell_request_context.cc @@ -2,14 +2,13 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "webkit/tools/test_shell/test_shell_request_context.h" - -#include "build/build_config.h" +#include "webkit/support/test_shell_request_context.h" #include "base/compiler_specific.h" #include "base/files/file_path.h" #include "base/thread_task_runner_handle.h" #include "base/threading/worker_pool.h" +#include "build/build_config.h" #include "net/base/cache_type.h" #include "net/cert/cert_verifier.h" #include "net/cookies/cookie_monster.h" @@ -34,8 +33,8 @@ #include "webkit/browser/fileapi/file_system_context.h" #include "webkit/browser/fileapi/file_system_url_request_job_factory.h" #include "webkit/common/user_agent/user_agent.h" -#include "webkit/tools/test_shell/simple_file_system.h" -#include "webkit/tools/test_shell/simple_resource_loader_bridge.h" +#include "webkit/support/simple_file_system.h" +#include "webkit/support/simple_resource_loader_bridge.h" class TestShellHttpUserAgentSettings : public net::HttpUserAgentSettings { public: diff --git a/webkit/tools/test_shell/test_shell_request_context.h b/webkit/support/test_shell_request_context.h index bcd59e4..40d36f5 100644 --- a/webkit/tools/test_shell/test_shell_request_context.h +++ b/webkit/support/test_shell_request_context.h @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_REQUEST_CONTEXT_H_ -#define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_REQUEST_CONTEXT_H_ +#ifndef WEBKIT_SUPPORT_TEST_SHELL_REQUEST_CONTEXT_H_ +#define WEBKIT_SUPPORT_TEST_SHELL_REQUEST_CONTEXT_H_ #include "base/threading/thread.h" #include "net/http/http_cache.h" @@ -53,4 +53,4 @@ class TestShellRequestContext : public net::URLRequestContext { scoped_refptr<fileapi::FileSystemContext> file_system_context_; }; -#endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_REQUEST_CONTEXT_H_ +#endif // WEBKIT_SUPPORT_TEST_SHELL_REQUEST_CONTEXT_H_ diff --git a/webkit/tools/test_shell/test_shell_webblobregistry_impl.cc b/webkit/support/test_shell_webblobregistry_impl.cc index 6352656..4228915 100644 --- a/webkit/tools/test_shell/test_shell_webblobregistry_impl.cc +++ b/webkit/support/test_shell_webblobregistry_impl.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "webkit/tools/test_shell/test_shell_webblobregistry_impl.h" +#include "webkit/support/test_shell_webblobregistry_impl.h" #include "base/bind.h" #include "base/message_loop.h" diff --git a/webkit/tools/test_shell/test_shell_webblobregistry_impl.h b/webkit/support/test_shell_webblobregistry_impl.h index 1eaf395..278ee1c 100644 --- a/webkit/tools/test_shell/test_shell_webblobregistry_impl.h +++ b/webkit/support/test_shell_webblobregistry_impl.h @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBBLOBREGISTRY_IMPL_H_ -#define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBBLOBREGISTRY_IMPL_H_ +#ifndef WEBKIT_SUPPORT_TEST_SHELL_WEBBLOBREGISTRY_IMPL_H_ +#define WEBKIT_SUPPORT_TEST_SHELL_WEBBLOBREGISTRY_IMPL_H_ #include "base/memory/ref_counted.h" #include "third_party/WebKit/public/platform/WebBlobRegistry.h" @@ -46,4 +46,4 @@ class TestShellWebBlobRegistryImpl DISALLOW_COPY_AND_ASSIGN(TestShellWebBlobRegistryImpl); }; -#endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBBLOBREGISTRY_IMPL_H_ +#endif // WEBKIT_SUPPORT_TEST_SHELL_WEBBLOBREGISTRY_IMPL_H_ diff --git a/webkit/tools/test_shell/test_shell_webmimeregistry_impl.cc b/webkit/support/test_shell_webmimeregistry_impl.cc index 06a880b..eab4b25 100644 --- a/webkit/tools/test_shell/test_shell_webmimeregistry_impl.cc +++ b/webkit/support/test_shell_webmimeregistry_impl.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "webkit/tools/test_shell/test_shell_webmimeregistry_impl.h" +#include "webkit/support/test_shell_webmimeregistry_impl.h" #include "base/basictypes.h" #include "base/string_util.h" diff --git a/webkit/tools/test_shell/test_shell_webmimeregistry_impl.h b/webkit/support/test_shell_webmimeregistry_impl.h index 6fcff259..b6e876d 100644 --- a/webkit/tools/test_shell/test_shell_webmimeregistry_impl.h +++ b/webkit/support/test_shell_webmimeregistry_impl.h @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBMIMEREGISTRY_IMPL_H_ -#define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBMIMEREGISTRY_IMPL_H_ +#ifndef WEBKIT_SUPPORT_TEST_SHELL_WEBMIMEREGISTRY_IMPL_H_ +#define WEBKIT_SUPPORT_TEST_SHELL_WEBMIMEREGISTRY_IMPL_H_ #include <string> #include <vector> @@ -42,4 +42,4 @@ class TestShellWebMimeRegistryImpl DISALLOW_COPY_AND_ASSIGN(TestShellWebMimeRegistryImpl); }; -#endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBMIMEREGISTRY_IMPL_H_ +#endif // WEBKIT_SUPPORT_TEST_SHELL_WEBMIMEREGISTRY_IMPL_H_ diff --git a/webkit/support/test_webkit_platform_support.cc b/webkit/support/test_webkit_platform_support.cc index 28cee799..6e352e1 100644 --- a/webkit/support/test_webkit_platform_support.cc +++ b/webkit/support/test_webkit_platform_support.cc @@ -43,21 +43,21 @@ #include "webkit/plugins/npapi/plugin_list.h" #include "webkit/renderer/compositor_bindings/web_compositor_support_impl.h" #include "webkit/support/gc_extension.h" +#include "webkit/support/mock_webclipboard_impl.h" +#include "webkit/support/simple_appcache_system.h" #include "webkit/support/simple_database_system.h" +#include "webkit/support/simple_file_system.h" +#include "webkit/support/simple_resource_loader_bridge.h" +#include "webkit/support/simple_socket_stream_bridge.h" +#include "webkit/support/simple_webcookiejar_impl.h" +#include "webkit/support/test_shell_request_context.h" +#include "webkit/support/test_shell_webblobregistry_impl.h" #include "webkit/support/test_webmessageportchannel.h" #include "webkit/support/web_audio_device_mock.h" #include "webkit/support/web_gesture_curve_mock.h" #include "webkit/support/web_layer_tree_view_impl_for_testing.h" #include "webkit/support/webkit_support.h" #include "webkit/support/weburl_loader_mock_factory.h" -#include "webkit/tools/test_shell/mock_webclipboard_impl.h" -#include "webkit/tools/test_shell/simple_appcache_system.h" -#include "webkit/tools/test_shell/simple_file_system.h" -#include "webkit/tools/test_shell/simple_resource_loader_bridge.h" -#include "webkit/tools/test_shell/simple_socket_stream_bridge.h" -#include "webkit/tools/test_shell/simple_webcookiejar_impl.h" -#include "webkit/tools/test_shell/test_shell_request_context.h" -#include "webkit/tools/test_shell/test_shell_webblobregistry_impl.h" #if defined(OS_WIN) #include "third_party/WebKit/public/platform/win/WebThemeEngine.h" diff --git a/webkit/support/test_webkit_platform_support.h b/webkit/support/test_webkit_platform_support.h index adc02c4..1a85dfa 100644 --- a/webkit/support/test_webkit_platform_support.h +++ b/webkit/support/test_webkit_platform_support.h @@ -13,14 +13,14 @@ #include "webkit/glue/webkitplatformsupport_impl.h" #include "webkit/mocks/mock_webhyphenator.h" #include "webkit/renderer/compositor_bindings/web_compositor_support_impl.h" +#include "webkit/support/mock_webclipboard_impl.h" +#include "webkit/support/simple_appcache_system.h" #include "webkit/support/simple_database_system.h" +#include "webkit/support/simple_dom_storage_system.h" +#include "webkit/support/simple_file_system.h" +#include "webkit/support/simple_webcookiejar_impl.h" +#include "webkit/support/test_shell_webmimeregistry_impl.h" #include "webkit/support/weburl_loader_mock_factory.h" -#include "webkit/tools/test_shell/mock_webclipboard_impl.h" -#include "webkit/tools/test_shell/simple_appcache_system.h" -#include "webkit/tools/test_shell/simple_dom_storage_system.h" -#include "webkit/tools/test_shell/simple_file_system.h" -#include "webkit/tools/test_shell/simple_webcookiejar_impl.h" -#include "webkit/tools/test_shell/test_shell_webmimeregistry_impl.h" class TestShellWebBlobRegistryImpl; diff --git a/webkit/support/webkit_support.cc b/webkit/support/webkit_support.cc index 059586c..0da75ba 100644 --- a/webkit/support/webkit_support.cc +++ b/webkit/support/webkit_support.cc @@ -71,15 +71,15 @@ #include "webkit/renderer/media/webmediaplayer_ms.h" #include "webkit/renderer/media/webmediaplayer_params.h" #include "webkit/support/platform_support.h" +#include "webkit/support/simple_appcache_system.h" #include "webkit/support/simple_database_system.h" +#include "webkit/support/simple_dom_storage_system.h" +#include "webkit/support/simple_file_system.h" +#include "webkit/support/simple_resource_loader_bridge.h" #include "webkit/support/test_webidbfactory.h" #include "webkit/support/test_webkit_platform_support.h" #include "webkit/support/test_webplugin_page_delegate.h" #include "webkit/support/web_layer_tree_view_impl_for_testing.h" -#include "webkit/tools/test_shell/simple_appcache_system.h" -#include "webkit/tools/test_shell/simple_dom_storage_system.h" -#include "webkit/tools/test_shell/simple_file_system.h" -#include "webkit/tools/test_shell/simple_resource_loader_bridge.h" #if defined(OS_ANDROID) #include "base/test/test_support_android.h" diff --git a/webkit/support/webkit_support.gypi b/webkit/support/webkit_support.gypi index a3c1f5a..a949875 100644 --- a/webkit/support/webkit_support.gypi +++ b/webkit/support/webkit_support.gypi @@ -25,12 +25,12 @@ '<(DEPTH)/ui/ui.gyp:ui', '<(DEPTH)/webkit/common/gpu/webkit_gpu.gyp:webkit_gpu', '<(DEPTH)/webkit/common/user_agent/webkit_user_agent.gyp:user_agent', + '<(DEPTH)/webkit/plugins/webkit_plugins.gyp:plugins_common', '<(DEPTH)/webkit/renderer/compositor_bindings/compositor_bindings.gyp:webkit_compositor_bindings', '<(DEPTH)/webkit/renderer/compositor_bindings/compositor_bindings.gyp:webkit_compositor_support', 'glue', 'glue_common', 'plugins', - 'plugins_common', 'webkit_base', 'webkit_common', 'webkit_media', @@ -130,31 +130,31 @@ '<(DEPTH)/webkit/browser/fileapi/mock_file_system_options.h', '<(DEPTH)/webkit/browser/quota/mock_special_storage_policy.cc', '<(DEPTH)/webkit/browser/quota/mock_special_storage_policy.h', - '<(DEPTH)/webkit/tools/test_shell/mac/DumpRenderTreePasteboard.h', - '<(DEPTH)/webkit/tools/test_shell/mac/DumpRenderTreePasteboard.m', - '<(DEPTH)/webkit/tools/test_shell/mock_webclipboard_impl.cc', - '<(DEPTH)/webkit/tools/test_shell/mock_webclipboard_impl.h', - '<(DEPTH)/webkit/tools/test_shell/simple_appcache_system.cc', - '<(DEPTH)/webkit/tools/test_shell/simple_appcache_system.h', - '<(DEPTH)/webkit/tools/test_shell/simple_clipboard_impl.cc', - '<(DEPTH)/webkit/tools/test_shell/simple_dom_storage_system.cc', - '<(DEPTH)/webkit/tools/test_shell/simple_dom_storage_system.h', - '<(DEPTH)/webkit/tools/test_shell/simple_file_system.cc', - '<(DEPTH)/webkit/tools/test_shell/simple_file_system.h', - '<(DEPTH)/webkit/tools/test_shell/simple_file_writer.cc', - '<(DEPTH)/webkit/tools/test_shell/simple_file_writer.h', - '<(DEPTH)/webkit/tools/test_shell/simple_resource_loader_bridge.cc', - '<(DEPTH)/webkit/tools/test_shell/simple_resource_loader_bridge.h', - '<(DEPTH)/webkit/tools/test_shell/simple_socket_stream_bridge.cc', - '<(DEPTH)/webkit/tools/test_shell/simple_socket_stream_bridge.h', - '<(DEPTH)/webkit/tools/test_shell/simple_webcookiejar_impl.cc', - '<(DEPTH)/webkit/tools/test_shell/simple_webcookiejar_impl.h', - '<(DEPTH)/webkit/tools/test_shell/test_shell_request_context.cc', - '<(DEPTH)/webkit/tools/test_shell/test_shell_request_context.h', - '<(DEPTH)/webkit/tools/test_shell/test_shell_webblobregistry_impl.cc', - '<(DEPTH)/webkit/tools/test_shell/test_shell_webblobregistry_impl.h', - '<(DEPTH)/webkit/tools/test_shell/test_shell_webmimeregistry_impl.cc', - '<(DEPTH)/webkit/tools/test_shell/test_shell_webmimeregistry_impl.h', + '<(DEPTH)/webkit/support/mac/DumpRenderTreePasteboard.h', + '<(DEPTH)/webkit/support/mac/DumpRenderTreePasteboard.m', + '<(DEPTH)/webkit/support/mock_webclipboard_impl.cc', + '<(DEPTH)/webkit/support/mock_webclipboard_impl.h', + '<(DEPTH)/webkit/support/simple_appcache_system.cc', + '<(DEPTH)/webkit/support/simple_appcache_system.h', + '<(DEPTH)/webkit/support/simple_clipboard_impl.cc', + '<(DEPTH)/webkit/support/simple_dom_storage_system.cc', + '<(DEPTH)/webkit/support/simple_dom_storage_system.h', + '<(DEPTH)/webkit/support/simple_file_system.cc', + '<(DEPTH)/webkit/support/simple_file_system.h', + '<(DEPTH)/webkit/support/simple_file_writer.cc', + '<(DEPTH)/webkit/support/simple_file_writer.h', + '<(DEPTH)/webkit/support/simple_resource_loader_bridge.cc', + '<(DEPTH)/webkit/support/simple_resource_loader_bridge.h', + '<(DEPTH)/webkit/support/simple_socket_stream_bridge.cc', + '<(DEPTH)/webkit/support/simple_socket_stream_bridge.h', + '<(DEPTH)/webkit/support/simple_webcookiejar_impl.cc', + '<(DEPTH)/webkit/support/simple_webcookiejar_impl.h', + '<(DEPTH)/webkit/support/test_shell_request_context.cc', + '<(DEPTH)/webkit/support/test_shell_request_context.h', + '<(DEPTH)/webkit/support/test_shell_webblobregistry_impl.cc', + '<(DEPTH)/webkit/support/test_shell_webblobregistry_impl.h', + '<(DEPTH)/webkit/support/test_shell_webmimeregistry_impl.cc', + '<(DEPTH)/webkit/support/test_shell_webmimeregistry_impl.h', '<(DEPTH)/webkit/mocks/mock_webhyphenator.cc', '<(DEPTH)/webkit/mocks/mock_webhyphenator.h', '<(DEPTH)/webkit/mocks/test_media_stream_client.cc', diff --git a/webkit/tools/test_shell/DEPS b/webkit/tools/test_shell/DEPS deleted file mode 100644 index 40948f2..0000000 --- a/webkit/tools/test_shell/DEPS +++ /dev/null @@ -1,7 +0,0 @@ -include_rules = [ - "+breakpad", - "+mac", - "+third_party/zlib", - "+ui", - "+webkit/support" -] diff --git a/webkit/tools/test_shell/test_shell.gypi b/webkit/tools/test_shell/test_shell.gypi deleted file mode 100644 index 0c8e3d3..0000000 --- a/webkit/tools/test_shell/test_shell.gypi +++ /dev/null @@ -1,198 +0,0 @@ -# Copyright (c) 2012 The Chromium Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -{ - 'targets': [ - { - 'target_name': 'pull_in_copy_TestNetscapePlugIn', - 'type': 'none', - 'dependencies': [ - '../third_party/WebKit/Tools/DumpRenderTree/DumpRenderTree.gyp/DumpRenderTree.gyp:copy_TestNetscapePlugIn' - ], - }, - { - # TODO(tony): This should be moved to webkit_glue.gypi or - # webkit_tests.gypi and named something like test_mock_plugin_list. - 'target_name': 'test_shell_test_support', - 'type': 'static_library', - 'dependencies': [ - '<(DEPTH)/webkit/support/webkit_support.gyp:glue' - ], - 'sources': [ - '../../plugins/npapi/mock_plugin_list.cc', - '../../plugins/npapi/mock_plugin_list.h', - ] - }, - ], - 'conditions': [ - # Currently test_shell compiles only on Windows, Mac, and Gtk. - ['OS=="win" or OS=="mac" or toolkit_uses_gtk==1', { - 'targets': [ - { - # TODO(darin): Delete this dummy target once the build masters stop - # trying to build it. - 'target_name': 'test_shell', - 'type': 'static_library', - 'sources': [ - 'test_shell_dummy.cc', - ], - }, - ], - }], - ['OS!="android" and OS!="ios"', { - # npapi test plugin doesn't build on android or ios - 'targets': [ - { - 'target_name': 'npapi_test_common', - 'type': 'static_library', - 'dependencies': [ - '<(DEPTH)/base/base.gyp:base', - '<(DEPTH)/third_party/npapi/npapi.gyp:npapi', - ], - 'sources': [ - '../../plugins/npapi/test/npapi_constants.cc', - '../../plugins/npapi/test/npapi_constants.h', - '../../plugins/npapi/test/plugin_client.cc', - '../../plugins/npapi/test/plugin_client.h', - '../../plugins/npapi/test/plugin_test.cc', - '../../plugins/npapi/test/plugin_test.h', - '../../plugins/npapi/test/plugin_test_factory.h', - ], - 'export_dependent_settings': [ - '<(DEPTH)/base/base.gyp:base', - ], - }, - { - 'target_name': 'npapi_test_plugin', - 'type': 'loadable_module', - 'variables': { - 'chromium_code': 1, - }, - 'mac_bundle': 1, - 'dependencies': [ - '<(DEPTH)/third_party/icu/icu.gyp:icuuc', - 'npapi_test_common', - ], - 'sources': [ - '../../plugins/npapi/test/npapi_test.cc', - '../../plugins/npapi/test/npapi_test.def', - '../../plugins/npapi/test/npapi_test.rc', - '../../plugins/npapi/test/plugin_arguments_test.cc', - '../../plugins/npapi/test/plugin_arguments_test.h', - '../../plugins/npapi/test/plugin_create_instance_in_paint.cc', - '../../plugins/npapi/test/plugin_create_instance_in_paint.h', - '../../plugins/npapi/test/plugin_delete_plugin_in_deallocate_test.cc', - '../../plugins/npapi/test/plugin_delete_plugin_in_deallocate_test.h', - '../../plugins/npapi/test/plugin_delete_plugin_in_stream_test.cc', - '../../plugins/npapi/test/plugin_delete_plugin_in_stream_test.h', - '../../plugins/npapi/test/plugin_execute_stream_javascript.cc', - '../../plugins/npapi/test/plugin_execute_stream_javascript.h', - '../../plugins/npapi/test/plugin_get_javascript_url_test.cc', - '../../plugins/npapi/test/plugin_get_javascript_url_test.h', - '../../plugins/npapi/test/plugin_get_javascript_url2_test.cc', - '../../plugins/npapi/test/plugin_get_javascript_url2_test.h', - '../../plugins/npapi/test/plugin_geturl_test.cc', - '../../plugins/npapi/test/plugin_geturl_test.h', - '../../plugins/npapi/test/plugin_javascript_open_popup.cc', - '../../plugins/npapi/test/plugin_javascript_open_popup.h', - '../../plugins/npapi/test/plugin_new_fails_test.cc', - '../../plugins/npapi/test/plugin_new_fails_test.h', - '../../plugins/npapi/test/plugin_npobject_identity_test.cc', - '../../plugins/npapi/test/plugin_npobject_identity_test.h', - '../../plugins/npapi/test/plugin_npobject_lifetime_test.cc', - '../../plugins/npapi/test/plugin_npobject_lifetime_test.h', - '../../plugins/npapi/test/plugin_npobject_proxy_test.cc', - '../../plugins/npapi/test/plugin_npobject_proxy_test.h', - '../../plugins/npapi/test/plugin_schedule_timer_test.cc', - '../../plugins/npapi/test/plugin_schedule_timer_test.h', - '../../plugins/npapi/test/plugin_setup_test.cc', - '../../plugins/npapi/test/plugin_setup_test.h', - '../../plugins/npapi/test/plugin_thread_async_call_test.cc', - '../../plugins/npapi/test/plugin_thread_async_call_test.h', - '../../plugins/npapi/test/plugin_windowed_test.cc', - '../../plugins/npapi/test/plugin_windowed_test.h', - '../../plugins/npapi/test/plugin_private_test.cc', - '../../plugins/npapi/test/plugin_private_test.h', - '../../plugins/npapi/test/plugin_test_factory.cc', - '../../plugins/npapi/test/plugin_window_size_test.cc', - '../../plugins/npapi/test/plugin_window_size_test.h', - '../../plugins/npapi/test/plugin_windowless_test.cc', - '../../plugins/npapi/test/plugin_windowless_test.h', - '../../plugins/npapi/test/resource.h', - ], - 'include_dirs': [ - '../../..', - ], - 'xcode_settings': { - 'INFOPLIST_FILE': '<(DEPTH)/webkit/plugins/npapi/test/Info.plist', - }, - 'conditions': [ - ['OS!="win"', { - 'sources!': [ - # TODO(port): Port these. - # plugin_npobject_lifetime_test.cc has win32-isms - # (HWND, CALLBACK). - '../../plugins/npapi/test/plugin_npobject_lifetime_test.cc', - # The window APIs are necessarily platform-specific. - '../../plugins/npapi/test/plugin_window_size_test.cc', - '../../plugins/npapi/test/plugin_windowed_test.cc', - # Seems windows specific. - '../../plugins/npapi/test/plugin_create_instance_in_paint.cc', - '../../plugins/npapi/test/plugin_create_instance_in_paint.h', - # windows-specific resources - '../../plugins/npapi/test/npapi_test.def', - '../../plugins/npapi/test/npapi_test.rc', - ], - }], - ['OS=="mac"', { - 'product_extension': 'plugin', - 'link_settings': { - 'libraries': [ - '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', - ], - }, - }], - ['os_posix == 1 and OS != "mac" and (target_arch == "x64" or target_arch == "arm")', { - # Shared libraries need -fPIC on x86-64 - 'cflags': ['-fPIC'] - }], - ], - }, - { - 'target_name': 'copy_npapi_test_plugin', - 'type': 'none', - 'dependencies': [ - 'npapi_test_plugin', - ], - 'conditions': [ - ['OS=="win"', { - 'copies': [ - { - 'destination': '<(PRODUCT_DIR)/plugins', - 'files': ['<(PRODUCT_DIR)/npapi_test_plugin.dll'], - }, - ], - }], - ['OS=="mac"', { - 'copies': [ - { - 'destination': '<(PRODUCT_DIR)/plugins/', - 'files': ['<(PRODUCT_DIR)/npapi_test_plugin.plugin'], - }, - ] - }], - ['os_posix == 1 and OS != "mac"', { - 'copies': [ - { - 'destination': '<(PRODUCT_DIR)/plugins', - 'files': ['<(PRODUCT_DIR)/libnpapi_test_plugin.so'], - }, - ], - }], - ], - }, - ], - }], - ], -} diff --git a/webkit/webkit.gyp b/webkit/webkit.gyp index 464ff85..8805a8c 100644 --- a/webkit/webkit.gyp +++ b/webkit/webkit.gyp @@ -5,7 +5,6 @@ { 'includes': [ '../build/win_precompile.gypi', - 'tools/test_shell/test_shell.gypi', ], 'variables': { 'chromium_code': 1, @@ -25,5 +24,28 @@ '../third_party/WebKit/Tools/DumpRenderTree/DumpRenderTree.gyp/DumpRenderTree.gyp:DumpRenderTree' ], }, - ], # targets + { + 'target_name': 'pull_in_copy_TestNetscapePlugIn', + 'type': 'none', + 'dependencies': [ + '../third_party/WebKit/Tools/DumpRenderTree/DumpRenderTree.gyp/DumpRenderTree.gyp:copy_TestNetscapePlugIn' + ], + }, + ], + 'conditions': [ + # Currently test_shell compiles only on Windows, Mac, and Gtk. + ['OS=="win" or OS=="mac" or toolkit_uses_gtk==1', { + 'targets': [ + { + # TODO(darin): Delete this dummy target once the build masters stop + # trying to build it. + 'target_name': 'test_shell', + 'type': 'static_library', + 'sources': [ + 'support/test_shell_dummy.cc', + ], + }, + ], + }], + ], } |