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

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

Issue 1291703008: Rename is_chromeos in chrome/src. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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/common/variations/BUILD.gn ('k') | chrome/third_party/chromevox/BUILD.gn » ('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/crypto.gni") 6 import("//build/config/crypto.gni")
7 import("//build/config/features.gni") 7 import("//build/config/features.gni")
8 import("//build/config/ui.gni") 8 import("//build/config/ui.gni")
9 import("//chrome/chrome_tests.gni") 9 import("//chrome/chrome_tests.gni")
10 import("//chrome/test/base/js2gtest.gni") 10 import("//chrome/test/base/js2gtest.gni")
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 } 178 }
179 if (is_win) { 179 if (is_win) {
180 deps += [ "//third_party/wtl" ] 180 deps += [ "//third_party/wtl" ]
181 if (use_aura) { 181 if (use_aura) {
182 deps += [ 182 deps += [
183 "//win8:test_registrar_constants", 183 "//win8:test_registrar_constants",
184 "//win8:test_support_win8", 184 "//win8:test_support_win8",
185 ] 185 ]
186 } 186 }
187 } 187 }
188 if (is_chromeos) { 188 if (is_chromeos_ui) {
189 deps += [ "//components/ownership" ] 189 deps += [ "//components/ownership" ]
190 } 190 }
191 191
192 if (use_aura) { 192 if (use_aura) {
193 sources += [ 193 sources += [
194 "base/test_browser_window_aura.cc", 194 "base/test_browser_window_aura.cc",
195 "base/test_browser_window_aura.h", 195 "base/test_browser_window_aura.h",
196 ] 196 ]
197 } 197 }
198 198
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 sources += rebase_path( 333 sources += rebase_path(
334 chrome_tests_gypi_values.chrome_interactive_ui_test_views_non_ma c_sources, 334 chrome_tests_gypi_values.chrome_interactive_ui_test_views_non_ma c_sources,
335 ".", 335 ".",
336 "//chrome") 336 "//chrome")
337 } 337 }
338 if (is_linux) { 338 if (is_linux) {
339 # TODO(gbillock): aura linux does not support the automation for 339 # TODO(gbillock): aura linux does not support the automation for
340 # SendMouseMoveNotifyWhenDone 340 # SendMouseMoveNotifyWhenDone
341 sources -= [ "../browser/ui/views/toolbar/toolbar_button_test.cc" ] 341 sources -= [ "../browser/ui/views/toolbar/toolbar_button_test.cc" ]
342 } 342 }
343 if (is_chromeos || !use_x11) { 343 if (is_chromeos_ui || !use_x11) {
344 sources -= [ 344 sources -= [
345 "../../ui/views/widget/desktop_aura/desktop_window_tree_host_x11_inter active_uitest.cc", 345 "../../ui/views/widget/desktop_aura/desktop_window_tree_host_x11_inter active_uitest.cc",
346 "../../ui/views/widget/desktop_aura/x11_topmost_window_finder_interact ive_uitest.cc", 346 "../../ui/views/widget/desktop_aura/x11_topmost_window_finder_interact ive_uitest.cc",
347 ] 347 ]
348 } 348 }
349 if (use_aura) { 349 if (use_aura) {
350 deps += [ "//ui/touch_selection" ] 350 deps += [ "//ui/touch_selection" ]
351 } 351 }
352 } 352 }
353 353
354 if (is_linux && !is_chromeos) { 354 if (is_linux && !is_chromeos_ui) {
355 # Desktop linux. 355 # Desktop linux.
356 sources -= [ 356 sources -= [
357 # TODO(port): This times out. Attempts have been made to fix the 357 # TODO(port): This times out. Attempts have been made to fix the
358 # individual failures, but each time I disable a test from these 358 # individual failures, but each time I disable a test from these
359 # suites, it seems like one or another starts timing out too. 359 # suites, it seems like one or another starts timing out too.
360 "../browser/ui/views/keyboard_access_browsertest.cc", 360 "../browser/ui/views/keyboard_access_browsertest.cc",
361 ] 361 ]
362 } else { 362 } else {
363 # Everything but desktop Linux. 363 # Everything but desktop Linux.
364 sources += rebase_path( 364 sources += rebase_path(
365 chrome_tests_gypi_values.chrome_interactive_ui_test_non_desktop_li nux_sources, 365 chrome_tests_gypi_values.chrome_interactive_ui_test_non_desktop_li nux_sources,
366 ".", 366 ".",
367 "//chrome") 367 "//chrome")
368 } 368 }
369 369
370 if (is_chromeos) { 370 if (is_chromeos_ui) {
371 sources += rebase_path( 371 sources += rebase_path(
372 chrome_tests_gypi_values.chrome_interactive_ui_test_chromeos_sourc es, 372 chrome_tests_gypi_values.chrome_interactive_ui_test_chromeos_sourc es,
373 ".", 373 ".",
374 "//chrome") 374 "//chrome")
375 sources += [ "../browser/notifications/login_state_notification_blocker_ch romeos_browsertest.cc" ] 375 sources += [ "../browser/notifications/login_state_notification_blocker_ch romeos_browsertest.cc" ]
376 sources -= [ 376 sources -= [
377 # Use only the _chromeos version on ChromeOS. 377 # Use only the _chromeos version on ChromeOS.
378 "base/view_event_test_platform_part_ash.cc", 378 "base/view_event_test_platform_part_ash.cc",
379 ] 379 ]
380 380
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 } 477 }
478 478
479 if (enable_notifications) { 479 if (enable_notifications) {
480 sources += rebase_path( 480 sources += rebase_path(
481 chrome_tests_gypi_values.chrome_interactive_ui_test_notifications_ sources, 481 chrome_tests_gypi_values.chrome_interactive_ui_test_notifications_ sources,
482 ".", 482 ".",
483 "//chrome") 483 "//chrome")
484 484
485 # Non-ChromeOS notifications tests (ChromeOS does not use cross-platform 485 # Non-ChromeOS notifications tests (ChromeOS does not use cross-platform
486 # panels). 486 # panels).
487 if (!is_chromeos) { 487 if (!is_chromeos_ui) {
488 sources += [ 488 sources += [
489 "../browser/notifications/notification_browsertest.cc", 489 "../browser/notifications/notification_browsertest.cc",
490 "../browser/notifications/platform_notification_service_browsertest.cc ", 490 "../browser/notifications/platform_notification_service_browsertest.cc ",
491 ] 491 ]
492 } 492 }
493 493
494 if (is_android) { 494 if (is_android) {
495 sources -= [ 495 sources -= [
496 # Android does not use the message center-based Notification system. 496 # Android does not use the message center-based Notification system.
497 "../browser/notifications/message_center_notifications_browsertest.cc" , 497 "../browser/notifications/message_center_notifications_browsertest.cc" ,
498 498
499 # TODO(peter): Enable the Notification browser tests. 499 # TODO(peter): Enable the Notification browser tests.
500 "../browser/notifications/notification_browsertest.cc", 500 "../browser/notifications/notification_browsertest.cc",
501 "../browser/notifications/platform_notification_service_browsertest.cc ", 501 "../browser/notifications/platform_notification_service_browsertest.cc ",
502 ] 502 ]
503 } 503 }
504 } # enable_notifications 504 } # enable_notifications
505 505
506 if (use_aura || is_chromeos) { 506 if (use_aura || is_chromeos_ui) {
507 sources -= 507 sources -=
508 [ "../../ui/views/corewm/desktop_capture_controller_unittest.cc" ] 508 [ "../../ui/views/corewm/desktop_capture_controller_unittest.cc" ]
509 } 509 }
510 } 510 }
511 511
512 source_set("sync_integration_test_support") { 512 source_set("sync_integration_test_support") {
513 testonly = true 513 testonly = true
514 sources = rebase_path( 514 sources = rebase_path(
515 chrome_tests_gypi_values.test_support_sync_integration_sources, 515 chrome_tests_gypi_values.test_support_sync_integration_sources,
516 ".", 516 ".",
(...skipping 22 matching lines...) Expand all
539 "../browser/sync/test/integration/dictionary_load_observer.cc", 539 "../browser/sync/test/integration/dictionary_load_observer.cc",
540 "../browser/sync/test/integration/dictionary_load_observer.h", 540 "../browser/sync/test/integration/dictionary_load_observer.h",
541 ] 541 ]
542 } 542 }
543 if (!enable_app_list) { 543 if (!enable_app_list) {
544 sources -= [ 544 sources -= [
545 "../browser/sync/test/integration/sync_app_list_helper.cc", 545 "../browser/sync/test/integration/sync_app_list_helper.cc",
546 "../browser/sync/test/integration/sync_app_list_helper.h", 546 "../browser/sync/test/integration/sync_app_list_helper.h",
547 ] 547 ]
548 } 548 }
549 if (!is_chromeos) { 549 if (!is_chromeos_ui) {
550 sources -= [ 550 sources -= [
551 "../browser/sync/test/integration/wifi_credentials_helper.cc", 551 "../browser/sync/test/integration/wifi_credentials_helper.cc",
552 "../browser/sync/test/integration/wifi_credentials_helper.h", 552 "../browser/sync/test/integration/wifi_credentials_helper.h",
553 ] 553 ]
554 } 554 }
555 } 555 }
556 556
557 js2gtest("browser_tests_js_webui") { 557 js2gtest("browser_tests_js_webui") {
558 test_type = "webui" 558 test_type = "webui"
559 sources = rebase_path( 559 sources = rebase_path(
560 chrome_tests_gypi_values.chrome_browser_tests_webui_js_sources, 560 chrome_tests_gypi_values.chrome_browser_tests_webui_js_sources,
561 ".", 561 ".",
562 "//chrome") 562 "//chrome")
563 if (is_chrome_branded) { 563 if (is_chrome_branded) {
564 # crbug.com/230471 564 # crbug.com/230471
565 sources -= [ "data/webui/accessibility_audit_browsertest.js" ] 565 sources -= [ "data/webui/accessibility_audit_browsertest.js" ]
566 } 566 }
567 if (!is_chromeos) { 567 if (!is_chromeos_ui) {
568 sources -= [ "data/webui/certificate_viewer_dialog_test.js" ] 568 sources -= [ "data/webui/certificate_viewer_dialog_test.js" ]
569 } 569 }
570 if (!enable_app_list) { 570 if (!enable_app_list) {
571 sources -= [ "../browser/ui/webui/app_list/start_page_browsertest.js" ] 571 sources -= [ "../browser/ui/webui/app_list/start_page_browsertest.js" ]
572 } 572 }
573 if (!enable_supervised_users) { 573 if (!enable_supervised_users) {
574 sources -= 574 sources -=
575 [ "../browser/ui/webui/downloads_ui_supervised_browsertest.js" ] 575 [ "../browser/ui/webui/downloads_ui_supervised_browsertest.js" ]
576 } 576 }
577 if (!enable_print_preview) { 577 if (!enable_print_preview) {
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 # to know all of the different toolchain options. 777 # to know all of the different toolchain options.
778 assert(current_cpu == "x64") 778 assert(current_cpu == "x64")
779 data_deps += [ 779 data_deps += [
780 # "test/data/nacl:shared_test_files", # TODO(GYP) bug 512902 780 # "test/data/nacl:shared_test_files", # TODO(GYP) bug 512902
781 "//ppapi/native_client:nacl_irt(//native_client/build/toolchain/nacl:i rt_x64)", 781 "//ppapi/native_client:nacl_irt(//native_client/build/toolchain/nacl:i rt_x64)",
782 # "../ppapi/ppapi_nacl.gyp:ppapi_nacl_tests", # TODO(GYP) bug 512901 782 # "../ppapi/ppapi_nacl.gyp:ppapi_nacl_tests", # TODO(GYP) bug 512901
783 # "../ppapi/tests/extensions/extensions.gyp:ppapi_tests_extensions_bac kground_keepalive", # TODO(GYP) bug 512900 783 # "../ppapi/tests/extensions/extensions.gyp:ppapi_tests_extensions_bac kground_keepalive", # TODO(GYP) bug 512900
784 # "../ppapi/tests/extensions/extensions.gyp:ppapi_tests_extensions_med ia_galleries", # TODO(GYP) bug 512900 784 # "../ppapi/tests/extensions/extensions.gyp:ppapi_tests_extensions_med ia_galleries", # TODO(GYP) bug 512900
785 # "../ppapi/tests/extensions/extensions.gyp:ppapi_tests_extensions_pac kaged_app", # TODO(GYP) bug 512900 785 # "../ppapi/tests/extensions/extensions.gyp:ppapi_tests_extensions_pac kaged_app", # TODO(GYP) bug 512900
786 ] 786 ]
787 if (is_chromeos) { 787 if (is_chromeos_ui) {
788 sources += [ "//third_party/liblouis/nacl_wrapper/liblouis_wrapper_bro wsertest.cc" ] 788 sources += [ "//third_party/liblouis/nacl_wrapper/liblouis_wrapper_bro wsertest.cc" ]
789 deps += [ 789 deps += [
790 "//chrome/browser/chromeos", 790 "//chrome/browser/chromeos",
791 #'../third_party/liblouis/liblouis_nacl.gyp:liblouis_test_data', TO DO(GYP) bug 512906 791 #'../third_party/liblouis/liblouis_nacl.gyp:liblouis_test_data', TO DO(GYP) bug 512906
792 ] 792 ]
793 } 793 }
794 } 794 }
795 if (is_win || is_linux) { 795 if (is_win || is_linux) {
796 sources += [ "../browser/nacl_host/test/nacl_gdb_browsertest.cc" ] 796 sources += [ "../browser/nacl_host/test/nacl_gdb_browsertest.cc" ]
797 deps += [ "//chrome/browser/nacl_host/test:mock_nacl_gdb" ] 797 deps += [ "//chrome/browser/nacl_host/test:mock_nacl_gdb" ]
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
831 ".", 831 ".",
832 "//chrome") 832 "//chrome")
833 deps += [ "//ui/views" ] 833 deps += [ "//ui/views" ]
834 if (!is_mac) { 834 if (!is_mac) {
835 sources += rebase_path( 835 sources += rebase_path(
836 chrome_tests_gypi_values.chrome_browser_tests_views_non_mac_sour ces, 836 chrome_tests_gypi_values.chrome_browser_tests_views_non_mac_sour ces,
837 ".", 837 ".",
838 "//chrome") 838 "//chrome")
839 } 839 }
840 } 840 }
841 if (is_chromeos) { 841 if (is_chromeos_ui) {
842 sources += rebase_path( 842 sources += rebase_path(
843 chrome_tests_gypi_values.chrome_browser_tests_chromeos_sources, 843 chrome_tests_gypi_values.chrome_browser_tests_chromeos_sources,
844 ".", 844 ".",
845 "//chrome") 845 "//chrome")
846 sources -= [ 846 sources -= [
847 "../../apps/load_and_launch_browsertest.cc", 847 "../../apps/load_and_launch_browsertest.cc",
848 "../browser/printing/cloud_print/test/cloud_print_policy_browsertest.cc" , 848 "../browser/printing/cloud_print/test/cloud_print_policy_browsertest.cc" ,
849 "../browser/printing/cloud_print/test/cloud_print_proxy_process_browsert est.cc", 849 "../browser/printing/cloud_print/test/cloud_print_proxy_process_browsert est.cc",
850 850
851 # chromeos does not support profile list avatar menu 851 # chromeos does not support profile list avatar menu
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
922 "//ui/resources", 922 "//ui/resources",
923 ] 923 ]
924 } else { 924 } else {
925 sources -= [ 925 sources -= [
926 "../app/chrome_command_ids.h", 926 "../app/chrome_command_ids.h",
927 "../app/chrome_dll_resource.h", 927 "../app/chrome_dll_resource.h",
928 "../app/chrome_version.rc.version", 928 "../app/chrome_version.rc.version",
929 "../browser/media_galleries/fileapi/iapps_finder_impl_win_browsertest.cc ", 929 "../browser/media_galleries/fileapi/iapps_finder_impl_win_browsertest.cc ",
930 ] 930 ]
931 } 931 }
932 if (!is_chromeos && use_aura) { 932 if (!is_chromeos_ui && use_aura) {
933 sources -= [ 933 sources -= [
934 # On Windows and Linux, we currently don't support enough of the 934 # On Windows and Linux, we currently don't support enough of the
935 # ash environment to run these unit tests. 935 # ash environment to run these unit tests.
936 # 936 #
937 # TODO: enable these on windows and linux. 937 # TODO: enable these on windows and linux.
938 "../browser/ui/ash/accelerator_commands_browsertest.cc", 938 "../browser/ui/ash/accelerator_commands_browsertest.cc",
939 "../browser/ui/ash/accelerator_controller_browsertest.cc", 939 "../browser/ui/ash/accelerator_controller_browsertest.cc",
940 "../browser/ui/ash/launcher/chrome_launcher_controller_browsertest.cc", 940 "../browser/ui/ash/launcher/chrome_launcher_controller_browsertest.cc",
941 "../browser/ui/ash/launcher/launcher_favicon_loader_browsertest.cc", 941 "../browser/ui/ash/launcher/launcher_favicon_loader_browsertest.cc",
942 "../browser/ui/ash/shelf_browsertest.cc", 942 "../browser/ui/ash/shelf_browsertest.cc",
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
995 } 995 }
996 if (is_mac || is_win) { 996 if (is_mac || is_win) {
997 sources += [ 997 sources += [
998 "../browser/extensions/api/networking_private/networking_private_apitest .cc", 998 "../browser/extensions/api/networking_private/networking_private_apitest .cc",
999 "../browser/extensions/api/networking_private/networking_private_service _client_apitest.cc", 999 "../browser/extensions/api/networking_private/networking_private_service _client_apitest.cc",
1000 "../browser/media_galleries/fileapi/itunes_data_provider_browsertest.cc" , 1000 "../browser/media_galleries/fileapi/itunes_data_provider_browsertest.cc" ,
1001 "../browser/media_galleries/fileapi/picasa_data_provider_browsertest.cc" , 1001 "../browser/media_galleries/fileapi/picasa_data_provider_browsertest.cc" ,
1002 ] 1002 ]
1003 deps += [ "//components/wifi:test_support" ] 1003 deps += [ "//components/wifi:test_support" ]
1004 } 1004 }
1005 if (!is_posix || is_chromeos) { 1005 if (!is_posix || is_chromeos_ui) {
1006 sources -= [ "../common/time_format_browsertest.cc" ] 1006 sources -= [ "../common/time_format_browsertest.cc" ]
1007 } 1007 }
1008 if (is_android) { 1008 if (is_android) {
1009 sources -= [ 1009 sources -= [
1010 "../browser/policy/cloud/component_cloud_policy_browsertest.cc", 1010 "../browser/policy/cloud/component_cloud_policy_browsertest.cc",
1011 "../browser/prefs/pref_hash_browsertest.cc", 1011 "../browser/prefs/pref_hash_browsertest.cc",
1012 "../renderer/spellchecker/spellcheck_provider_hunspell_unittest.cc", 1012 "../renderer/spellchecker/spellcheck_provider_hunspell_unittest.cc",
1013 "../renderer/spellchecker/spellcheck_unittest.cc", 1013 "../renderer/spellchecker/spellcheck_unittest.cc",
1014 ] 1014 ]
1015 } 1015 }
1016 if (is_chromeos) { 1016 if (is_chromeos_ui) {
1017 sources += [ 1017 sources += [
1018 "../browser/extensions/api/networking_private/networking_private_apitest .cc", 1018 "../browser/extensions/api/networking_private/networking_private_apitest .cc",
1019 "../browser/extensions/api/networking_private/networking_private_chromeo s_apitest.cc", 1019 "../browser/extensions/api/networking_private/networking_private_chromeo s_apitest.cc",
1020 ] 1020 ]
1021 } 1021 }
1022 if (!is_android && !is_ios && enable_nacl_browsertests) { 1022 if (!is_android && !is_ios && enable_nacl_browsertests) {
1023 sources += 1023 sources +=
1024 [ "../browser/copresence/chrome_whispernet_client_browsertest.cc" ] 1024 [ "../browser/copresence/chrome_whispernet_client_browsertest.cc" ]
1025 deps += [ "//components/copresence" ] 1025 deps += [ "//components/copresence" ]
1026 } 1026 }
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
1168 "//third_party/wtl", 1168 "//third_party/wtl",
1169 "//ui/resources", 1169 "//ui/resources",
1170 ] 1170 ]
1171 1171
1172 configs -= [ "//build/config/win:default_incremental_linking" ] 1172 configs -= [ "//build/config/win:default_incremental_linking" ]
1173 configs += 1173 configs +=
1174 [ "//build/config/win:default_large_module_incremental_linking" ] 1174 [ "//build/config/win:default_large_module_incremental_linking" ]
1175 } else { 1175 } else {
1176 sources -= [ "../app/chrome_version.rc.version" ] 1176 sources -= [ "../app/chrome_version.rc.version" ]
1177 } 1177 }
1178 if (!is_chromeos) { 1178 if (!is_chromeos_ui) {
1179 sources -= [ 1179 sources -= [
1180 "../browser/sync/test/integration/single_client_wifi_credentials_sync_te st.cc", 1180 "../browser/sync/test/integration/single_client_wifi_credentials_sync_te st.cc",
1181 "../browser/sync/test/integration/two_client_wifi_credentials_sync_test. cc", 1181 "../browser/sync/test/integration/two_client_wifi_credentials_sync_test. cc",
1182 ] 1182 ]
1183 } 1183 }
1184 1184
1185 if (toolkit_views) { 1185 if (toolkit_views) {
1186 deps += [ "//ui/views" ] 1186 deps += [ "//ui/views" ]
1187 } 1187 }
1188 if (enable_basic_printing || enable_print_preview) { 1188 if (enable_basic_printing || enable_print_preview) {
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
1273 js2gtest("unit_tests_js") { 1273 js2gtest("unit_tests_js") {
1274 test_type = "unit" 1274 test_type = "unit"
1275 sources = rebase_path( 1275 sources = rebase_path(
1276 chrome_tests_unit_gypi_values.chrome_unit_tests_gtestjs_sources, 1276 chrome_tests_unit_gypi_values.chrome_unit_tests_gtestjs_sources,
1277 ".", 1277 ".",
1278 "//chrome") 1278 "//chrome")
1279 extra_js_files = 1279 extra_js_files =
1280 rebase_path(chrome_tests_unit_gypi_values.chrome_unit_tests_js_sources, 1280 rebase_path(chrome_tests_unit_gypi_values.chrome_unit_tests_js_sources,
1281 ".", 1281 ".",
1282 "//chrome") 1282 "//chrome")
1283 if (is_chromeos) { 1283 if (is_chromeos_ui) {
1284 sources += rebase_path( 1284 sources += rebase_path(
1285 chrome_tests_unit_gypi_values.chrome_unit_tests_chromeos_gtestjs_s ources, 1285 chrome_tests_unit_gypi_values.chrome_unit_tests_chromeos_gtestjs_s ources,
1286 ".", 1286 ".",
1287 "//chrome") 1287 "//chrome")
1288 extra_js_files += rebase_path( 1288 extra_js_files += rebase_path(
1289 chrome_tests_unit_gypi_values.chrome_unit_tests_chromeos_js_source s, 1289 chrome_tests_unit_gypi_values.chrome_unit_tests_chromeos_js_source s,
1290 ".", 1290 ".",
1291 "//chrome") 1291 "//chrome")
1292 } 1292 }
1293 } 1293 }
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
1422 # TODO: remove --gc-sections for Debug builds (crbug.com/159847). 1422 # TODO: remove --gc-sections for Debug builds (crbug.com/159847).
1423 ldflags = [ "-Wl,--gc-sections" ] 1423 ldflags = [ "-Wl,--gc-sections" ]
1424 deps += [ "//testing/android/native_test:native_test_native_code" ] 1424 deps += [ "//testing/android/native_test:native_test_native_code" ]
1425 isolate_file = "../unit_tests.isolate" 1425 isolate_file = "../unit_tests.isolate"
1426 } else { 1426 } else {
1427 sources += rebase_path( 1427 sources += rebase_path(
1428 chrome_tests_unit_gypi_values.chrome_unit_tests_non_android_source s, 1428 chrome_tests_unit_gypi_values.chrome_unit_tests_non_android_source s,
1429 ".", 1429 ".",
1430 "//chrome") 1430 "//chrome")
1431 } 1431 }
1432 if (is_ios || is_chromeos) { 1432 if (is_ios || is_chromeos_ui) {
1433 sources -= 1433 sources -=
1434 [ "../browser/metrics/signin_status_metrics_provider_unittest.cc" ] 1434 [ "../browser/metrics/signin_status_metrics_provider_unittest.cc" ]
1435 } 1435 }
1436 if (enable_background) { 1436 if (enable_background) {
1437 sources += rebase_path( 1437 sources += rebase_path(
1438 chrome_tests_unit_gypi_values.chrome_unit_tests_background_sources , 1438 chrome_tests_unit_gypi_values.chrome_unit_tests_background_sources ,
1439 ".", 1439 ".",
1440 "//chrome") 1440 "//chrome")
1441 } 1441 }
1442 if (enable_spellcheck) { 1442 if (enable_spellcheck) {
(...skipping 23 matching lines...) Expand all
1466 "//device/usb:mocks", 1466 "//device/usb:mocks",
1467 "//extensions:extensions_resources", 1467 "//extensions:extensions_resources",
1468 "//extensions/strings", 1468 "//extensions/strings",
1469 ] 1469 ]
1470 if (enable_configuration_policy) { 1470 if (enable_configuration_policy) {
1471 sources += rebase_path( 1471 sources += rebase_path(
1472 chrome_tests_unit_gypi_values.chrome_unit_tests_extensions_polic y_sources, 1472 chrome_tests_unit_gypi_values.chrome_unit_tests_extensions_polic y_sources,
1473 ".", 1473 ".",
1474 "//chrome") 1474 "//chrome")
1475 } 1475 }
1476 if (!is_chromeos) { 1476 if (!is_chromeos_ui) {
1477 sources += rebase_path( 1477 sources += rebase_path(
1478 chrome_tests_unit_gypi_values.chrome_unit_tests_extensions_non_c hromeos_sources, 1478 chrome_tests_unit_gypi_values.chrome_unit_tests_extensions_non_c hromeos_sources,
1479 ".", 1479 ".",
1480 "//chrome") 1480 "//chrome")
1481 } 1481 }
1482 } 1482 }
1483 if (toolkit_views) { 1483 if (toolkit_views) {
1484 deps += [ 1484 deps += [
1485 "//components/web_modal:test_support", 1485 "//components/web_modal:test_support",
1486 "//ui/views", 1486 "//ui/views",
(...skipping 28 matching lines...) Expand all
1515 } 1515 }
1516 } 1516 }
1517 if (use_aura) { 1517 if (use_aura) {
1518 sources += [ "//ui/views/controls/webview/webview_unittest.cc" ] 1518 sources += [ "//ui/views/controls/webview/webview_unittest.cc" ]
1519 deps += [ 1519 deps += [
1520 "//ui/wm", 1520 "//ui/wm",
1521 "//ui/aura:test_support", 1521 "//ui/aura:test_support",
1522 "//ui/views:test_support", 1522 "//ui/views:test_support",
1523 ] 1523 ]
1524 } 1524 }
1525 if (!is_chromeos && is_linux) { 1525 if (is_linux && !is_chromeos_ui) {
1526 sources += rebase_path( 1526 sources += rebase_path(
1527 chrome_tests_unit_gypi_values.chrome_unit_tests_desktop_linux_sour ces, 1527 chrome_tests_unit_gypi_values.chrome_unit_tests_desktop_linux_sour ces,
1528 ".", 1528 ".",
1529 "//chrome") 1529 "//chrome")
1530 } 1530 }
1531 if (!is_chromeos && !use_ozone && is_linux) { 1531 if (is_linux && !is_chromeos_ui && !use_ozone) {
1532 deps += [ 1532 deps += [
1533 "//chrome/browser/ui/libgtk2ui", 1533 "//chrome/browser/ui/libgtk2ui",
1534 "//build/config/linux:gio", 1534 "//build/config/linux:gio",
1535 ] 1535 ]
1536 } 1536 }
1537 1537
1538 if (enable_task_manager) { 1538 if (enable_task_manager) {
1539 sources += rebase_path( 1539 sources += rebase_path(
1540 chrome_tests_unit_gypi_values.chrome_unit_tests_task_manager_sourc es, 1540 chrome_tests_unit_gypi_values.chrome_unit_tests_task_manager_sourc es,
1541 ".", 1541 ".",
1542 "//chrome") 1542 "//chrome")
1543 } 1543 }
1544 if (enable_mdns) { 1544 if (enable_mdns) {
1545 sources += rebase_path( 1545 sources += rebase_path(
1546 chrome_tests_unit_gypi_values.chrome_unit_tests_mdns_sources, 1546 chrome_tests_unit_gypi_values.chrome_unit_tests_mdns_sources,
1547 ".", 1547 ".",
1548 "//chrome") 1548 "//chrome")
1549 } 1549 }
1550 if (enable_service_discovery) { 1550 if (enable_service_discovery) {
1551 sources += rebase_path( 1551 sources += rebase_path(
1552 chrome_tests_unit_gypi_values.chrome_unit_tests_service_discovery_ sources, 1552 chrome_tests_unit_gypi_values.chrome_unit_tests_service_discovery_ sources,
1553 ".", 1553 ".",
1554 "//chrome") 1554 "//chrome")
1555 } 1555 }
1556 if (enable_configuration_policy) { 1556 if (enable_configuration_policy) {
1557 sources += rebase_path( 1557 sources += rebase_path(
1558 chrome_tests_unit_gypi_values.chrome_unit_tests_configuration_poli cy_sources, 1558 chrome_tests_unit_gypi_values.chrome_unit_tests_configuration_poli cy_sources,
1559 ".", 1559 ".",
1560 "//chrome") 1560 "//chrome")
1561 if (is_chromeos) { 1561 if (is_chromeos_ui) {
1562 sources -= 1562 sources -=
1563 [ "../browser/policy/cloud/user_policy_signin_service_unittest.cc" ] 1563 [ "../browser/policy/cloud/user_policy_signin_service_unittest.cc" ]
1564 } else if (is_android) { 1564 } else if (is_android) {
1565 sources -= [ "../browser/policy/policy_path_parser_unittest.cc" ] 1565 sources -= [ "../browser/policy/policy_path_parser_unittest.cc" ]
1566 } 1566 }
1567 if (!is_android && !is_ios && !is_chromeos) { 1567 if (!is_android && !is_ios && !is_chromeos_ui) {
1568 sources += 1568 sources +=
1569 [ "../browser/net/disk_cache_dir_policy_handler_unittest.cc" ] 1569 [ "../browser/net/disk_cache_dir_policy_handler_unittest.cc" ]
1570 } 1570 }
1571 if (!is_android && !is_ios) { 1571 if (!is_android && !is_ios) {
1572 sources += 1572 sources +=
1573 [ "../browser/download/download_dir_policy_handler_unittest.cc" ] 1573 [ "../browser/download/download_dir_policy_handler_unittest.cc" ]
1574 } 1574 }
1575 } 1575 }
1576 if (enable_web_speech) { 1576 if (enable_web_speech) {
1577 sources += rebase_path( 1577 sources += rebase_path(
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
1657 if (!toolkit_views) { 1657 if (!toolkit_views) {
1658 sources -= [ "../browser/ui/views/media_router/media_router_ui_browserte st.cc" ] 1658 sources -= [ "../browser/ui/views/media_router/media_router_ui_browserte st.cc" ]
1659 } 1659 }
1660 } 1660 }
1661 if (enable_webrtc) { 1661 if (enable_webrtc) {
1662 sources += rebase_path( 1662 sources += rebase_path(
1663 chrome_tests_unit_gypi_values.chrome_unit_tests_webrtc_sources, 1663 chrome_tests_unit_gypi_values.chrome_unit_tests_webrtc_sources,
1664 ".", 1664 ".",
1665 "//chrome") 1665 "//chrome")
1666 } 1666 }
1667 if (is_chromeos) { 1667 if (is_chromeos_ui) {
1668 deps += [ "//chrome/browser/chromeos:unit_tests" ] 1668 deps += [ "//chrome/browser/chromeos:unit_tests" ]
1669 sources -= [ 1669 sources -= [
1670 "../browser/signin/signin_global_error_unittest.cc", 1670 "../browser/signin/signin_global_error_unittest.cc",
1671 "../browser/signin/signin_manager_unittest.cc", 1671 "../browser/signin/signin_manager_unittest.cc",
1672 "../browser/ui/views/app_list/linux/app_list_linux_unittest.cc", 1672 "../browser/ui/views/app_list/linux/app_list_linux_unittest.cc",
1673 "../browser/ui/views/frame/opaque_browser_frame_view_layout_unittest.cc" , 1673 "../browser/ui/views/frame/opaque_browser_frame_view_layout_unittest.cc" ,
1674 "../browser/ui/views/sync/one_click_signin_bubble_view_unittest.cc", 1674 "../browser/ui/views/sync/one_click_signin_bubble_view_unittest.cc",
1675 ] 1675 ]
1676 } 1676 }
1677 if (use_x11) { 1677 if (use_x11) {
(...skipping 10 matching lines...) Expand all
1688 if (is_desktop_linux && current_cpu == "x64") { 1688 if (is_desktop_linux && current_cpu == "x64") {
1689 # Only add this test for 64 bit builds because otherwise we need the 32 1689 # Only add this test for 64 bit builds because otherwise we need the 32
1690 # bit library on 64 bit systems when running this test. 1690 # bit library on 64 bit systems when running this test.
1691 sources += 1691 sources +=
1692 [ "../browser/password_manager/native_backend_gnome_x_unittest.cc" ] 1692 [ "../browser/password_manager/native_backend_gnome_x_unittest.cc" ]
1693 configs += [ 1693 configs += [
1694 "//chrome/browser:gnome_keyring", 1694 "//chrome/browser:gnome_keyring",
1695 "//chrome/browser:gnome_keyring_direct", 1695 "//chrome/browser:gnome_keyring_direct",
1696 ] 1696 ]
1697 } 1697 }
1698 if (is_linux && !is_chromeos) { 1698 if (is_linux && !is_chromeos_ui) {
1699 sources += 1699 sources +=
1700 [ "../browser/password_manager/native_backend_libsecret_unittest.cc" ] 1700 [ "../browser/password_manager/native_backend_libsecret_unittest.cc" ]
1701 } 1701 }
1702 if (is_linux && use_aura) { 1702 if (is_linux && use_aura) {
1703 deps += [ 1703 deps += [
1704 "//dbus", 1704 "//dbus",
1705 "//dbus:test_support", 1705 "//dbus:test_support",
1706 "//ui/aura:test_support", 1706 "//ui/aura:test_support",
1707 ] 1707 ]
1708 } 1708 }
(...skipping 30 matching lines...) Expand all
1739 "//chrome:packed_resources", 1739 "//chrome:packed_resources",
1740 "//third_party/hunspell", 1740 "//third_party/hunspell",
1741 ] 1741 ]
1742 } 1742 }
1743 if (is_win || is_mac) { 1743 if (is_win || is_mac) {
1744 sources += rebase_path( 1744 sources += rebase_path(
1745 chrome_tests_unit_gypi_values.chrome_unit_tests_win_mac_sources, 1745 chrome_tests_unit_gypi_values.chrome_unit_tests_win_mac_sources,
1746 ".", 1746 ".",
1747 "//chrome") 1747 "//chrome")
1748 } 1748 }
1749 if (is_win || is_mac || is_chromeos) { 1749 if (is_win || is_mac || is_chromeos_ui) {
1750 sources += [ "../common/extensions/api/networking_private/networking_priva te_crypto_unittest.cc" ] 1750 sources += [ "../common/extensions/api/networking_private/networking_priva te_crypto_unittest.cc" ]
1751 } 1751 }
1752 if (enable_rlz_support) { 1752 if (enable_rlz_support) {
1753 sources += [ "../browser/rlz/chrome_rlz_tracker_delegate_unittest.cc" ] 1753 sources += [ "../browser/rlz/chrome_rlz_tracker_delegate_unittest.cc" ]
1754 deps += [ 1754 deps += [
1755 "//chrome/browser:rlz", 1755 "//chrome/browser:rlz",
1756 "//components/rlz", 1756 "//components/rlz",
1757 "//rlz:test_support", 1757 "//rlz:test_support",
1758 ] 1758 ]
1759 } 1759 }
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
1794 "../browser/devtools/device/webrtc/devtools_bridge_instances_request_uni ttest.cc", 1794 "../browser/devtools/device/webrtc/devtools_bridge_instances_request_uni ttest.cc",
1795 "../browser/ui/sync/sync_promo_ui_unittest.cc", 1795 "../browser/ui/sync/sync_promo_ui_unittest.cc",
1796 ] 1796 ]
1797 } else { 1797 } else {
1798 sources -= [ 1798 sources -= [
1799 "../browser/metrics/variations/variations_request_scheduler_mobile_unitt est.cc", 1799 "../browser/metrics/variations/variations_request_scheduler_mobile_unitt est.cc",
1800 "../browser/web_resource/promo_resource_service_mobile_ntp_unittest.cc", 1800 "../browser/web_resource/promo_resource_service_mobile_ntp_unittest.cc",
1801 ] 1801 ]
1802 deps += [ "//chrome/tools/profile_reset:jtl_compiler_lib" ] 1802 deps += [ "//chrome/tools/profile_reset:jtl_compiler_lib" ]
1803 } 1803 }
1804 if (!is_android && !is_chromeos) { 1804 if (!is_android && !is_chromeos_ui) {
1805 sources += rebase_path( 1805 sources += rebase_path(
1806 chrome_tests_unit_gypi_values.chrome_unit_tests_non_android_or_chr omeos_sources, 1806 chrome_tests_unit_gypi_values.chrome_unit_tests_non_android_or_chr omeos_sources,
1807 ".", 1807 ".",
1808 "//chrome") 1808 "//chrome")
1809 } 1809 }
1810 if (enable_themes) { 1810 if (enable_themes) {
1811 sources += rebase_path( 1811 sources += rebase_path(
1812 chrome_tests_unit_gypi_values.chrome_unit_tests_themes_sources, 1812 chrome_tests_unit_gypi_values.chrome_unit_tests_themes_sources,
1813 ".", 1813 ".",
1814 "//chrome") 1814 "//chrome")
(...skipping 21 matching lines...) Expand all
1836 defines += [ "CLD_WINDOWS" ] 1836 defines += [ "CLD_WINDOWS" ]
1837 deps += [ "//third_party/cld" ] 1837 deps += [ "//third_party/cld" ]
1838 } 1838 }
1839 if (enable_app_list) { 1839 if (enable_app_list) {
1840 sources += rebase_path( 1840 sources += rebase_path(
1841 chrome_tests_unit_gypi_values.chrome_unit_tests_app_list_sources, 1841 chrome_tests_unit_gypi_values.chrome_unit_tests_app_list_sources,
1842 ".", 1842 ".",
1843 "//chrome") 1843 "//chrome")
1844 deps += [ "//ui/app_list:test_support" ] 1844 deps += [ "//ui/app_list:test_support" ]
1845 } 1845 }
1846 if (enable_app_list && is_chromeos) { 1846 if (enable_app_list && is_chromeos_ui) {
1847 sources += rebase_path( 1847 sources += rebase_path(
1848 chrome_tests_unit_gypi_values.chrome_unit_tests_app_list_chromeos_ sources, 1848 chrome_tests_unit_gypi_values.chrome_unit_tests_app_list_chromeos_ sources,
1849 ".", 1849 ".",
1850 "//chrome") 1850 "//chrome")
1851 } 1851 }
1852 if (enable_plugins && !enable_plugin_installation) { 1852 if (enable_plugins && !enable_plugin_installation) {
1853 sources -= [ "../browser/plugins/plugin_installer_unittest.cc" ] 1853 sources -= [ "../browser/plugins/plugin_installer_unittest.cc" ]
1854 } 1854 }
1855 } 1855 }
1856 1856
1857 if (is_win || (is_linux && !is_chromeos)) { 1857 if (is_win || (is_linux && !is_chromeos_ui)) {
1858 # TODO(GYP): Figure out which of these work and are needed on other 1858 # TODO(GYP): Figure out which of these work and are needed on other
1859 # platforms. 1859 # platforms.
1860 test("chrome_app_unittests") { 1860 test("chrome_app_unittests") {
1861 sources = [ 1861 sources = [
1862 "../app/chrome_watcher_client_unittest_win.cc", 1862 "../app/chrome_watcher_client_unittest_win.cc",
1863 "../app/chrome_watcher_client_win.cc", 1863 "../app/chrome_watcher_client_win.cc",
1864 "../app/chrome_watcher_command_line_unittest_win.cc", 1864 "../app/chrome_watcher_command_line_unittest_win.cc",
1865 "../app/chrome_watcher_command_line_win.cc", 1865 "../app/chrome_watcher_command_line_win.cc",
1866 "../app/delay_load_hook_unittest_win.cc", 1866 "../app/delay_load_hook_unittest_win.cc",
1867 "../app/delay_load_hook_win.cc", 1867 "../app/delay_load_hook_win.cc",
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
1956 "//third_party/mojo/src/mojo/edk/system", 1956 "//third_party/mojo/src/mojo/edk/system",
1957 ] 1957 ]
1958 1958
1959 if (!is_android && use_ash) { 1959 if (!is_android && use_ash) {
1960 sources += rebase_path( 1960 sources += rebase_path(
1961 chrome_tests_unit_gypi_values.chrome_test_support_unit_ash_sources, 1961 chrome_tests_unit_gypi_values.chrome_test_support_unit_ash_sources,
1962 ".", 1962 ".",
1963 "//chrome") 1963 "//chrome")
1964 } 1964 }
1965 } 1965 }
OLDNEW
« no previous file with comments | « chrome/common/variations/BUILD.gn ('k') | chrome/third_party/chromevox/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698