Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(609)

Side by Side Diff: chrome/test/BUILD.gn

Issue 1944943003: [Mac/GN] Start running components_unittests, components_browsertests, and unit_tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pain and suffering, aka having two build systems Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | components/BUILD.gn » ('j') | components/BUILD.gn » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/chrome_build.gni") 5 import("//build/config/chrome_build.gni")
6 import("//build/config/compiler/compiler.gni") 6 import("//build/config/compiler/compiler.gni")
7 import("//build/config/crypto.gni") 7 import("//build/config/crypto.gni")
8 import("//build/config/features.gni") 8 import("//build/config/features.gni")
9 import("//build/config/ui.gni") 9 import("//build/config/ui.gni")
10 import("//chrome/chrome_tests.gni") 10 import("//chrome/chrome_tests.gni")
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 "//ppapi/tests/test_case.html", 302 "//ppapi/tests/test_case.html",
303 "//ppapi/tests/test_case.html.mock-http-headers", 303 "//ppapi/tests/test_case.html.mock-http-headers",
304 "//ppapi/tests/test_page.css", 304 "//ppapi/tests/test_page.css",
305 "//ppapi/tests/test_page.css.mock-http-headers", 305 "//ppapi/tests/test_page.css.mock-http-headers",
306 "//third_party/pyftpdlib/", 306 "//third_party/pyftpdlib/",
307 "//third_party/pywebsocket/", 307 "//third_party/pywebsocket/",
308 "//third_party/tlslite/", 308 "//third_party/tlslite/",
309 "//third_party/zlib/google/test/data/", 309 "//third_party/zlib/google/test/data/",
310 "//tools/metrics/histograms/histograms.xml", 310 "//tools/metrics/histograms/histograms.xml",
311 "$root_out_dir/pyproto/google/", 311 "$root_out_dir/pyproto/google/",
312 "$root_out_dir/resources.pak",
313 "$root_out_dir/ui_test.pak", 312 "$root_out_dir/ui_test.pak",
314 ] 313 ]
315 if (is_linux || is_win) { 314 if (is_linux || is_win) {
316 data += [ 315 data += [
317 "$root_out_dir/chrome_100_percent.pak", 316 "$root_out_dir/chrome_100_percent.pak",
318 "$root_out_dir/chrome_material_100_percent.pak", 317 "$root_out_dir/chrome_material_100_percent.pak",
319 "$root_out_dir/chrome_200_percent.pak", 318 "$root_out_dir/chrome_200_percent.pak",
320 "$root_out_dir/chrome_material_200_percent.pak", 319 "$root_out_dir/chrome_material_200_percent.pak",
321 "$root_out_dir/locales/en-US.pak", 320 "$root_out_dir/locales/en-US.pak",
322 "$root_out_dir/locales/fr.pak", 321 "$root_out_dir/locales/fr.pak",
323 ] 322 ]
324 } 323 }
325 if (is_linux) { 324 if (is_linux) {
326 data += [ "$root_out_dir/libppapi_tests.so" ] 325 data += [ "$root_out_dir/libppapi_tests.so" ]
327 } 326 }
327 if (!is_mac) {
328 data += [ "$root_out_dir/resources.pak" ]
Dirk Pranke 2016/05/05 22:59:15 Really I think these should be data_deps += [ "//c
Robert Sesek 2016/05/06 20:52:25 Agree that this makes more sense as data_deps[] bu
Dirk Pranke 2016/05/06 20:56:34 I've been fixing this where I've noticed it. I agr
Robert Sesek 2016/05/06 22:11:04 OK, I've updated it here.
329 }
328 330
329 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] 331 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
330 ldflags = [] 332 ldflags = []
331 333
332 deps = [ 334 deps = [
333 ":test_support", 335 ":test_support",
334 ":test_support_ui", 336 ":test_support_ui",
335 "//chrome:packed_extra_resources", 337 "//chrome:packed_extra_resources",
336 "//chrome:packed_resources", 338 "//chrome:packed_resources",
337 "//chrome:resources", 339 "//chrome:resources",
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
861 "//third_party/tlslite/", 863 "//third_party/tlslite/",
862 "//ui/webui/resources/js/", 864 "//ui/webui/resources/js/",
863 "$root_out_dir/pyproto/", 865 "$root_out_dir/pyproto/",
864 "$root_out_dir/browser_tests.pak", 866 "$root_out_dir/browser_tests.pak",
865 "$root_out_dir/chrome_100_percent.pak", 867 "$root_out_dir/chrome_100_percent.pak",
866 "$root_out_dir/chrome_material_100_percent.pak", 868 "$root_out_dir/chrome_material_100_percent.pak",
867 "$root_out_dir/chrome_200_percent.pak", 869 "$root_out_dir/chrome_200_percent.pak",
868 "$root_out_dir/chrome_material_200_percent.pak", 870 "$root_out_dir/chrome_material_200_percent.pak",
869 "$root_out_dir/locales/", 871 "$root_out_dir/locales/",
870 "$root_out_dir/remoting/unittests/", 872 "$root_out_dir/remoting/unittests/",
871 "$root_out_dir/resources.pak",
872 "$root_out_dir/resources/extension/", 873 "$root_out_dir/resources/extension/",
873 "$root_out_dir/test_case.html", 874 "$root_out_dir/test_case.html",
874 "$root_out_dir/test_case.html.mock-http-headers", 875 "$root_out_dir/test_case.html.mock-http-headers",
875 "$root_out_dir/test_data/", 876 "$root_out_dir/test_data/",
876 "$root_out_dir/test_page.css", 877 "$root_out_dir/test_page.css",
877 "$root_out_dir/test_page.css.mock-http-headers", 878 "$root_out_dir/test_page.css.mock-http-headers",
878 "$root_out_dir/test_url_loader_data/", 879 "$root_out_dir/test_url_loader_data/",
879 ] 880 ]
880 if (is_win) { 881 if (is_win) {
881 data += [ "$root_out_dir/chrome_200_percent.pak" ] 882 data += [ "$root_out_dir/chrome_200_percent.pak" ]
882 } 883 }
884 if (!is_mac) {
885 data += [ "$root_out_dir/resources.pak" ]
886 }
883 887
884 deps = [ 888 deps = [
885 ":browser_tests_js_webui", 889 ":browser_tests_js_webui",
886 ":sync_integration_test_support", 890 ":sync_integration_test_support",
887 ":test_support", 891 ":test_support",
888 ":test_support_ui", 892 ":test_support_ui",
889 "//base", 893 "//base",
890 "//base:i18n", 894 "//base:i18n",
891 "//base/test:test_support", 895 "//base/test:test_support",
892 "//chrome:browser_tests_pak", 896 "//chrome:browser_tests_pak",
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
1378 "//chrome") 1382 "//chrome")
1379 1383
1380 data = [ 1384 data = [
1381 "//chrome/test/data/sync/", 1385 "//chrome/test/data/sync/",
1382 "//net/tools/testserver/", 1386 "//net/tools/testserver/",
1383 "//sync/tools/testserver/", 1387 "//sync/tools/testserver/",
1384 "//third_party/pyftpdlib/", 1388 "//third_party/pyftpdlib/",
1385 "//third_party/pywebsocket/", 1389 "//third_party/pywebsocket/",
1386 "//third_party/tlslite/", 1390 "//third_party/tlslite/",
1387 "$root_out_dir/pyproto/", 1391 "$root_out_dir/pyproto/",
1388 "$root_out_dir/resources.pak",
1389 ] 1392 ]
1390 1393
1391 if (is_linux || is_win) { 1394 if (is_linux || is_win) {
1392 data += [ 1395 data += [
1393 "$root_out_dir/chrome_100_percent.pak", 1396 "$root_out_dir/chrome_100_percent.pak",
1394 "$root_out_dir/chrome_material_100_percent.pak", 1397 "$root_out_dir/chrome_material_100_percent.pak",
1395 "$root_out_dir/chrome_200_percent.pak", 1398 "$root_out_dir/chrome_200_percent.pak",
1396 "$root_out_dir/chrome_material_200_percent.pak", 1399 "$root_out_dir/chrome_material_200_percent.pak",
1397 "$root_out_dir/locales/en-US.pak", 1400 "$root_out_dir/locales/en-US.pak",
1398 ] 1401 ]
1399 } 1402 }
1403 if (!is_mac) {
1404 data += [ "$root_out_dir/resources.pak" ]
1405 }
1400 1406
1401 # TODO(phajdan.jr): Only temporary, to make transition easier. 1407 # TODO(phajdan.jr): Only temporary, to make transition easier.
1402 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] 1408 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
1403 1409
1404 deps = [ 1410 deps = [
1405 ":sync_integration_test_support", 1411 ":sync_integration_test_support",
1406 ":test_support", 1412 ":test_support",
1407 ":test_support_ui", 1413 ":test_support_ui",
1408 "//chrome:packed_extra_resources", 1414 "//chrome:packed_extra_resources",
1409 "//chrome:packed_resources", 1415 "//chrome:packed_resources",
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
1586 "//net/tools/testserver/", 1592 "//net/tools/testserver/",
1587 "//third_party/accessibility-audit/axs_testing.js", 1593 "//third_party/accessibility-audit/axs_testing.js",
1588 "//third_party/chaijs/chai.js", 1594 "//third_party/chaijs/chai.js",
1589 "//third_party/hunspell_dictionaries/", 1595 "//third_party/hunspell_dictionaries/",
1590 "//third_party/pyftpdlib/", 1596 "//third_party/pyftpdlib/",
1591 "//third_party/pywebsocket/", 1597 "//third_party/pywebsocket/",
1592 "//third_party/tlslite/", 1598 "//third_party/tlslite/",
1593 "//third_party/zlib/google/test/data/", 1599 "//third_party/zlib/google/test/data/",
1594 "//tools/metrics/histograms/histograms.xml", 1600 "//tools/metrics/histograms/histograms.xml",
1595 "$root_out_dir/pyproto/google/", 1601 "$root_out_dir/pyproto/google/",
1596 "$root_out_dir/resources.pak",
1597 ] 1602 ]
1598 if (is_android || is_linux || is_win) { 1603 if (is_android || is_linux || is_win) {
1599 data += [ 1604 data += [
1600 "$root_out_dir/chrome_100_percent.pak", 1605 "$root_out_dir/chrome_100_percent.pak",
1601 "$root_out_dir/locales/en-US.pak", 1606 "$root_out_dir/locales/en-US.pak",
1602 ] 1607 ]
1603 } 1608 }
1604 if (is_linux || is_win) { 1609 if (is_linux || is_win) {
1605 data += [ 1610 data += [
1606 "$root_out_dir/chrome_200_percent.pak", 1611 "$root_out_dir/chrome_200_percent.pak",
1607 "$root_out_dir/chrome_material_100_percent.pak", 1612 "$root_out_dir/chrome_material_100_percent.pak",
1608 "$root_out_dir/chrome_material_200_percent.pak", 1613 "$root_out_dir/chrome_material_200_percent.pak",
1609 ] 1614 ]
1610 } 1615 }
1616 if (!is_mac) {
1617 data += [ "$root_out_dir/resources.pak" ]
1618 } else {
1619 data += [ "$root_out_dir/Chromium Framework.framework/" ]
1620 }
1611 1621
1612 defines = [] 1622 defines = []
1613 1623
1614 deps = [ 1624 deps = [
1615 # NOTE: New dependencies should generally be added in the OS!="ios" 1625 # NOTE: New dependencies should generally be added in the OS!="ios"
1616 # dependencies block below, rather than here. 1626 # dependencies block below, rather than here.
1617 # Unit tests should only depend on: 1627 # Unit tests should only depend on:
1618 # 1) everything that the chrome binaries depend on: 1628 # 1) everything that the chrome binaries depend on:
1619 "//chrome:browser_dependencies", 1629 "//chrome:browser_dependencies",
1620 "//chrome:child_dependencies", 1630 "//chrome:child_dependencies",
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
1686 "//third_party/libaddressinput", 1696 "//third_party/libaddressinput",
1687 "//third_party/libjingle", 1697 "//third_party/libjingle",
1688 "//third_party/libphonenumber", 1698 "//third_party/libphonenumber",
1689 "//third_party/webrtc/modules/desktop_capture", 1699 "//third_party/webrtc/modules/desktop_capture",
1690 "//tools/json_schema_compiler/test", 1700 "//tools/json_schema_compiler/test",
1691 "//ui/gl", 1701 "//ui/gl",
1692 "//v8", 1702 "//v8",
1693 ] 1703 ]
1694 } 1704 }
1695 1705
1706 if (is_mac) {
1707 deps += [ "//chrome:chrome_framework" ]
1708 }
1709
1696 if (is_android) { 1710 if (is_android) {
1697 sources += rebase_path( 1711 sources += rebase_path(
1698 chrome_tests_unit_gypi_values.chrome_unit_tests_offline_pages_source s, 1712 chrome_tests_unit_gypi_values.chrome_unit_tests_offline_pages_source s,
1699 ".", 1713 ".",
1700 "//chrome") 1714 "//chrome")
1701 sources -= [ "../browser/policy/policy_path_parser_unittest.cc" ] 1715 sources -= [ "../browser/policy/policy_path_parser_unittest.cc" ]
1702 deps += [ 1716 deps += [
1703 ":unit_tests_java", 1717 ":unit_tests_java",
1704 "//components/offline_pages:test_support", 1718 "//components/offline_pages:test_support",
1705 "//v8:v8_external_startup_data_assets", 1719 "//v8:v8_external_startup_data_assets",
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
2329 if (is_android) { 2343 if (is_android) {
2330 android_library("unit_tests_java") { 2344 android_library("unit_tests_java") {
2331 java_files = [ "android/unit_tests_apk/src/org/chromium/chrome/unit_tests_ap k/ChromeNativeTestApplication.java" ] 2345 java_files = [ "android/unit_tests_apk/src/org/chromium/chrome/unit_tests_ap k/ChromeNativeTestApplication.java" ]
2332 deps = [ 2346 deps = [
2333 "//base:base_java", 2347 "//base:base_java",
2334 "//chrome/android:chrome_java", 2348 "//chrome/android:chrome_java",
2335 "//content/public/android:content_java", 2349 "//content/public/android:content_java",
2336 ] 2350 ]
2337 } 2351 }
2338 } 2352 }
OLDNEW
« no previous file with comments | « no previous file | components/BUILD.gn » ('j') | components/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698