diff options
author | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-30 22:35:53 +0000 |
---|---|---|
committer | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-30 22:35:53 +0000 |
commit | 6aaecfde3c347086a6085da169d57b0303c3ccd6 (patch) | |
tree | 2ca96e9381018da170c7deb118193eda874046c3 /webkit | |
parent | e522cf7889669bfd5153a2d32ac47246bcee2883 (diff) | |
download | chromium_src-6aaecfde3c347086a6085da169d57b0303c3ccd6.zip chromium_src-6aaecfde3c347086a6085da169d57b0303c3ccd6.tar.gz chromium_src-6aaecfde3c347086a6085da169d57b0303c3ccd6.tar.bz2 |
Revert "Move C++ code from webkit/tools/test_shell to webkit/support"
This reverts commit e522cf7889669bfd5153a2d32ac47246bcee2883.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203243 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/plugins/webkit_plugins.gypi | 182 | ||||
-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/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 | 50 | ||||
-rw-r--r-- | webkit/tools/test_shell/DEPS | 7 | ||||
-rw-r--r-- | webkit/tools/test_shell/mac/DumpRenderTreePasteboard.h (renamed from webkit/support/mac/DumpRenderTreePasteboard.h) | 0 | ||||
-rw-r--r-- | webkit/tools/test_shell/mac/DumpRenderTreePasteboard.m (renamed from webkit/support/mac/DumpRenderTreePasteboard.m) | 0 | ||||
-rw-r--r-- | webkit/tools/test_shell/mock_webclipboard_impl.cc (renamed from webkit/support/mock_webclipboard_impl.cc) | 2 | ||||
-rw-r--r-- | webkit/tools/test_shell/mock_webclipboard_impl.h (renamed from webkit/support/mock_webclipboard_impl.h) | 6 | ||||
-rw-r--r-- | webkit/tools/test_shell/simple_appcache_system.cc (renamed from webkit/support/simple_appcache_system.cc) | 4 | ||||
-rw-r--r-- | webkit/tools/test_shell/simple_appcache_system.h (renamed from webkit/support/simple_appcache_system.h) | 6 | ||||
-rw-r--r-- | webkit/tools/test_shell/simple_clipboard_impl.cc (renamed from webkit/support/simple_clipboard_impl.cc) | 2 | ||||
-rw-r--r-- | webkit/tools/test_shell/simple_clipboard_impl.h (renamed from webkit/support/simple_clipboard_impl.h) | 6 | ||||
-rw-r--r-- | webkit/tools/test_shell/simple_dom_storage_system.cc (renamed from webkit/support/simple_dom_storage_system.cc) | 2 | ||||
-rw-r--r-- | webkit/tools/test_shell/simple_dom_storage_system.h (renamed from webkit/support/simple_dom_storage_system.h) | 6 | ||||
-rw-r--r-- | webkit/tools/test_shell/simple_file_system.cc (renamed from webkit/support/simple_file_system.cc) | 4 | ||||
-rw-r--r-- | webkit/tools/test_shell/simple_file_system.h (renamed from webkit/support/simple_file_system.h) | 6 | ||||
-rw-r--r-- | webkit/tools/test_shell/simple_file_writer.cc (renamed from webkit/support/simple_file_writer.cc) | 4 | ||||
-rw-r--r-- | webkit/tools/test_shell/simple_file_writer.h (renamed from webkit/support/simple_file_writer.h) | 6 | ||||
-rw-r--r-- | webkit/tools/test_shell/simple_resource_loader_bridge.cc (renamed from webkit/support/simple_resource_loader_bridge.cc) | 14 | ||||
-rw-r--r-- | webkit/tools/test_shell/simple_resource_loader_bridge.h (renamed from webkit/support/simple_resource_loader_bridge.h) | 6 | ||||
-rw-r--r-- | webkit/tools/test_shell/simple_socket_stream_bridge.cc (renamed from webkit/support/simple_socket_stream_bridge.cc) | 6 | ||||
-rw-r--r-- | webkit/tools/test_shell/simple_socket_stream_bridge.h (renamed from webkit/support/simple_socket_stream_bridge.h) | 6 | ||||
-rw-r--r-- | webkit/tools/test_shell/simple_webcookiejar_impl.cc (renamed from webkit/support/simple_webcookiejar_impl.cc) | 4 | ||||
-rw-r--r-- | webkit/tools/test_shell/simple_webcookiejar_impl.h (renamed from webkit/support/simple_webcookiejar_impl.h) | 6 | ||||
-rw-r--r-- | webkit/tools/test_shell/test_shell.gypi | 198 | ||||
-rw-r--r-- | webkit/tools/test_shell/test_shell_dummy.cc (renamed from webkit/support/test_shell_dummy.cc) | 0 | ||||
-rw-r--r-- | webkit/tools/test_shell/test_shell_request_context.cc (renamed from webkit/support/test_shell_request_context.cc) | 9 | ||||
-rw-r--r-- | webkit/tools/test_shell/test_shell_request_context.h (renamed from webkit/support/test_shell_request_context.h) | 6 | ||||
-rw-r--r-- | webkit/tools/test_shell/test_shell_webblobregistry_impl.cc (renamed from webkit/support/test_shell_webblobregistry_impl.cc) | 2 | ||||
-rw-r--r-- | webkit/tools/test_shell/test_shell_webblobregistry_impl.h (renamed from webkit/support/test_shell_webblobregistry_impl.h) | 6 | ||||
-rw-r--r-- | webkit/tools/test_shell/test_shell_webmimeregistry_impl.cc (renamed from webkit/support/test_shell_webmimeregistry_impl.cc) | 2 | ||||
-rw-r--r-- | webkit/tools/test_shell/test_shell_webmimeregistry_impl.h (renamed from webkit/support/test_shell_webmimeregistry_impl.h) | 6 | ||||
-rw-r--r-- | webkit/webkit.gyp | 19 |
37 files changed, 324 insertions, 301 deletions
diff --git a/webkit/plugins/webkit_plugins.gypi b/webkit/plugins/webkit_plugins.gypi index 6df48631..2b5738b 100644 --- a/webkit/plugins/webkit_plugins.gypi +++ b/webkit/plugins/webkit_plugins.gypi @@ -246,6 +246,9 @@ '<(DEPTH)/build/linux/system.gyp:gtk', ], 'sources/': [['exclude', '_x11\\.cc$']], + 'sources!': [ + 'plugins/plugin_stubs.cc', + ], }], ['use_aura==1', { 'sources/': [ @@ -282,182 +285,11 @@ 'include_dirs': [ '<(DEPTH)/third_party/wtl/include', ], - }], - ], - }, - { - 'target_name': 'test_mock_plugin_list', - 'type': 'static_library', - 'dependencies': [ - '<(DEPTH)/webkit/support/webkit_support.gyp:glue' - ], - 'sources': [ - '../plugins/npapi/mock_plugin_list.cc', - '../plugins/npapi/mock_plugin_list.h', - ] - }, - { - 'target_name': 'pull_in_copy_TestNetscapePlugIn', - 'type': 'none', - 'dependencies': [ - '<(DEPTH)/third_party/WebKit/Tools/DumpRenderTree/DumpRenderTree.gyp/DumpRenderTree.gyp:copy_TestNetscapePlugIn' - ], - }, - ], - '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': [ - '../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'], - }, - ], - }], + 'sources!': [ + 'plugins/plugin_stubs.cc', ], - }, + }], ], - }], + } ], } diff --git a/webkit/support/platform_support_android.cc b/webkit/support/platform_support_android.cc index 581c974..3c1e2c4 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 9a48d95..5abd93f 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" -#import "webkit/support/drt_application_mac.h" -#import "webkit/support/mac/DumpRenderTreePasteboard.h" #include "webkit/support/test_webkit_platform_support.h" +#import "webkit/support/drt_application_mac.h" +#import "webkit/tools/test_shell/mac/DumpRenderTreePasteboard.h" static ui::DataPack* g_resource_data_pack = NULL; diff --git a/webkit/support/test_webkit_platform_support.cc b/webkit/support/test_webkit_platform_support.cc index 3f7e715..764ec9d 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 1a85dfa..adc02c4 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 6d05915..7de92db 100644 --- a/webkit/support/webkit_support.cc +++ b/webkit/support/webkit_support.cc @@ -71,15 +71,15 @@ #include "webkit/plugins/webplugininfo.h" #include "webkit/renderer/compositor_bindings/web_compositor_support_impl.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 7e84124..9a6b9f70 100644 --- a/webkit/support/webkit_support.gypi +++ b/webkit/support/webkit_support.gypi @@ -129,31 +129,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/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/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/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 new file mode 100644 index 0000000..40948f2 --- /dev/null +++ b/webkit/tools/test_shell/DEPS @@ -0,0 +1,7 @@ +include_rules = [ + "+breakpad", + "+mac", + "+third_party/zlib", + "+ui", + "+webkit/support" +] diff --git a/webkit/support/mac/DumpRenderTreePasteboard.h b/webkit/tools/test_shell/mac/DumpRenderTreePasteboard.h index 41796ea3..41796ea3 100644 --- a/webkit/support/mac/DumpRenderTreePasteboard.h +++ b/webkit/tools/test_shell/mac/DumpRenderTreePasteboard.h diff --git a/webkit/support/mac/DumpRenderTreePasteboard.m b/webkit/tools/test_shell/mac/DumpRenderTreePasteboard.m index 3e3cf1c..3e3cf1c 100644 --- a/webkit/support/mac/DumpRenderTreePasteboard.m +++ b/webkit/tools/test_shell/mac/DumpRenderTreePasteboard.m diff --git a/webkit/support/mock_webclipboard_impl.cc b/webkit/tools/test_shell/mock_webclipboard_impl.cc index e71681c..ec78d0a 100644 --- a/webkit/support/mock_webclipboard_impl.cc +++ b/webkit/tools/test_shell/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/support/mock_webclipboard_impl.h" +#include "webkit/tools/test_shell/mock_webclipboard_impl.h" #include <algorithm> diff --git a/webkit/support/mock_webclipboard_impl.h b/webkit/tools/test_shell/mock_webclipboard_impl.h index 845d1bf..1ec33b2 100644 --- a/webkit/support/mock_webclipboard_impl.h +++ b/webkit/tools/test_shell/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_SUPPORT_MOCK_WEBCLIPBOARD_IMPL_H_ -#define WEBKIT_SUPPORT_MOCK_WEBCLIPBOARD_IMPL_H_ +#ifndef WEBKIT_TOOLS_TEST_SHELL_MOCK_WEBCLIPBOARD_IMPL_H_ +#define WEBKIT_TOOLS_TEST_SHELL_MOCK_WEBCLIPBOARD_IMPL_H_ #include <map> @@ -57,4 +57,4 @@ class MockWebClipboardImpl : public WebKit::WebClipboard { bool m_writeSmartPaste; }; -#endif // WEBKIT_SUPPORT_MOCK_WEBCLIPBOARD_IMPL_H_ +#endif // WEBKIT_TOOLS_TEST_SHELL_MOCK_WEBCLIPBOARD_IMPL_H_ diff --git a/webkit/support/simple_appcache_system.cc b/webkit/tools/test_shell/simple_appcache_system.cc index 1305bc9..7c6e0ed 100644 --- a/webkit/support/simple_appcache_system.cc +++ b/webkit/tools/test_shell/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/support/simple_appcache_system.h" +#include "webkit/tools/test_shell/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/support/simple_resource_loader_bridge.h" +#include "webkit/tools/test_shell/simple_resource_loader_bridge.h" using WebKit::WebApplicationCacheHost; using WebKit::WebApplicationCacheHostClient; diff --git a/webkit/support/simple_appcache_system.h b/webkit/tools/test_shell/simple_appcache_system.h index c07a52f..e6639ad 100644 --- a/webkit/support/simple_appcache_system.h +++ b/webkit/tools/test_shell/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_SUPPORT_SIMPLE_APPCACHE_SYSTEM_H_ -#define WEBKIT_SUPPORT_SIMPLE_APPCACHE_SYSTEM_H_ +#ifndef WEBKIT_TOOLS_TEST_SHELL_SIMPLE_APPCACHE_SYSTEM_H_ +#define WEBKIT_TOOLS_TEST_SHELL_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_SUPPORT_SIMPLE_APPCACHE_SYSTEM_H_ +#endif // WEBKIT_TOOLS_TEST_SHELL_SIMPLE_APPCACHE_SYSTEM_H_ diff --git a/webkit/support/simple_clipboard_impl.cc b/webkit/tools/test_shell/simple_clipboard_impl.cc index ac10492..4e63b8ab 100644 --- a/webkit/support/simple_clipboard_impl.cc +++ b/webkit/tools/test_shell/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/support/simple_clipboard_impl.h" +#include "webkit/tools/test_shell/simple_clipboard_impl.h" #include <string> diff --git a/webkit/support/simple_clipboard_impl.h b/webkit/tools/test_shell/simple_clipboard_impl.h index 0d3d146..9a8b438 100644 --- a/webkit/support/simple_clipboard_impl.h +++ b/webkit/tools/test_shell/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_SUPPORT_SIMPLE_CLIPBOARD_IMPL_H_ -#define WEBKIT_SUPPORT_SIMPLE_CLIPBOARD_IMPL_H_ +#ifndef WEBKIT_TOOLS_TEST_SHELL_SIMPLE_CLIPBOARD_IMPL_H_ +#define WEBKIT_TOOLS_TEST_SHELL_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_SUPPORT_SIMPLE_CLIPBOARD_IMPL_H_ +#endif // WEBKIT_TOOLS_TEST_SHELL_SIMPLE_CLIPBOARD_IMPL_H_ diff --git a/webkit/support/simple_dom_storage_system.cc b/webkit/tools/test_shell/simple_dom_storage_system.cc index 3f98697..3599bec 100644 --- a/webkit/support/simple_dom_storage_system.cc +++ b/webkit/tools/test_shell/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/support/simple_dom_storage_system.h" +#include "webkit/tools/test_shell/simple_dom_storage_system.h" #include "base/auto_reset.h" #include "googleurl/src/gurl.h" diff --git a/webkit/support/simple_dom_storage_system.h b/webkit/tools/test_shell/simple_dom_storage_system.h index 5158794..8f46542 100644 --- a/webkit/support/simple_dom_storage_system.h +++ b/webkit/tools/test_shell/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_SUPPORT_SIMPLE_DOM_STORAGE_SYSTEM_H_ -#define WEBKIT_SUPPORT_SIMPLE_DOM_STORAGE_SYSTEM_H_ +#ifndef WEBKIT_TOOLS_TEST_SHELL_SIMPLE_DOM_STORAGE_SYSTEM_H_ +#define WEBKIT_TOOLS_TEST_SHELL_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_SUPPORT_SIMPLE_DOM_STORAGE_SYSTEM_H_ +#endif // WEBKIT_TOOLS_TEST_SHELL_SIMPLE_DOM_STORAGE_SYSTEM_H_ diff --git a/webkit/support/simple_file_system.cc b/webkit/tools/test_shell/simple_file_system.cc index 6318e2b..75cbd72 100644 --- a/webkit/support/simple_file_system.cc +++ b/webkit/tools/test_shell/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/support/simple_file_system.h" +#include "webkit/tools/test_shell/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/support/simple_file_writer.h" +#include "webkit/tools/test_shell/simple_file_writer.h" using base::WeakPtr; diff --git a/webkit/support/simple_file_system.h b/webkit/tools/test_shell/simple_file_system.h index 6430aa0..464c591 100644 --- a/webkit/support/simple_file_system.h +++ b/webkit/tools/test_shell/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_SUPPORT_SIMPLE_FILE_SYSTEM_H_ -#define WEBKIT_SUPPORT_SIMPLE_FILE_SYSTEM_H_ +#ifndef WEBKIT_TOOLS_TEST_SHELL_SIMPLE_FILE_SYSTEM_H_ +#define WEBKIT_TOOLS_TEST_SHELL_SIMPLE_FILE_SYSTEM_H_ #include <vector> @@ -157,4 +157,4 @@ class SimpleFileSystem DISALLOW_COPY_AND_ASSIGN(SimpleFileSystem); }; -#endif // WEBKIT_SUPPORT_SIMPLE_FILE_SYSTEM_H_ +#endif // WEBKIT_TOOLS_TEST_SHELL_SIMPLE_FILE_SYSTEM_H_ diff --git a/webkit/support/simple_file_writer.cc b/webkit/tools/test_shell/simple_file_writer.cc index 4c5837a..a09df46 100644 --- a/webkit/support/simple_file_writer.cc +++ b/webkit/tools/test_shell/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/support/simple_file_writer.h" +#include "webkit/tools/test_shell/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/support/simple_resource_loader_bridge.h" +#include "webkit/tools/test_shell/simple_resource_loader_bridge.h" using fileapi::FileSystemURL; using fileapi::FileSystemContext; diff --git a/webkit/support/simple_file_writer.h b/webkit/tools/test_shell/simple_file_writer.h index 778fb55..41f11fa 100644 --- a/webkit/support/simple_file_writer.h +++ b/webkit/tools/test_shell/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_SUPPORT_SIMPLE_FILE_WRITER_H_ -#define WEBKIT_SUPPORT_SIMPLE_FILE_WRITER_H_ +#ifndef WEBKIT_TOOLS_TEST_SHELL_SIMPLE_FILE_WRITER_H_ +#define WEBKIT_TOOLS_TEST_SHELL_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_SUPPORT_SIMPLE_FILE_WRITER_H_ +#endif // WEBKIT_TOOLS_TEST_SHELL_SIMPLE_FILE_WRITER_H_ diff --git a/webkit/support/simple_resource_loader_bridge.cc b/webkit/tools/test_shell/simple_resource_loader_bridge.cc index b43c094..0e37a94 100644 --- a/webkit/support/simple_resource_loader_bridge.cc +++ b/webkit/tools/test_shell/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/support/simple_resource_loader_bridge.h" +#include "webkit/tools/test_shell/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/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" +#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" #if defined(OS_MACOSX) || defined(OS_WIN) #include "crypto/nss_util.h" diff --git a/webkit/support/simple_resource_loader_bridge.h b/webkit/tools/test_shell/simple_resource_loader_bridge.h index ea73ee7..35d38b5 100644 --- a/webkit/support/simple_resource_loader_bridge.h +++ b/webkit/tools/test_shell/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_SUPPORT_SIMPLE_RESOURCE_LOADER_BRIDGE_H__ -#define WEBKIT_SUPPORT_SIMPLE_RESOURCE_LOADER_BRIDGE_H__ +#ifndef WEBKIT_TOOLS_TEST_SHELL_SIMPLE_RESOURCE_LOADER_BRIDGE_H__ +#define WEBKIT_TOOLS_TEST_SHELL_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_SUPPORT_SIMPLE_RESOURCE_LOADER_BRIDGE_H__ +#endif // WEBKIT_TOOLS_TEST_SHELL_SIMPLE_RESOURCE_LOADER_BRIDGE_H__ diff --git a/webkit/support/simple_socket_stream_bridge.cc b/webkit/tools/test_shell/simple_socket_stream_bridge.cc index a0e425d..85bdc06 100644 --- a/webkit/support/simple_socket_stream_bridge.cc +++ b/webkit/tools/test_shell/simple_socket_stream_bridge.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/support/simple_socket_stream_bridge.h" - #include <vector> +#include "webkit/tools/test_shell/simple_socket_stream_bridge.h" + #include "base/atomicops.h" #include "base/bind.h" #include "base/memory/ref_counted.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/url_request/url_request_context.h" #include "net/websockets/websocket_job.h" +#include "net/url_request/url_request_context.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/support/simple_socket_stream_bridge.h b/webkit/tools/test_shell/simple_socket_stream_bridge.h index a68e3f1..dee2120 100644 --- a/webkit/support/simple_socket_stream_bridge.h +++ b/webkit/tools/test_shell/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_SUPPORT_SIMPLE_SOCKET_STREAM_BRIDGE_H_ -#define WEBKIT_SUPPORT_SIMPLE_SOCKET_STREAM_BRIDGE_H_ +#ifndef WEBKIT_TOOLS_TEST_SHELL_SIMPLE_SOCKET_STREAM_BRIDGE_H_ +#define WEBKIT_TOOLS_TEST_SHELL_SIMPLE_SOCKET_STREAM_BRIDGE_H_ #include "base/basictypes.h" @@ -32,4 +32,4 @@ class SimpleSocketStreamBridge { DISALLOW_IMPLICIT_CONSTRUCTORS(SimpleSocketStreamBridge); }; -#endif // WEBKIT_SUPPORT_SIMPLE_SOCKET_STREAM_BRIDGE_H_ +#endif // WEBKIT_TOOLS_TEST_SHELL_SIMPLE_SOCKET_STREAM_BRIDGE_H_ diff --git a/webkit/support/simple_webcookiejar_impl.cc b/webkit/tools/test_shell/simple_webcookiejar_impl.cc index 771d6f4..8636404 100644 --- a/webkit/support/simple_webcookiejar_impl.cc +++ b/webkit/tools/test_shell/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/support/simple_webcookiejar_impl.h" +#include "webkit/tools/test_shell/simple_webcookiejar_impl.h" #include "third_party/WebKit/public/platform/WebURL.h" -#include "webkit/support/simple_resource_loader_bridge.h" +#include "webkit/tools/test_shell/simple_resource_loader_bridge.h" using WebKit::WebString; using WebKit::WebURL; diff --git a/webkit/support/simple_webcookiejar_impl.h b/webkit/tools/test_shell/simple_webcookiejar_impl.h index cb89d03..93ea5b5 100644 --- a/webkit/support/simple_webcookiejar_impl.h +++ b/webkit/tools/test_shell/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_SUPPORT_SIMPLE_WEBCOOKIEJAR_IMPL_H_ -#define WEBKIT_SUPPORT_SIMPLE_WEBCOOKIEJAR_IMPL_H_ +#ifndef WEBKIT_TOOLS_TEST_SHELL_SIMPLE_WEBCOOKIEJAR_IMPL_H_ +#define WEBKIT_TOOLS_TEST_SHELL_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_SUPPORT_SIMPLE_WEBCOOKIEJAR_IMPL_H_ +#endif // WEBKIT_TOOLS_TEST_SHELL_SIMPLE_WEBCOOKIEJAR_IMPL_H_ diff --git a/webkit/tools/test_shell/test_shell.gypi b/webkit/tools/test_shell/test_shell.gypi new file mode 100644 index 0000000..0c8e3d3 --- /dev/null +++ b/webkit/tools/test_shell/test_shell.gypi @@ -0,0 +1,198 @@ +# 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/support/test_shell_dummy.cc b/webkit/tools/test_shell/test_shell_dummy.cc index e1a88a9..e1a88a9 100644 --- a/webkit/support/test_shell_dummy.cc +++ b/webkit/tools/test_shell/test_shell_dummy.cc diff --git a/webkit/support/test_shell_request_context.cc b/webkit/tools/test_shell/test_shell_request_context.cc index b7eadfc..bc36f69 100644 --- a/webkit/support/test_shell_request_context.cc +++ b/webkit/tools/test_shell/test_shell_request_context.cc @@ -2,13 +2,14 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "webkit/support/test_shell_request_context.h" +#include "webkit/tools/test_shell/test_shell_request_context.h" + +#include "build/build_config.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" @@ -33,8 +34,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/support/simple_file_system.h" -#include "webkit/support/simple_resource_loader_bridge.h" +#include "webkit/tools/test_shell/simple_file_system.h" +#include "webkit/tools/test_shell/simple_resource_loader_bridge.h" class TestShellHttpUserAgentSettings : public net::HttpUserAgentSettings { public: diff --git a/webkit/support/test_shell_request_context.h b/webkit/tools/test_shell/test_shell_request_context.h index 40d36f5..bcd59e4 100644 --- a/webkit/support/test_shell_request_context.h +++ b/webkit/tools/test_shell/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_SUPPORT_TEST_SHELL_REQUEST_CONTEXT_H_ -#define WEBKIT_SUPPORT_TEST_SHELL_REQUEST_CONTEXT_H_ +#ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_REQUEST_CONTEXT_H_ +#define WEBKIT_TOOLS_TEST_SHELL_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_SUPPORT_TEST_SHELL_REQUEST_CONTEXT_H_ +#endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_REQUEST_CONTEXT_H_ diff --git a/webkit/support/test_shell_webblobregistry_impl.cc b/webkit/tools/test_shell/test_shell_webblobregistry_impl.cc index 68fa71c..3374dac 100644 --- a/webkit/support/test_shell_webblobregistry_impl.cc +++ b/webkit/tools/test_shell/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/support/test_shell_webblobregistry_impl.h" +#include "webkit/tools/test_shell/test_shell_webblobregistry_impl.h" #include "base/bind.h" #include "base/message_loop.h" diff --git a/webkit/support/test_shell_webblobregistry_impl.h b/webkit/tools/test_shell/test_shell_webblobregistry_impl.h index 278ee1c..1eaf395 100644 --- a/webkit/support/test_shell_webblobregistry_impl.h +++ b/webkit/tools/test_shell/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_SUPPORT_TEST_SHELL_WEBBLOBREGISTRY_IMPL_H_ -#define WEBKIT_SUPPORT_TEST_SHELL_WEBBLOBREGISTRY_IMPL_H_ +#ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBBLOBREGISTRY_IMPL_H_ +#define WEBKIT_TOOLS_TEST_SHELL_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_SUPPORT_TEST_SHELL_WEBBLOBREGISTRY_IMPL_H_ +#endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBBLOBREGISTRY_IMPL_H_ diff --git a/webkit/support/test_shell_webmimeregistry_impl.cc b/webkit/tools/test_shell/test_shell_webmimeregistry_impl.cc index eab4b25..06a880b 100644 --- a/webkit/support/test_shell_webmimeregistry_impl.cc +++ b/webkit/tools/test_shell/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/support/test_shell_webmimeregistry_impl.h" +#include "webkit/tools/test_shell/test_shell_webmimeregistry_impl.h" #include "base/basictypes.h" #include "base/string_util.h" diff --git a/webkit/support/test_shell_webmimeregistry_impl.h b/webkit/tools/test_shell/test_shell_webmimeregistry_impl.h index b6e876d..6fcff259 100644 --- a/webkit/support/test_shell_webmimeregistry_impl.h +++ b/webkit/tools/test_shell/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_SUPPORT_TEST_SHELL_WEBMIMEREGISTRY_IMPL_H_ -#define WEBKIT_SUPPORT_TEST_SHELL_WEBMIMEREGISTRY_IMPL_H_ +#ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBMIMEREGISTRY_IMPL_H_ +#define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBMIMEREGISTRY_IMPL_H_ #include <string> #include <vector> @@ -42,4 +42,4 @@ class TestShellWebMimeRegistryImpl DISALLOW_COPY_AND_ASSIGN(TestShellWebMimeRegistryImpl); }; -#endif // WEBKIT_SUPPORT_TEST_SHELL_WEBMIMEREGISTRY_IMPL_H_ +#endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBMIMEREGISTRY_IMPL_H_ diff --git a/webkit/webkit.gyp b/webkit/webkit.gyp index 8904f31..464ff85 100644 --- a/webkit/webkit.gyp +++ b/webkit/webkit.gyp @@ -5,6 +5,7 @@ { 'includes': [ '../build/win_precompile.gypi', + 'tools/test_shell/test_shell.gypi', ], 'variables': { 'chromium_code': 1, @@ -24,21 +25,5 @@ '../third_party/WebKit/Tools/DumpRenderTree/DumpRenderTree.gyp/DumpRenderTree.gyp:DumpRenderTree' ], }, - ], - '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', - ], - }, - ], - }], - ], + ], # targets } |