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

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

Issue 1920853002: Drop support for Compact Language Detector v1. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Preserve yfriedman@ comment in chrome/android/chrome_apk.gyp 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 | « chrome/chrome_tests_unit.gypi ('k') | components/components_tests.gyp » ('j') | no next file with comments »
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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 "//crypto:platform", 343 "//crypto:platform",
344 "//crypto:test_support", 344 "//crypto:test_support",
345 "//google_apis:test_support", 345 "//google_apis:test_support",
346 "//net", 346 "//net",
347 "//net:net_resources", 347 "//net:net_resources",
348 "//net:test_support", 348 "//net:test_support",
349 "//skia", 349 "//skia",
350 "//sync", 350 "//sync",
351 "//testing/gmock", 351 "//testing/gmock",
352 "//testing/gtest", 352 "//testing/gtest",
353 "//third_party/cld_2:cld2_platform_impl",
353 "//third_party/hunspell", 354 "//third_party/hunspell",
354 "//third_party/icu", 355 "//third_party/icu",
355 "//third_party/libpng", 356 "//third_party/libpng",
356 "//third_party/zlib", 357 "//third_party/zlib",
357 "//ui/base:test_support", 358 "//ui/base:test_support",
358 "//ui/resources:ui_test_pak", 359 "//ui/resources:ui_test_pak",
359 "//ui/web_dialogs:test_support", 360 "//ui/web_dialogs:test_support",
360 ] 361 ]
361 362
362 # TODO(rockot) bug 505926: The chrome_extensions_interactive_uitests target 363 # TODO(rockot) bug 505926: The chrome_extensions_interactive_uitests target
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 "../browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc", 510 "../browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc",
510 ] 511 ]
511 } else { 512 } else {
512 sources += rebase_path( 513 sources += rebase_path(
513 chrome_tests_gypi_values.chrome_interactive_ui_test_cocoa_source s, 514 chrome_tests_gypi_values.chrome_interactive_ui_test_cocoa_source s,
514 ".", 515 ".",
515 "//chrome") 516 "//chrome")
516 } 517 }
517 } 518 }
518 519
519 if (cld_version == 2) {
520 # Interactive tests should use whatever CLD2 data access mode that the
521 # application embedder is using.
522 deps += [ "//third_party/cld_2:cld2_platform_impl" ]
523 }
524
525 if (use_x11) { 520 if (use_x11) {
526 configs += [ "//build/config/linux:xtst" ] 521 configs += [ "//build/config/linux:xtst" ]
527 data_deps += [ "//tools/xdisplaycheck" ] 522 data_deps += [ "//tools/xdisplaycheck" ]
528 } 523 }
529 524
530 if (enable_app_list) { 525 if (enable_app_list) {
531 sources += rebase_path( 526 sources += rebase_path(
532 chrome_tests_gypi_values.chrome_interactive_ui_test_app_list_sourc es, 527 chrome_tests_gypi_values.chrome_interactive_ui_test_app_list_sourc es,
533 ".", 528 ".",
534 "//chrome") 529 "//chrome")
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
925 "//net", 920 "//net",
926 "//net:test_support", 921 "//net:test_support",
927 "//sdch", 922 "//sdch",
928 "//skia", 923 "//skia",
929 "//sync", 924 "//sync",
930 "//sync:test_support_sync_api", 925 "//sync:test_support_sync_api",
931 "//testing/gmock", 926 "//testing/gmock",
932 "//testing/gtest", 927 "//testing/gtest",
933 "//testing/perf", 928 "//testing/perf",
934 "//third_party/cacheinvalidation", 929 "//third_party/cacheinvalidation",
930 "//third_party/cld_2:cld2_platform_impl",
935 "//third_party/icu", 931 "//third_party/icu",
936 "//third_party/leveldatabase", 932 "//third_party/leveldatabase",
937 "//third_party/libaddressinput", 933 "//third_party/libaddressinput",
938 "//third_party/libjingle", 934 "//third_party/libjingle",
939 "//third_party/safe_browsing:test_support", 935 "//third_party/safe_browsing:test_support",
940 "//third_party/webrtc/modules/desktop_capture", 936 "//third_party/webrtc/modules/desktop_capture",
941 "//third_party/widevine/cdm:version_h", 937 "//third_party/widevine/cdm:version_h",
942 "//ui/accessibility:test_support", 938 "//ui/accessibility:test_support",
943 "//ui/base:test_support", 939 "//ui/base:test_support",
944 "//ui/compositor:test_support", 940 "//ui/compositor:test_support",
(...skipping 17 matching lines...) Expand all
962 "//third_party/widevine/cdm:widevine_test_license_server", 958 "//third_party/widevine/cdm:widevine_test_license_server",
963 ] 959 ]
964 960
965 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] 961 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
966 962
967 # TODO(GYP) if (is_win) { 963 # TODO(GYP) if (is_win) {
968 # ['incremental_chrome_dll==1', { 964 # ['incremental_chrome_dll==1', {
969 # 'UseLibraryDependencyInputs': "true", 965 # 'UseLibraryDependencyInputs': "true",
970 # } 966 # }
971 967
972 if (cld_version == 2) {
973 # Because the browser_tests use translate, they need CLD data.
974 deps += [ "//third_party/cld_2:cld2_platform_impl" ]
975 }
976
977 if (!enable_one_click_signin) { 968 if (!enable_one_click_signin) {
978 sources -= [ "../browser/ui/sync/one_click_signin_links_delegate_impl_brow sertest.cc" ] 969 sources -= [ "../browser/ui/sync/one_click_signin_links_delegate_impl_brow sertest.cc" ]
979 } 970 }
980 if (enable_nacl) { 971 if (enable_nacl) {
981 sources += [ 972 sources += [
982 "../browser/extensions/extension_nacl_browsertest.cc", 973 "../browser/extensions/extension_nacl_browsertest.cc",
983 "../browser/nacl_host/test/gdb_debug_stub_browsertest.cc", 974 "../browser/nacl_host/test/gdb_debug_stub_browsertest.cc",
984 "nacl/nacl_browsertest.cc", 975 "nacl/nacl_browsertest.cc",
985 "nacl/nacl_browsertest_uma.cc", 976 "nacl/nacl_browsertest_uma.cc",
986 "nacl/nacl_browsertest_util.cc", 977 "nacl/nacl_browsertest_util.cc",
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
1412 "//chrome:packed_resources", 1403 "//chrome:packed_resources",
1413 "//chrome:resources", 1404 "//chrome:resources",
1414 "//chrome:strings", 1405 "//chrome:strings",
1415 "//chrome/common", 1406 "//chrome/common",
1416 "//chrome/renderer", 1407 "//chrome/renderer",
1417 "//crypto:platform", 1408 "//crypto:platform",
1418 "//sync", 1409 "//sync",
1419 "//testing/gmock", 1410 "//testing/gmock",
1420 "//testing/gtest", 1411 "//testing/gtest",
1421 "//third_party/WebKit/public:blink", 1412 "//third_party/WebKit/public:blink",
1413 # Language detection is irrelevant to sync, so it can depend on any
1414 # implementation for CLD2. Dynamic is smaller, so go with dynamic.
1415 "//third_party/cld_2:cld2_dynamic",
1422 "//third_party/icu", 1416 "//third_party/icu",
1423 "//third_party/leveldatabase", 1417 "//third_party/leveldatabase",
1424 ] 1418 ]
1425 1419
1426 data_deps = [ 1420 data_deps = [
1427 "//third_party/mesa:osmesa", 1421 "//third_party/mesa:osmesa",
1428 ] 1422 ]
1429 1423
1430 if (cld_version == 2) {
1431 # Language detection is irrelevant to sync, so it can depend on any
1432 # implementation for CLD2. Dynamic is smaller, so go with dynamic.
1433 deps += [ "//third_party/cld_2:cld2_dynamic" ]
1434 }
1435 if (is_mac) { 1424 if (is_mac) {
1436 # Dictionary sync is disabled on Mac. 1425 # Dictionary sync is disabled on Mac.
1437 sources -= [ 1426 sources -= [
1438 "../browser/sync/test/integration/single_client_dictionary_sync_test.cc" , 1427 "../browser/sync/test/integration/single_client_dictionary_sync_test.cc" ,
1439 "../browser/sync/test/integration/two_client_dictionary_sync_test.cc", 1428 "../browser/sync/test/integration/two_client_dictionary_sync_test.cc",
1440 ] 1429 ]
1441 1430
1442 # The sync_integration_tests do not run on mac without this flag. 1431 # The sync_integration_tests do not run on mac without this flag.
1443 # Search for comments about "xcode_settings" elsewhere in this file. 1432 # Search for comments about "xcode_settings" elsewhere in this file.
1444 ldflags = [ "-Wl,-ObjC" ] 1433 ldflags = [ "-Wl,-ObjC" ]
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
1488 1477
1489 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] 1478 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
1490 1479
1491 deps = [ 1480 deps = [
1492 ":sync_integration_test_support", 1481 ":sync_integration_test_support",
1493 ":test_support_ui", 1482 ":test_support_ui",
1494 "//crypto:platform", 1483 "//crypto:platform",
1495 "//sync", 1484 "//sync",
1496 "//testing/gmock", 1485 "//testing/gmock",
1497 "//testing/gtest", 1486 "//testing/gtest",
1498 ]
1499
1500 if (cld_version == 2) {
1501 # Language detection is irrelevant to sync, so it can depend on any 1487 # Language detection is irrelevant to sync, so it can depend on any
1502 # implementation for CLD2. Dynamic is smaller, so go with dynamic. 1488 # implementation for CLD2. Dynamic is smaller, so go with dynamic.
1503 deps += [ "//third_party/cld_2:cld2_dynamic" ] 1489 "//third_party/cld_2:cld2_dynamic",
1504 } 1490 ]
1505 1491
1506 if (is_mac) { 1492 if (is_mac) {
1507 # Dictionary sync is disabled on Mac. 1493 # Dictionary sync is disabled on Mac.
1508 sources -= [ "../browser/sync/test/integration/performance/dictionary_sync _perf_test.cc" ] 1494 sources -= [ "../browser/sync/test/integration/performance/dictionary_sync _perf_test.cc" ]
1509 1495
1510 # The sync_performance_tests do not run on mac without this flag. 1496 # The sync_performance_tests do not run on mac without this flag.
1511 # Search for comments about "xcode_settings" elsewhere in this file. 1497 # Search for comments about "xcode_settings" elsewhere in this file.
1512 ldflags = [ "-Wl,-ObjC" ] 1498 ldflags = [ "-Wl,-ObjC" ]
1513 } 1499 }
1514 if (is_win) { 1500 if (is_win) {
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
1642 1628
1643 # 3) anything tests directly depend on 1629 # 3) anything tests directly depend on
1644 "//chrome:resources", 1630 "//chrome:resources",
1645 "//chrome:strings", 1631 "//chrome:strings",
1646 "//components/safe_browsing_db:test_database_manager", 1632 "//components/safe_browsing_db:test_database_manager",
1647 "//components/version_info:generate_version_info", 1633 "//components/version_info:generate_version_info",
1648 "//courgette:courgette_lib", 1634 "//courgette:courgette_lib",
1649 "//google_apis", 1635 "//google_apis",
1650 "//skia", 1636 "//skia",
1651 "//third_party/cacheinvalidation", 1637 "//third_party/cacheinvalidation",
1638 # Unit tests should be independent of the CLD2 access mechanism, just use
1639 # static for simplicity.
1640 "//third_party/cld_2:cld2_static",
1652 "//third_party/icu", 1641 "//third_party/icu",
1653 "//third_party/libxml", 1642 "//third_party/libxml",
1654 "//ui/base:test_support", 1643 "//ui/base:test_support",
1655 "//ui/gfx:test_support", 1644 "//ui/gfx:test_support",
1656 "//ui/resources", 1645 "//ui/resources",
1657 ] 1646 ]
1658 data_deps = [] 1647 data_deps = []
1659 1648
1660 # TODO(GYP) Windows stuff 1649 # TODO(GYP) Windows stuff
1661 # ['incremental_chrome_dll==1', { 1650 # ['incremental_chrome_dll==1', {
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
1949 "../browser/policy/cloud/user_policy_signin_service_unittest.cc", 1938 "../browser/policy/cloud/user_policy_signin_service_unittest.cc",
1950 "../browser/signin/signin_manager_unittest.cc", 1939 "../browser/signin/signin_manager_unittest.cc",
1951 ] 1940 ]
1952 } 1941 }
1953 if (use_x11) { 1942 if (use_x11) {
1954 deps += [ "//ui/events/devices" ] 1943 deps += [ "//ui/events/devices" ]
1955 data_deps += [ "//tools/xdisplaycheck" ] 1944 data_deps += [ "//tools/xdisplaycheck" ]
1956 } else { 1945 } else {
1957 sources -= [ "../browser/password_manager/password_store_x_unittest.cc" ] 1946 sources -= [ "../browser/password_manager/password_store_x_unittest.cc" ]
1958 } 1947 }
1959 if (cld_version == 2) {
1960 # Unit tests should be independent of the CLD2 access mechanism, just use
1961 # static for simplicity.
1962 deps += [ "//third_party/cld_2:cld2_static" ]
1963 }
1964 if (is_desktop_linux && current_cpu == "x64") { 1948 if (is_desktop_linux && current_cpu == "x64") {
1965 # Only add this test for 64 bit builds because otherwise we need the 32 1949 # Only add this test for 64 bit builds because otherwise we need the 32
1966 # bit library on 64 bit systems when running this test. 1950 # bit library on 64 bit systems when running this test.
1967 sources += 1951 sources +=
1968 [ "../browser/password_manager/native_backend_gnome_x_unittest.cc" ] 1952 [ "../browser/password_manager/native_backend_gnome_x_unittest.cc" ]
1969 configs += [ 1953 configs += [
1970 "//chrome/browser:gnome_keyring", 1954 "//chrome/browser:gnome_keyring",
1971 "//chrome/browser:gnome_keyring_direct", 1955 "//chrome/browser:gnome_keyring_direct",
1972 ] 1956 ]
1973 } 1957 }
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
2142 } 2126 }
2143 if (enable_supervised_users && !is_android && !is_ios) { 2127 if (enable_supervised_users && !is_android && !is_ios) {
2144 sources += rebase_path( 2128 sources += rebase_path(
2145 chrome_tests_unit_gypi_values.chrome_unit_tests_supervised_user_lega cy_sources, 2129 chrome_tests_unit_gypi_values.chrome_unit_tests_supervised_user_lega cy_sources,
2146 ".", 2130 ".",
2147 "//chrome") 2131 "//chrome")
2148 } 2132 }
2149 if (safe_browsing_mode == 1 && enable_extensions) { 2133 if (safe_browsing_mode == 1 && enable_extensions) {
2150 sources += [ "../browser/extensions/blacklist_unittest.cc" ] 2134 sources += [ "../browser/extensions/blacklist_unittest.cc" ]
2151 } 2135 }
2152 if (cld_version == 1) {
2153 sources += [ "//third_party/cld/encodings/compact_lang_det/compact_lang_det_ unittest_small.cc" ]
2154 defines += [ "CLD_WINDOWS" ]
2155 deps += [ "//third_party/cld" ]
2156 }
2157 if (enable_app_list) { 2136 if (enable_app_list) {
2158 sources += rebase_path( 2137 sources += rebase_path(
2159 chrome_tests_unit_gypi_values.chrome_unit_tests_app_list_sources, 2138 chrome_tests_unit_gypi_values.chrome_unit_tests_app_list_sources,
2160 ".", 2139 ".",
2161 "//chrome") 2140 "//chrome")
2162 deps += [ "//ui/app_list:test_support" ] 2141 deps += [ "//ui/app_list:test_support" ]
2163 } 2142 }
2164 if (enable_app_list && is_chromeos) { 2143 if (enable_app_list && is_chromeos) {
2165 sources += rebase_path( 2144 sources += rebase_path(
2166 chrome_tests_unit_gypi_values.chrome_unit_tests_app_list_chromeos_so urces, 2145 chrome_tests_unit_gypi_values.chrome_unit_tests_app_list_chromeos_so urces,
(...skipping 28 matching lines...) Expand all
2195 ] 2174 ]
2196 deps = [ 2175 deps = [
2197 ":test_support", 2176 ":test_support",
2198 "//base/test:run_all_unittests", 2177 "//base/test:run_all_unittests",
2199 "//base/test:test_support", 2178 "//base/test:test_support",
2200 "//breakpad:client", 2179 "//breakpad:client",
2201 "//chrome/browser", 2180 "//chrome/browser",
2202 "//chrome/child", 2181 "//chrome/child",
2203 "//components/crash/core/common", 2182 "//components/crash/core/common",
2204 "//components/flags_ui:switches", 2183 "//components/flags_ui:switches",
2184 "//third_party/cld_2:cld2_platform_impl",
2205 "//third_party/kasko:kasko_features", 2185 "//third_party/kasko:kasko_features",
2206 ] 2186 ]
2207 if (cld_version == 2) {
2208 # Use whatever CLD2 data access mode that the
2209 # application embedder is using.
2210 deps += [ "//third_party/cld_2:cld2_platform_impl" ]
2211 }
2212 } 2187 }
2213 } 2188 }
2214 2189
2215 if (is_win || (is_linux && !is_chromeos)) { 2190 if (is_win || (is_linux && !is_chromeos)) {
2216 test("performance_browser_tests") { 2191 test("performance_browser_tests") {
2217 sources = 2192 sources =
2218 rebase_path(chrome_tests_gypi_values.performance_browser_tests_sources, 2193 rebase_path(chrome_tests_gypi_values.performance_browser_tests_sources,
2219 ".", 2194 ".",
2220 "//chrome") 2195 "//chrome")
2221 2196
2222 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] 2197 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
2223 2198
2224 deps = [ 2199 deps = [
2225 ":test_support", 2200 ":test_support",
2226 ":test_support_ui", 2201 ":test_support_ui",
2227 "//base", 2202 "//base",
2228 "//base:i18n", 2203 "//base:i18n",
2229 "//base/test:test_support", 2204 "//base/test:test_support",
2230 "//chrome/browser", 2205 "//chrome/browser",
2231 "//chrome/renderer", 2206 "//chrome/renderer",
2232 "//components/about_handler", 2207 "//components/about_handler",
2233 "//components/autofill/content/browser/wallet:test_support", 2208 "//components/autofill/content/browser/wallet:test_support",
2234 "//components/autofill/content/renderer:test_support", 2209 "//components/autofill/content/renderer:test_support",
2235 "//content/test:browsertest_base", 2210 "//content/test:browsertest_base",
2236 "//media/cast:test_support", 2211 "//media/cast:test_support",
2237 "//testing/gmock", 2212 "//testing/gmock",
2238 "//testing/gtest", 2213 "//testing/gtest",
2239 "//testing/perf", 2214 "//testing/perf",
2215 "//third_party/cld_2:cld2_platform_impl"
2240 ] 2216 ]
2241 2217
2242 if (is_win) { 2218 if (is_win) {
2243 configs -= [ "//build/config/win:default_incremental_linking" ] 2219 configs -= [ "//build/config/win:default_incremental_linking" ]
2244 configs += 2220 configs +=
2245 [ "//build/config/win:default_large_module_incremental_linking" ] 2221 [ "//build/config/win:default_large_module_incremental_linking" ]
2246 } else { 2222 } else {
2247 sources -= [ 2223 sources -= [
2248 "../app/chrome_command_ids.h", 2224 "../app/chrome_command_ids.h",
2249 2225
2250 #"../app/chrome_dll.rc", 2226 #"../app/chrome_dll.rc",
2251 #"../app/chrome_dll_resource.h", 2227 #"../app/chrome_dll_resource.h",
2252 "../app/chrome_version.rc.version", 2228 "../app/chrome_version.rc.version",
2253 ] 2229 ]
2254 } 2230 }
2255 if (!is_mac) { 2231 if (!is_mac) {
2256 sources -= [ "perf/mach_ports_performancetest.cc" ] 2232 sources -= [ "perf/mach_ports_performancetest.cc" ]
2257 } 2233 }
2258
2259 if (cld_version == 2) {
2260 # Use whatever CLD2 data access mode that the
2261 # application embedder is using.
2262 deps += [ "//third_party/cld_2:cld2_platform_impl" ]
2263 }
2264 } 2234 }
2265 } 2235 }
2266 2236
2267 source_set("test_support_unit") { 2237 source_set("test_support_unit") {
2268 testonly = true 2238 testonly = true
2269 sources = [ 2239 sources = [
2270 "../browser/sync/glue/session_sync_test_helper.cc", 2240 "../browser/sync/glue/session_sync_test_helper.cc",
2271 "../browser/sync/glue/session_sync_test_helper.h", 2241 "../browser/sync/glue/session_sync_test_helper.h",
2272 "base/run_all_unittests.cc", 2242 "base/run_all_unittests.cc",
2273 ] 2243 ]
(...skipping 19 matching lines...) Expand all
2293 if (is_android) { 2263 if (is_android) {
2294 android_library("unit_tests_java") { 2264 android_library("unit_tests_java") {
2295 java_files = [ "android/unit_tests_apk/src/org/chromium/chrome/unit_tests_ap k/ChromeNativeTestApplication.java" ] 2265 java_files = [ "android/unit_tests_apk/src/org/chromium/chrome/unit_tests_ap k/ChromeNativeTestApplication.java" ]
2296 deps = [ 2266 deps = [
2297 "//base:base_java", 2267 "//base:base_java",
2298 "//chrome/android:chrome_java", 2268 "//chrome/android:chrome_java",
2299 "//content/public/android:content_java", 2269 "//content/public/android:content_java",
2300 ] 2270 ]
2301 } 2271 }
2302 } 2272 }
OLDNEW
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | components/components_tests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698