| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/crypto.gni") | 5 import("//build/config/crypto.gni") |
| 6 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
| 7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
| 8 import("//build/module_args/v8.gni") | 8 import("//build/module_args/v8.gni") |
| 9 import("//components/nacl/nacl_defines.gni") |
| 9 import("//testing/test.gni") | 10 import("//testing/test.gni") |
| 10 | 11 |
| 11 # This target exists to reference other test executables to bring these files | 12 # This target exists to reference other test executables to bring these files |
| 12 # into the build. | 13 # into the build. |
| 13 group("test") { | 14 group("test") { |
| 14 testonly = true | 15 testonly = true |
| 15 deps = [ | 16 deps = [ |
| 16 "//chrome/test/perf", | 17 "//chrome/test/perf", |
| 17 ] | 18 ] |
| 18 } | 19 } |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 # Use only the _chromeos version on ChromeOS. | 324 # Use only the _chromeos version on ChromeOS. |
| 324 "base/view_event_test_platform_part_ash.cc", | 325 "base/view_event_test_platform_part_ash.cc", |
| 325 ] | 326 ] |
| 326 | 327 |
| 327 deps += [ | 328 deps += [ |
| 328 "//ash/resources", | 329 "//ash/resources", |
| 329 "//chromeos", | 330 "//chromeos", |
| 330 ] | 331 ] |
| 331 | 332 |
| 332 if (enable_nacl) { | 333 if (enable_nacl) { |
| 333 # TODO(GYP) this is also under a disable_nacl_untrusted==0 condition. | |
| 334 deps += [ | 334 deps += [ |
| 335 # '../native_client/src/trusted/service_runtime/linux/nacl_bootstrap.g
yp:nacl_helper_bootstrap', TODO(GYP) | 335 "//native_client/src/trusted/service_runtime/linux:munge_nacl_helper_b
ootstrap", |
| 336 # '../components/nacl.gyp:nacl_helper', TODO(GYP) | 336 "//components/nacl:nacl_helper", |
| 337 |
| 337 # '../components/nacl_nonsfi.gyp:nacl_helper_nonsfi', TODO(GYP) | 338 # '../components/nacl_nonsfi.gyp:nacl_helper_nonsfi', TODO(GYP) |
| 338 ] | 339 ] |
| 339 } | 340 } |
| 340 | 341 |
| 341 if (is_chrome_branded) { | 342 if (is_chrome_branded) { |
| 342 sources -= [ | 343 sources -= [ |
| 343 # These tests are failing on official cros bots. crbug.com/431450. | 344 # These tests are failing on official cros bots. crbug.com/431450. |
| 344 "../browser/ui/views/bookmarks/bookmark_bar_view_test.cc", | 345 "../browser/ui/views/bookmarks/bookmark_bar_view_test.cc", |
| 345 ] | 346 ] |
| 346 } | 347 } |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 572 | 573 |
| 573 js2webui("browser_tests_js_webui") { | 574 js2webui("browser_tests_js_webui") { |
| 574 sources = rebase_path(gypi_values.chrome_browser_tests_webui_js_sources, | 575 sources = rebase_path(gypi_values.chrome_browser_tests_webui_js_sources, |
| 575 ".", | 576 ".", |
| 576 "//chrome") | 577 "//chrome") |
| 577 if (is_chrome_branded) { | 578 if (is_chrome_branded) { |
| 578 # crbug.com/230471 | 579 # crbug.com/230471 |
| 579 sources -= [ "data/webui/accessibility_audit_browsertest.js" ] | 580 sources -= [ "data/webui/accessibility_audit_browsertest.js" ] |
| 580 } | 581 } |
| 581 if (!is_chromeos) { | 582 if (!is_chromeos) { |
| 582 sources -= [ "data/webui/certificate_viewer_dialog_test.js" ] | 583 sources -= [ |
| 584 "data/webui/certificate_viewer_dialog_test.js", |
| 585 "test/data/chromeos/oobe_webui_browsertest.js", |
| 586 ] |
| 583 } | 587 } |
| 584 if (!enable_app_list) { | 588 if (!enable_app_list) { |
| 585 sources -= [ "../browser/ui/webui/app_list/start_page_browsertest.js" ] | 589 sources -= [ "../browser/ui/webui/app_list/start_page_browsertest.js" ] |
| 586 } | 590 } |
| 587 if (!enable_supervised_users) { | 591 if (!enable_supervised_users) { |
| 588 sources -= | 592 sources -= |
| 589 [ "../browser/ui/webui/downloads_ui_supervised_browsertest.js" ] | 593 [ "../browser/ui/webui/downloads_ui_supervised_browsertest.js" ] |
| 590 } | 594 } |
| 591 deps = [ | 595 deps = [ |
| 592 "//skia", | 596 "//skia", |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 667 | 671 |
| 668 # Runtime dependencies | 672 # Runtime dependencies |
| 669 data_deps = [ | 673 data_deps = [ |
| 670 #"//ppapi:ppapi_tests", # TODO(GYP) this doesn't exist yet. | 674 #"//ppapi:ppapi_tests", # TODO(GYP) this doesn't exist yet. |
| 671 #'../remoting/remoting.gyp:remoting_browser_test_resources', TODO(GYP) | 675 #'../remoting/remoting.gyp:remoting_browser_test_resources', TODO(GYP) |
| 672 #'../remoting/remoting.gyp:remoting_webapp_unittest', TODO(GYP) | 676 #'../remoting/remoting.gyp:remoting_webapp_unittest', TODO(GYP) |
| 673 "//third_party/mesa:osmesa", | 677 "//third_party/mesa:osmesa", |
| 674 "//third_party/widevine/cdm:widevine_test_license_server", | 678 "//third_party/widevine/cdm:widevine_test_license_server", |
| 675 ] | 679 ] |
| 676 | 680 |
| 677 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] | 681 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] + nacl_defines |
| 678 | 682 |
| 679 # TODO(GYP) if (is_win) { | 683 # TODO(GYP) if (is_win) { |
| 680 # ['incremental_chrome_dll==1', { | 684 # ['incremental_chrome_dll==1', { |
| 681 # 'UseLibraryDependencyInputs': "true", | 685 # 'UseLibraryDependencyInputs': "true", |
| 682 # } | 686 # } |
| 683 | 687 |
| 684 if (cld_version == 0 || cld_version == 2) { | 688 if (cld_version == 0 || cld_version == 2) { |
| 685 # Because the browser_tests use translate, they need CLD data. | 689 # Because the browser_tests use translate, they need CLD data. |
| 686 deps += [ "//third_party/cld_2:cld2_platform_impl" ] | 690 deps += [ "//third_party/cld_2:cld2_platform_impl" ] |
| 687 } | 691 } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 698 | 702 |
| 699 if (enable_nacl_untrusted) { | 703 if (enable_nacl_untrusted) { |
| 700 sources += [ | 704 sources += [ |
| 701 "nacl/nacl_browsertest.cc", | 705 "nacl/nacl_browsertest.cc", |
| 702 "nacl/nacl_browsertest_uma.cc", | 706 "nacl/nacl_browsertest_uma.cc", |
| 703 "nacl/nacl_browsertest_util.cc", | 707 "nacl/nacl_browsertest_util.cc", |
| 704 "nacl/nacl_browsertest_util.h", | 708 "nacl/nacl_browsertest_util.h", |
| 705 "nacl/pnacl_header_test.cc", | 709 "nacl/pnacl_header_test.cc", |
| 706 "nacl/pnacl_header_test.h", | 710 "nacl/pnacl_header_test.h", |
| 707 ] | 711 ] |
| 708 deps += [ | 712 data_deps += [ |
| 709 #'test/data/nacl/nacl_test_data.gyp:*', # TODO(GYP) | 713 # "test/data/nacl:shared_test_files", |
| 710 #'../ppapi/native_client/native_client.gyp:nacl_irt', # TODO(GYP) | 714 "//ppapi/native_client:nacl_irt(//native_client/build/toolchain/nacl:i
rt_x64)", |
| 711 #'../ppapi/ppapi_nacl.gyp:ppapi_nacl_tests', # TODO(GYP) | 715 # "../ppapi/ppapi_nacl.gyp:ppapi_nacl_tests", # TODO(GYP) |
| 712 #'../ppapi/tests/extensions/extensions.gyp:ppapi_tests_extensions_back
ground_keepalive', # TODO(GYP) | 716 # "../ppapi/tests/extensions/extensions.gyp:ppapi_tests_extensions_bac
kground_keepalive", # TODO(GYP) |
| 713 #'../ppapi/tests/extensions/extensions.gyp:ppapi_tests_extensions_medi
a_galleries', # TODO(GYP) | 717 # "../ppapi/tests/extensions/extensions.gyp:ppapi_tests_extensions_med
ia_galleries", # TODO(GYP) |
| 714 #'../ppapi/tests/extensions/extensions.gyp:ppapi_tests_extensions_pack
aged_app', # TODO(GYP) #'../ppapi/ppapi_tests_mojo.gyp:ppapi_tests_moj
o', # TODO(GYP) | 718 # "../ppapi/tests/extensions/extensions.gyp:ppapi_tests_extensions_pac
kaged_app", # TODO(GYP) |
| 715 #'../ppapi/ppapi_tests_mojo.gyp:ppapi_tests_mojo', # TODO(GYP) | 719 # "../ppapi/ppapi_tests_mojo.gyp:ppapi_tests_mojo", # TODO(GYP) |
| 716 ] | 720 ] |
| 717 if (is_chromeos) { | 721 if (is_chromeos) { |
| 718 sources += [ "//third_party/liblouis/nacl_wrapper/liblouis_wrapper_bro
wsertest.cc" ] | 722 sources += [ "//third_party/liblouis/nacl_wrapper/liblouis_wrapper_bro
wsertest.cc" ] |
| 723 deps += [ |
| 724 #'browser_chromeos', TODO(GYP) |
| 725 #'../third_party/liblouis/liblouis_nacl.gyp:liblouis_test_data', TO
DO(GYP) |
| 726 ] |
| 719 } | 727 } |
| 720 deps += [ | |
| 721 #'browser_chromeos', TODO(GYP) | |
| 722 #'../third_party/liblouis/liblouis_nacl.gyp:liblouis_test_data', TODO
(GYP) | |
| 723 ] | |
| 724 } | 728 } |
| 725 if (is_win || is_linux) { | 729 if (is_win || is_linux) { |
| 726 sources += [ "../browser/nacl_host/test/nacl_gdb_browsertest.cc" ] | 730 sources += [ "../browser/nacl_host/test/nacl_gdb_browsertest.cc" ] |
| 727 deps += [ | 731 deps += [ "//chrome/browser/nacl_host/test:mock_nacl_gdb" ] |
| 728 #'browser/nacl_host/test/mock_nacl_gdb.gyp:mock_nacl_gdb', TODO(GYP) | |
| 729 ] | |
| 730 } | 732 } |
| 731 if (is_win) { | 733 if (is_win) { |
| 732 # TODO(halyavin) NaCl on Windows can't open debug stub socket in | 734 # TODO(halyavin) NaCl on Windows can't open debug stub socket in |
| 733 # browser process as needed by this test. See http://crbug.com/157312. | 735 # browser process as needed by this test. See http://crbug.com/157312. |
| 734 sources -= [ "../browser/nacl_host/test/gdb_debug_stub_browsertest.cc" ] | 736 sources -= [ "../browser/nacl_host/test/gdb_debug_stub_browsertest.cc" ] |
| 735 deps += [ | 737 deps += [ |
| 736 #'chrome.gyp:chrome_nacl_win64', TODO(GYP) | 738 #'chrome.gyp:chrome_nacl_win64', TODO(GYP) |
| 737 ] | 739 ] |
| 738 } | 740 } |
| 739 is(is_linux) { | 741 if (is_linux) { |
| 740 deps += [ | 742 deps += [ |
| 741 #'../native_client/src/trusted/service_runtime/linux/nacl_bootstrap.gy
p:nacl_helper_bootstrap', TODO(GYP) | 743 "//native_client/src/trusted/service_runtime/linux:munge_nacl_helper_b
ootstrap", |
| 742 #'../components/nacl.gyp:nacl_helper', TODO(GYP) | 744 "//components/nacl:nacl_helper", |
| 743 #'../components/nacl_nonsfi.gyp:nacl_helper_nonsfi', TODO(GYP) | 745 |
| 746 # "//components/nacl_nonsfi.gyp:nacl_helper_nonsfi", # TODO(GYP) |
| 744 ] | 747 ] |
| 745 } | 748 } |
| 746 if (!is_chromeos) { | |
| 747 sources -= [ "test/data/chromeos/oobe_webui_browsertest.js" ] | |
| 748 } | |
| 749 } | 749 } |
| 750 if (debug_devtools) { | 750 if (debug_devtools) { |
| 751 defines += [ "DEBUG_DEVTOOLS=1" ] | 751 defines += [ "DEBUG_DEVTOOLS=1" ] |
| 752 } | 752 } |
| 753 if (use_ash) { | 753 if (use_ash) { |
| 754 deps += [ "//ash:test_support" ] | 754 deps += [ "//ash:test_support" ] |
| 755 } | 755 } |
| 756 if (use_aura || toolkit_views) { | 756 if (use_aura || toolkit_views) { |
| 757 deps += [ "//ui/events:test_support" ] | 757 deps += [ "//ui/events:test_support" ] |
| 758 } | 758 } |
| (...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1286 if (is_chromeos) { | 1286 if (is_chromeos) { |
| 1287 sources -= [ | 1287 sources -= [ |
| 1288 "../browser/ui/sync/one_click_signin_helper_unittest.cc", | 1288 "../browser/ui/sync/one_click_signin_helper_unittest.cc", |
| 1289 "../browser/ui/sync/one_click_signin_sync_starter_unittest.cc", | 1289 "../browser/ui/sync/one_click_signin_sync_starter_unittest.cc", |
| 1290 ] | 1290 ] |
| 1291 } | 1291 } |
| 1292 if (!toolkit_views) { | 1292 if (!toolkit_views) { |
| 1293 sources -= [ "../browser/ui/views/sync/one_click_signin_bubble_view_unit
test.cc" ] | 1293 sources -= [ "../browser/ui/views/sync/one_click_signin_bubble_view_unit
test.cc" ] |
| 1294 } | 1294 } |
| 1295 } | 1295 } |
| 1296 if (enable_nacl) { | 1296 #if (enable_nacl) { |
| 1297 sources += rebase_path(unit_gypi_values.chrome_unit_tests_nacl_sources, | 1297 # sources += rebase_path(unit_gypi_values.chrome_unit_tests_nacl_sources, |
| 1298 ".", | 1298 # ".", |
| 1299 "//chrome") | 1299 # "//chrome") |
| 1300 } | 1300 #} |
| 1301 if (enable_extensions) { | 1301 if (enable_extensions) { |
| 1302 sources += | 1302 sources += |
| 1303 rebase_path(unit_gypi_values.chrome_unit_tests_extensions_sources, | 1303 rebase_path(unit_gypi_values.chrome_unit_tests_extensions_sources, |
| 1304 ".", | 1304 ".", |
| 1305 "//chrome") | 1305 "//chrome") |
| 1306 deps += [ | 1306 deps += [ |
| 1307 "//chrome/common/extensions/api", | 1307 "//chrome/common/extensions/api", |
| 1308 "//extensions:extensions_resources", | 1308 "//extensions:extensions_resources", |
| 1309 "//extensions/strings", | 1309 "//extensions/strings", |
| 1310 ] | 1310 ] |
| (...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1669 deps += [ "//ui/app_list:test_support" ] | 1669 deps += [ "//ui/app_list:test_support" ] |
| 1670 } | 1670 } |
| 1671 if (use_ozone) { | 1671 if (use_ozone) { |
| 1672 # crbug.com/354036 | 1672 # crbug.com/354036 |
| 1673 sources -= [ "../browser/chromeos/events/event_rewriter_unittest.cc" ] | 1673 sources -= [ "../browser/chromeos/events/event_rewriter_unittest.cc" ] |
| 1674 } | 1674 } |
| 1675 if (!enable_plugin_installation) { | 1675 if (!enable_plugin_installation) { |
| 1676 sources -= [ "../browser/plugins/plugin_installer_unittest.cc" ] | 1676 sources -= [ "../browser/plugins/plugin_installer_unittest.cc" ] |
| 1677 } | 1677 } |
| 1678 } | 1678 } |
| 1679 |
| 1680 test("chromedriver_unittests") { |
| 1681 sources = rebase_path(gypi_values.chrome_driver_unittests_sources, |
| 1682 ".", |
| 1683 "//chrome") |
| 1684 |
| 1685 deps = [ |
| 1686 ":chromedriver_lib", |
| 1687 "//base", |
| 1688 "//base/test:run_all_unittests", |
| 1689 "//net", |
| 1690 "//net:http_server", |
| 1691 "//testing/gtest", |
| 1692 "//ui/base", |
| 1693 "//ui/gfx", |
| 1694 "//ui/gfx/geometry", |
| 1695 ] |
| 1696 } |
| 1697 |
| 1698 static_library("chromedriver_lib") { |
| 1699 sources = rebase_path(gypi_values.chrome_driver_lib_sources, |
| 1700 ".", |
| 1701 "//chrome") |
| 1702 |
| 1703 deps = [ |
| 1704 ":automation_client_lib", |
| 1705 ":version", |
| 1706 "//base", |
| 1707 "//base/third_party/dynamic_annotations", |
| 1708 "//crypto", |
| 1709 "//net", |
| 1710 "//net:http_server", |
| 1711 "//third_party/zlib:zip", |
| 1712 "//ui/base", |
| 1713 "//ui/events:events_base", |
| 1714 "//ui/gfx", |
| 1715 "//ui/gfx/geometry", |
| 1716 ] |
| 1717 } |
| 1718 |
| 1719 import("//chrome/version.gni") |
| 1720 process_version("version") { |
| 1721 visibility = [ ":chromedriver_lib" ] |
| 1722 source = "chromedriver/chrome/version.h" |
| 1723 output = "$target_gen_dir/chrome/test/chromedriver/version.h" |
| 1724 } |
| 1725 |
| 1726 static_library("automation_client_lib") { |
| 1727 sources = rebase_path(gypi_values.chrome_automation_client_lib_sources, |
| 1728 ".", |
| 1729 "//chrome") |
| 1730 deps = [ |
| 1731 "//base", |
| 1732 "//base/third_party/dynamic_annotations", |
| 1733 "//crypto", |
| 1734 "//net", |
| 1735 "//net:http_server", |
| 1736 "//third_party/zlib:zip", |
| 1737 "//ui/base", |
| 1738 "//ui/events:events_base", |
| 1739 "//ui/gfx", |
| 1740 "//ui/gfx/geometry", |
| 1741 ] |
| 1742 } |
| 1679 } | 1743 } |
| OLD | NEW |