diff options
author | amanda@chromium.org <amanda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-28 22:56:14 +0000 |
---|---|---|
committer | amanda@chromium.org <amanda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-28 22:56:14 +0000 |
commit | 07fb7781cf16e2be1915037b8d8446879720eb01 (patch) | |
tree | cc4b4d81284c5285268a3851d837c5f1094ba9d4 /webkit | |
parent | f43aacb0ea0e38c8b5b43042127cd46fd4b3fe05 (diff) | |
download | chromium_src-07fb7781cf16e2be1915037b8d8446879720eb01.zip chromium_src-07fb7781cf16e2be1915037b8d8446879720eb01.tar.gz chromium_src-07fb7781cf16e2be1915037b8d8446879720eb01.tar.bz2 |
Add the npapi_test_plugin to the Mac build of test_shell
Review URL: http://codereview.chromium.org/99154
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14789 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/glue/plugins/test/plugin_javascript_open_popup.cc | 6 | ||||
-rw-r--r-- | webkit/tools/test_shell/test_shell.gyp | 155 |
2 files changed, 86 insertions, 75 deletions
diff --git a/webkit/glue/plugins/test/plugin_javascript_open_popup.cc b/webkit/glue/plugins/test/plugin_javascript_open_popup.cc index d543a8c..9af6656 100644 --- a/webkit/glue/plugins/test/plugin_javascript_open_popup.cc +++ b/webkit/glue/plugins/test/plugin_javascript_open_popup.cc @@ -95,6 +95,12 @@ bool ExecuteJavascriptPopupWindowTargetPluginTest::CheckWindow( return false; } +#elif defined(OS_MACOSX) +bool ExecuteJavascriptPopupWindowTargetPluginTest::CheckWindow( + NPWindow* window) { + // TODO(port) scaffolding--replace with a real test once NPWindow is done. + return false; +} #endif } // namespace NPAPIClient diff --git a/webkit/tools/test_shell/test_shell.gyp b/webkit/tools/test_shell/test_shell.gyp index b540fa5..baa8f6d 100644 --- a/webkit/tools/test_shell/test_shell.gyp +++ b/webkit/tools/test_shell/test_shell.gyp @@ -109,12 +109,12 @@ ['OS!="win"', { 'dependencies': [ 'npapi_layout_test_plugin', + 'npapi_test_plugin', ], }], ['OS=="linux"', { 'dependencies': [ 'test_shell_resources', - 'npapi_test_plugin', '../../../build/linux/system.gyp:gtk', ], # for: test_shell_gtk.cc @@ -291,6 +291,85 @@ ], }, { + 'target_name': 'npapi_test_plugin', + 'type': 'loadable_module', + 'mac_bundle': 1, + 'product_dir': '<(PRODUCT_DIR)/plugins', + 'msvs_guid': '0D04AEC1-6B68-492C-BCCF-808DFD69ABC6', + 'dependencies': [ + '../../../base/base.gyp:base', + '../../../third_party/icu38/icu38.gyp:icuuc', + '../../../third_party/npapi/npapi.gyp:npapi', + ], + 'sources': [ + '../../glue/plugins/test/npapi_constants.cc', + '../../glue/plugins/test/npapi_constants.h', + '../../glue/plugins/test/npapi_test.cc', + '../../glue/plugins/test/npapi_test.def', + '../../glue/plugins/test/npapi_test.rc', + '../../glue/plugins/test/plugin_arguments_test.cc', + '../../glue/plugins/test/plugin_arguments_test.h', + '../../glue/plugins/test/plugin_client.cc', + '../../glue/plugins/test/plugin_client.h', + '../../glue/plugins/test/plugin_delete_plugin_in_stream_test.cc', + '../../glue/plugins/test/plugin_delete_plugin_in_stream_test.h', + '../../glue/plugins/test/plugin_get_javascript_url_test.cc', + '../../glue/plugins/test/plugin_get_javascript_url_test.h', + '../../glue/plugins/test/plugin_geturl_test.cc', + '../../glue/plugins/test/plugin_geturl_test.h', + '../../glue/plugins/test/plugin_javascript_open_popup.cc', + '../../glue/plugins/test/plugin_javascript_open_popup.h', + '../../glue/plugins/test/plugin_new_fails_test.cc', + '../../glue/plugins/test/plugin_new_fails_test.h', + '../../glue/plugins/test/plugin_npobject_lifetime_test.cc', + '../../glue/plugins/test/plugin_npobject_lifetime_test.h', + '../../glue/plugins/test/plugin_npobject_proxy_test.cc', + '../../glue/plugins/test/plugin_npobject_proxy_test.h', + '../../glue/plugins/test/plugin_private_test.cc', + '../../glue/plugins/test/plugin_private_test.h', + '../../glue/plugins/test/plugin_test.cc', + '../../glue/plugins/test/plugin_test.h', + '../../glue/plugins/test/plugin_window_size_test.cc', + '../../glue/plugins/test/plugin_window_size_test.h', + '../../glue/plugins/test/plugin_windowless_test.cc', + '../../glue/plugins/test/plugin_windowless_test.h', + '../../glue/plugins/test/resource.h', + ], + 'include_dirs': [ + '../../..', + ], + 'xcode_settings': { + 'INFOPLIST_FILE': '../../glue/plugins/test/Info.plist', + }, + 'conditions': [ + ['OS!="win"', { + 'sources!': [ + # TODO(port): Port these. + + # plugin_npobject_lifetime_test.cc has win32-isms + # (HWND, CALLBACK). + '../../glue/plugins/test/plugin_npobject_lifetime_test.cc', + + # The windowed/windowless APIs are necessarily + # platform-specific. + '../../glue/plugins/test/plugin_window_size_test.cc', + '../../glue/plugins/test/plugin_windowless_test.cc', + + # windows-specific resources + '../../glue/plugins/test/npapi_test.def', + '../../glue/plugins/test/npapi_test.rc', + ], + }], + ['OS=="mac"', { + 'link_settings': { + 'libraries': [ + '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', + ], + }, + }], + ], + }, + { 'target_name': 'test_shell_tests', 'type': 'executable', 'msvs_guid': 'E6766F81-1FCD-4CD7-BC16-E36964A14867', @@ -409,80 +488,6 @@ }, ], }], - ['OS!="mac"', { - 'targets': [ - { - 'target_name': 'npapi_test_plugin', - 'type': 'loadable_module', - 'product_dir': '<(PRODUCT_DIR)/plugins', - 'msvs_guid': '0D04AEC1-6B68-492C-BCCF-808DFD69ABC6', - 'dependencies': [ - '../../../base/base.gyp:base', - '../../../third_party/icu38/icu38.gyp:icuuc', - '../../../third_party/npapi/npapi.gyp:npapi', - ], - 'sources': [ - '../../glue/plugins/test/npapi_constants.cc', - '../../glue/plugins/test/npapi_constants.h', - '../../glue/plugins/test/npapi_test.cc', - '../../glue/plugins/test/npapi_test.def', - '../../glue/plugins/test/npapi_test.rc', - '../../glue/plugins/test/plugin_arguments_test.cc', - '../../glue/plugins/test/plugin_arguments_test.h', - '../../glue/plugins/test/plugin_client.cc', - '../../glue/plugins/test/plugin_client.h', - '../../glue/plugins/test/plugin_delete_plugin_in_stream_test.cc', - '../../glue/plugins/test/plugin_delete_plugin_in_stream_test.h', - '../../glue/plugins/test/plugin_get_javascript_url_test.cc', - '../../glue/plugins/test/plugin_get_javascript_url_test.h', - '../../glue/plugins/test/plugin_geturl_test.cc', - '../../glue/plugins/test/plugin_geturl_test.h', - '../../glue/plugins/test/plugin_javascript_open_popup.cc', - '../../glue/plugins/test/plugin_javascript_open_popup.h', - '../../glue/plugins/test/plugin_new_fails_test.cc', - '../../glue/plugins/test/plugin_new_fails_test.h', - '../../glue/plugins/test/plugin_npobject_lifetime_test.cc', - '../../glue/plugins/test/plugin_npobject_lifetime_test.h', - '../../glue/plugins/test/plugin_npobject_proxy_test.cc', - '../../glue/plugins/test/plugin_npobject_proxy_test.h', - '../../glue/plugins/test/plugin_private_test.cc', - '../../glue/plugins/test/plugin_private_test.h', - '../../glue/plugins/test/plugin_test.cc', - '../../glue/plugins/test/plugin_test.h', - '../../glue/plugins/test/plugin_window_size_test.cc', - '../../glue/plugins/test/plugin_window_size_test.h', - '../../glue/plugins/test/plugin_windowless_test.cc', - '../../glue/plugins/test/plugin_windowless_test.h', - '../../glue/plugins/test/resource.h', - ], - 'include_dirs': [ - '../../..', - ], - 'conditions': [ - ['OS=="linux"', { - 'sources!': [ - # TODO(port): Port these. - - # plugin_npobject_lifetime_test.cc has win32-isms - # (HWND, CALLBACK). - '../../glue/plugins/test/plugin_npobject_lifetime_test.cc', - - # The windowed/windowless APIs are necessarily - # platform-specific. - '../../glue/plugins/test/plugin_window_size_test.cc', - '../../glue/plugins/test/plugin_windowless_test.cc', - ], - }], - ['OS!="win"', { - 'sources!': [ - '../../glue/plugins/test/npapi_test.def', - '../../glue/plugins/test/npapi_test.rc', - ], - }], - ], - }, - ], - }], # Need to do the same for Win and Linux. We build a separate dylib/dll/so # so V8 can have a second set of global variables and run workers. # Normally, workers run in a separate process. |