diff options
author | Brett Wilson <brettw@chromium.org> | 2015-01-12 00:20:09 -0800 |
---|---|---|
committer | Brett Wilson <brettw@chromium.org> | 2015-01-12 08:20:58 +0000 |
commit | 00948ca433cc072dcc7da2995ec2e27fe6df0b42 (patch) | |
tree | 8629e3e379e4a7fc508f2d5bbcb1486f5053690b /content/test/BUILD.gn | |
parent | 1425149c53486507772a11836a17e3f85ced90a9 (diff) | |
download | chromium_src-00948ca433cc072dcc7da2995ec2e27fe6df0b42.zip chromium_src-00948ca433cc072dcc7da2995ec2e27fe6df0b42.tar.gz chromium_src-00948ca433cc072dcc7da2995ec2e27fe6df0b42.tar.bz2 |
Disable content_browsertests on GN for Mac
It doesn't link yet.
TBR=dpranke
Review URL: https://codereview.chromium.org/845983002
Cr-Commit-Position: refs/heads/master@{#311023}
Diffstat (limited to 'content/test/BUILD.gn')
-rw-r--r-- | content/test/BUILD.gn | 320 |
1 files changed, 162 insertions, 158 deletions
diff --git a/content/test/BUILD.gn b/content/test/BUILD.gn index 25a5573..84f88457 100644 --- a/content/test/BUILD.gn +++ b/content/test/BUILD.gn @@ -227,181 +227,185 @@ if (!is_ios) { } } # !is_ios -test("content_browsertests") { - sources = rebase_path(content_tests_gypi_values.content_browsertests_sources, - ".", - "//content") - - defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] +# TODO(GYP) enable content_browsertests on Mac when it links. +if (!is_mac) { + test("content_browsertests") { + sources = + rebase_path(content_tests_gypi_values.content_browsertests_sources, + ".", + "//content") - deps = [ - ":browsertest_support", - ":web_ui_test_mojo_bindings", - "//base/allocator", - "//base/test:test_support", - "//content/common:mojo_bindings", - "//content/gpu", - "//content/public/common", - "//content/public/plugin", - "//content/public/renderer", - "//content:resources", - "//content/shell:content_shell_lib", - "//content/shell:pak", - "//content/test:test_support", - "//device/battery", - "//device/battery:mojo_bindings", - "//gin", - "//gpu", - "//ipc:test_support", - "//media:test_support", - "//media/audio:test_support", - "//media/base:test_support", - "//media:shared_memory_support", - "//mojo/edk/system", - "//mojo/edk/test:test_support", - "//mojo/environment:chromium", - "//mojo/public/cpp/bindings", - "//mojo/public/js", - "//net:test_support", - "//ppapi:ppapi_host", - "//ppapi:ppapi_ipc", - "//ppapi:ppapi_proxy", - "//ppapi:ppapi_shared", + defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] - #"//ppapi:ppapi_tests", TODO(GYP) - #"//ppapi:ppapi_unittest_shared", TODO(GYP) - "//testing/gmock", - "//testing/gtest", - "//third_party/WebKit/public:blink", - "//third_party/leveldatabase", - "//third_party/mesa:osmesa", - "//ui/accessibility", - "//ui/accessibility:ax_gen", - "//ui/base", - "//ui/gfx", - "//ui/gfx/geometry", - "//ui/gl", - "//ui/resources", - "//ui/shell_dialogs", - "//ui/snapshot", - ] + deps = [ + ":browsertest_support", + ":web_ui_test_mojo_bindings", + "//base/allocator", + "//base/test:test_support", + "//content/common:mojo_bindings", + "//content/gpu", + "//content/public/common", + "//content/public/plugin", + "//content/public/renderer", + "//content:resources", + "//content/shell:content_shell_lib", + "//content/shell:pak", + "//content/test:test_support", + "//device/battery", + "//device/battery:mojo_bindings", + "//gin", + "//gpu", + "//ipc:test_support", + "//media:test_support", + "//media/audio:test_support", + "//media/base:test_support", + "//media:shared_memory_support", + "//mojo/edk/system", + "//mojo/edk/test:test_support", + "//mojo/environment:chromium", + "//mojo/public/cpp/bindings", + "//mojo/public/js", + "//net:test_support", + "//ppapi:ppapi_host", + "//ppapi:ppapi_ipc", + "//ppapi:ppapi_proxy", + "//ppapi:ppapi_shared", - if (!is_chromeos) { - sources -= - [ "../browser/web_contents/touch_editable_impl_aura_browsertest.cc" ] - } + #"//ppapi:ppapi_tests", TODO(GYP) + #"//ppapi:ppapi_unittest_shared", TODO(GYP) + "//testing/gmock", + "//testing/gtest", + "//third_party/WebKit/public:blink", + "//third_party/leveldatabase", + "//third_party/mesa:osmesa", + "//ui/accessibility", + "//ui/accessibility:ax_gen", + "//ui/base", + "//ui/gfx", + "//ui/gfx/geometry", + "//ui/gl", + "//ui/resources", + "//ui/shell_dialogs", + "//ui/snapshot", + ] - if (is_win) { - sources += - rebase_path(content_tests_gypi_values.content_browsertests_win_sources, - ".", - "//content") + if (!is_chromeos) { + sources -= + [ "../browser/web_contents/touch_editable_impl_aura_browsertest.cc" ] + } - # TODO(GYP) Windows support - # 'resource_include_dirs': [ - # '<(SHARED_INTERMEDIATE_DIR)/webkit', - # ], - # 'sources': [ - # 'shell/app/resource.h', - # 'shell/app/shell.rc', - # # TODO: It would be nice to have these pulled in - # # automatically from direct_dependent_settings in - # # their various targets (net.gyp:net_resources, etc.), - # # but that causes errors in other targets when - # # resulting .res files get referenced multiple times. - # '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_resources.rc', - # '<(SHARED_INTERMEDIATE_DIR)/content/app/strings/content_strings_en-US.rc', - # '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc', - # ], - deps += [ - "//contemt/app/strings", - "//net:net_resources", - "//third_party/WebKit/public:resources", - "//third_party/iaccessible2", - "//third_party/isimpledom", - ] + if (is_win) { + sources += rebase_path( + content_tests_gypi_values.content_browsertests_win_sources, + ".", + "//content") + + # TODO(GYP) Windows support + # 'resource_include_dirs': [ + # '<(SHARED_INTERMEDIATE_DIR)/webkit', + # ], + # 'sources': [ + # 'shell/app/resource.h', + # 'shell/app/shell.rc', + # # TODO: It would be nice to have these pulled in + # # automatically from direct_dependent_settings in + # # their various targets (net.gyp:net_resources, etc.), + # # but that causes errors in other targets when + # # resulting .res files get referenced multiple times. + # '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_resources.rc', + # '<(SHARED_INTERMEDIATE_DIR)/content/app/strings/content_strings_en-US.rc', + # '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc', + # ], + deps += [ + "//contemt/app/strings", + "//net:net_resources", + "//third_party/WebKit/public:resources", + "//third_party/iaccessible2", + "//third_party/isimpledom", + ] - # TODO(GYP) Windows - # 'Debug_Base': { - # 'msvs_settings': { - # 'VCLinkerTool': { - # 'LinkIncremental': '<(msvs_large_module_debug_link_mode)', - } + # TODO(GYP) Windows + # 'Debug_Base': { + # 'msvs_settings': { + # 'VCLinkerTool': { + # 'LinkIncremental': '<(msvs_large_module_debug_link_mode)', + } - if (is_linux) { - sources -= - [ "../browser/accessibility/dump_accessibility_tree_browsertest.cc" ] - } + if (is_linux) { + sources -= + [ "../browser/accessibility/dump_accessibility_tree_browsertest.cc" ] + } - if (is_android) { - sources += rebase_path( - content_tests_gypi_values.content_browsertests_android_sources, - ".", - "//content") - sources -= - [ "../browser/battery_status/battery_monitor_impl_browsertest.cc" ] - deps += [ - "//content/shell/android:content_shell_jni_headers", - "//content/shell:content_shell_lib", - "//testing/android:native_test_util", - ] - } + if (is_android) { + sources += rebase_path( + content_tests_gypi_values.content_browsertests_android_sources, + ".", + "//content") + sources -= + [ "../browser/battery_status/battery_monitor_impl_browsertest.cc" ] + deps += [ + "//content/shell/android:content_shell_jni_headers", + "//content/shell:content_shell_lib", + "//testing/android:native_test_util", + ] + } - if (is_mac) { - sources += [ "../renderer/external_popup_menu_browsertest.cc" ] - deps += [ - # Needed for Content Shell.app's Helper. - #"//content/shell:content_shell", #TODO(GYP) enable for mac - ] - } + if (is_mac) { + sources += [ "../renderer/external_popup_menu_browsertest.cc" ] + deps += [ + # Needed for Content Shell.app's Helper. + #"//content/shell:content_shell", #TODO(GYP) enable for mac + ] + } - if (use_aura && !is_win) { - deps += [ "//ui/events:test_support" ] - } + if (use_aura && !is_win) { + deps += [ "//ui/events:test_support" ] + } - if (!use_aura && !is_mac) { - sources -= - [ "../browser/compositor/image_transport_factory_browsertest.cc" ] - } + if (!use_aura && !is_mac) { + sources -= + [ "../browser/compositor/image_transport_factory_browsertest.cc" ] + } - if (!is_android && !is_ios && !is_linux) { - # Npapi test plugin doesn't build on Android or iOS. - #data_deps += [ 'copy_npapi_test_plugin' ] TODO(GYP) - } + if (!is_android && !is_ios && !is_linux) { + # Npapi test plugin doesn't build on Android or iOS. + #data_deps += [ 'copy_npapi_test_plugin' ] TODO(GYP) + } - if (enable_webrtc) { - sources += rebase_path( - content_tests_gypi_values.content_browsertests_webrtc_sources, - ".", - "//content") - deps += [ "//testing/perf" ] - } + if (enable_webrtc) { + sources += rebase_path( + content_tests_gypi_values.content_browsertests_webrtc_sources, + ".", + "//content") + deps += [ "//testing/perf" ] + } - if (enable_plugins) { - sources += rebase_path( - content_tests_gypi_values.content_browsertests_plugins_sources, - ".", - "//content") - #deps += [ "//ppapi:ppapi_tests" ] # TODO(GYP) - } + if (enable_plugins) { + sources += rebase_path( + content_tests_gypi_values.content_browsertests_plugins_sources, + ".", + "//content") + #deps += [ "//ppapi:ppapi_tests" ] # TODO(GYP) + } - if (enable_web_speech) { - sources += rebase_path( - content_tests_gypi_values.content_browsertests_speech_sources, - ".", - "//content") - } + if (enable_web_speech) { + sources += rebase_path( + content_tests_gypi_values.content_browsertests_speech_sources, + ".", + "//content") + } - if (!is_chrome_branded) { - sources += rebase_path( - content_tests_gypi_values.content_browsertests_unofficial_build_sources, - ".", - "//content") - } + if (!is_chrome_branded) { + sources += rebase_path( + content_tests_gypi_values.content_browsertests_unofficial_build_sources, + ".", + "//content") + } - if (!use_aura) { - sources -= - [ "../browser/web_contents/web_contents_view_aura_browsertest.cc" ] + if (!use_aura) { + sources -= + [ "../browser/web_contents/web_contents_view_aura_browsertest.cc" ] + } } } # TODO(GYP): Unit test targets |