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/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 Loading... |
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 (use_cros_fe) { |
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 Loading... |
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 (use_cros_fe || !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 && !use_cros_fe) { |
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 (use_cros_fe) { |
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 Loading... |
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 (!use_cros_fe) { |
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 || use_cros_fe) { |
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 Loading... |
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 (!use_cros_fe) { |
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 (!use_cros_fe) { |
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 Loading... |
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 (use_cros_fe) { |
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 Loading... |
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 (use_cros_fe) { |
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 Loading... |
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 (!use_cros_fe && 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 Loading... |
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 || use_cros_fe) { |
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 (use_cros_fe) { |
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 Loading... |
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 (!use_cros_fe) { |
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 Loading... |
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 (use_cros_fe) { |
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 Loading... |
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 || use_cros_fe) { |
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 Loading... |
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 (!use_cros_fe) { |
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1521 } | 1521 } |
1522 } | 1522 } |
1523 if (use_aura) { | 1523 if (use_aura) { |
1524 sources += [ "//ui/views/controls/webview/webview_unittest.cc" ] | 1524 sources += [ "//ui/views/controls/webview/webview_unittest.cc" ] |
1525 deps += [ | 1525 deps += [ |
1526 "//ui/wm", | 1526 "//ui/wm", |
1527 "//ui/aura:test_support", | 1527 "//ui/aura:test_support", |
1528 "//ui/views:test_support", | 1528 "//ui/views:test_support", |
1529 ] | 1529 ] |
1530 } | 1530 } |
1531 if (!is_chromeos && is_linux) { | 1531 if (is_linux && !use_cros_fe) { |
1532 sources += rebase_path( | 1532 sources += rebase_path( |
1533 chrome_tests_unit_gypi_values.chrome_unit_tests_desktop_linux_sour
ces, | 1533 chrome_tests_unit_gypi_values.chrome_unit_tests_desktop_linux_sour
ces, |
1534 ".", | 1534 ".", |
1535 "//chrome") | 1535 "//chrome") |
1536 } | 1536 } |
1537 if (!is_chromeos && !use_ozone && is_linux) { | 1537 if (is_linux && !use_cros_fe && !use_ozone) { |
1538 deps += [ | 1538 deps += [ |
1539 "//chrome/browser/ui/libgtk2ui", | 1539 "//chrome/browser/ui/libgtk2ui", |
1540 "//build/config/linux:gio", | 1540 "//build/config/linux:gio", |
1541 ] | 1541 ] |
1542 } | 1542 } |
1543 | 1543 |
1544 if (enable_task_manager) { | 1544 if (enable_task_manager) { |
1545 sources += rebase_path( | 1545 sources += rebase_path( |
1546 chrome_tests_unit_gypi_values.chrome_unit_tests_task_manager_sourc
es, | 1546 chrome_tests_unit_gypi_values.chrome_unit_tests_task_manager_sourc
es, |
1547 ".", | 1547 ".", |
1548 "//chrome") | 1548 "//chrome") |
1549 } | 1549 } |
1550 if (enable_mdns) { | 1550 if (enable_mdns) { |
1551 sources += rebase_path( | 1551 sources += rebase_path( |
1552 chrome_tests_unit_gypi_values.chrome_unit_tests_mdns_sources, | 1552 chrome_tests_unit_gypi_values.chrome_unit_tests_mdns_sources, |
1553 ".", | 1553 ".", |
1554 "//chrome") | 1554 "//chrome") |
1555 } | 1555 } |
1556 if (enable_service_discovery) { | 1556 if (enable_service_discovery) { |
1557 sources += rebase_path( | 1557 sources += rebase_path( |
1558 chrome_tests_unit_gypi_values.chrome_unit_tests_service_discovery_
sources, | 1558 chrome_tests_unit_gypi_values.chrome_unit_tests_service_discovery_
sources, |
1559 ".", | 1559 ".", |
1560 "//chrome") | 1560 "//chrome") |
1561 } | 1561 } |
1562 if (enable_configuration_policy) { | 1562 if (enable_configuration_policy) { |
1563 sources += rebase_path( | 1563 sources += rebase_path( |
1564 chrome_tests_unit_gypi_values.chrome_unit_tests_configuration_poli
cy_sources, | 1564 chrome_tests_unit_gypi_values.chrome_unit_tests_configuration_poli
cy_sources, |
1565 ".", | 1565 ".", |
1566 "//chrome") | 1566 "//chrome") |
1567 if (is_chromeos) { | 1567 if (use_cros_fe) { |
1568 sources -= | 1568 sources -= |
1569 [ "../browser/policy/cloud/user_policy_signin_service_unittest.cc" ] | 1569 [ "../browser/policy/cloud/user_policy_signin_service_unittest.cc" ] |
1570 } else if (is_android) { | 1570 } else if (is_android) { |
1571 sources -= [ "../browser/policy/policy_path_parser_unittest.cc" ] | 1571 sources -= [ "../browser/policy/policy_path_parser_unittest.cc" ] |
1572 } | 1572 } |
1573 if (!is_android && !is_ios && !is_chromeos) { | 1573 if (!is_android && !is_ios && !use_cros_fe) { |
1574 sources += | 1574 sources += |
1575 [ "../browser/net/disk_cache_dir_policy_handler_unittest.cc" ] | 1575 [ "../browser/net/disk_cache_dir_policy_handler_unittest.cc" ] |
1576 } | 1576 } |
1577 if (!is_android && !is_ios) { | 1577 if (!is_android && !is_ios) { |
1578 sources += | 1578 sources += |
1579 [ "../browser/download/download_dir_policy_handler_unittest.cc" ] | 1579 [ "../browser/download/download_dir_policy_handler_unittest.cc" ] |
1580 } | 1580 } |
1581 } | 1581 } |
1582 if (enable_web_speech) { | 1582 if (enable_web_speech) { |
1583 sources += rebase_path( | 1583 sources += rebase_path( |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1663 if (!toolkit_views) { | 1663 if (!toolkit_views) { |
1664 sources -= [ "../browser/ui/views/media_router/media_router_ui_browserte
st.cc" ] | 1664 sources -= [ "../browser/ui/views/media_router/media_router_ui_browserte
st.cc" ] |
1665 } | 1665 } |
1666 } | 1666 } |
1667 if (enable_webrtc) { | 1667 if (enable_webrtc) { |
1668 sources += rebase_path( | 1668 sources += rebase_path( |
1669 chrome_tests_unit_gypi_values.chrome_unit_tests_webrtc_sources, | 1669 chrome_tests_unit_gypi_values.chrome_unit_tests_webrtc_sources, |
1670 ".", | 1670 ".", |
1671 "//chrome") | 1671 "//chrome") |
1672 } | 1672 } |
1673 if (is_chromeos) { | 1673 if (use_cros_fe) { |
1674 deps += [ "//chrome/browser/chromeos:unit_tests" ] | 1674 deps += [ "//chrome/browser/chromeos:unit_tests" ] |
1675 sources -= [ | 1675 sources -= [ |
1676 "../browser/signin/signin_global_error_unittest.cc", | 1676 "../browser/signin/signin_global_error_unittest.cc", |
1677 "../browser/signin/signin_manager_unittest.cc", | 1677 "../browser/signin/signin_manager_unittest.cc", |
1678 ] | 1678 ] |
1679 } | 1679 } |
1680 if (use_x11) { | 1680 if (use_x11) { |
1681 deps += [ "//ui/events/devices" ] | 1681 deps += [ "//ui/events/devices" ] |
1682 data_deps += [ "//tools/xdisplaycheck" ] | 1682 data_deps += [ "//tools/xdisplaycheck" ] |
1683 } else { | 1683 } else { |
1684 sources -= [ "../browser/password_manager/password_store_x_unittest.cc" ] | 1684 sources -= [ "../browser/password_manager/password_store_x_unittest.cc" ] |
1685 } | 1685 } |
1686 if (cld_version == 2) { | 1686 if (cld_version == 2) { |
1687 # Unit tests should be independent of the CLD2 access mechanism, just use | 1687 # Unit tests should be independent of the CLD2 access mechanism, just use |
1688 # static for simplicity. | 1688 # static for simplicity. |
1689 deps += [ "//third_party/cld_2:cld2_static" ] | 1689 deps += [ "//third_party/cld_2:cld2_static" ] |
1690 } | 1690 } |
1691 if (is_desktop_linux && current_cpu == "x64") { | 1691 if (is_desktop_linux && current_cpu == "x64") { |
1692 # Only add this test for 64 bit builds because otherwise we need the 32 | 1692 # Only add this test for 64 bit builds because otherwise we need the 32 |
1693 # bit library on 64 bit systems when running this test. | 1693 # bit library on 64 bit systems when running this test. |
1694 sources += | 1694 sources += |
1695 [ "../browser/password_manager/native_backend_gnome_x_unittest.cc" ] | 1695 [ "../browser/password_manager/native_backend_gnome_x_unittest.cc" ] |
1696 configs += [ | 1696 configs += [ |
1697 "//chrome/browser:gnome_keyring", | 1697 "//chrome/browser:gnome_keyring", |
1698 "//chrome/browser:gnome_keyring_direct", | 1698 "//chrome/browser:gnome_keyring_direct", |
1699 ] | 1699 ] |
1700 } | 1700 } |
1701 if (is_linux && !is_chromeos) { | 1701 if (is_linux && !use_cros_fe) { |
1702 sources += | 1702 sources += |
1703 [ "../browser/password_manager/native_backend_libsecret_unittest.cc" ] | 1703 [ "../browser/password_manager/native_backend_libsecret_unittest.cc" ] |
1704 } | 1704 } |
1705 if (is_linux && use_aura) { | 1705 if (is_linux && use_aura) { |
1706 deps += [ | 1706 deps += [ |
1707 "//dbus", | 1707 "//dbus", |
1708 "//dbus:test_support", | 1708 "//dbus:test_support", |
1709 "//ui/aura:test_support", | 1709 "//ui/aura:test_support", |
1710 ] | 1710 ] |
1711 } | 1711 } |
(...skipping 30 matching lines...) Expand all Loading... |
1742 "//chrome:packed_resources", | 1742 "//chrome:packed_resources", |
1743 "//third_party/hunspell", | 1743 "//third_party/hunspell", |
1744 ] | 1744 ] |
1745 } | 1745 } |
1746 if (is_win || is_mac) { | 1746 if (is_win || is_mac) { |
1747 sources += rebase_path( | 1747 sources += rebase_path( |
1748 chrome_tests_unit_gypi_values.chrome_unit_tests_win_mac_sources, | 1748 chrome_tests_unit_gypi_values.chrome_unit_tests_win_mac_sources, |
1749 ".", | 1749 ".", |
1750 "//chrome") | 1750 "//chrome") |
1751 } | 1751 } |
1752 if (is_win || is_mac || is_chromeos) { | 1752 if (is_win || is_mac || use_cros_fe) { |
1753 sources += [ "../common/extensions/api/networking_private/networking_priva
te_crypto_unittest.cc" ] | 1753 sources += [ "../common/extensions/api/networking_private/networking_priva
te_crypto_unittest.cc" ] |
1754 } | 1754 } |
1755 if (enable_rlz_support) { | 1755 if (enable_rlz_support) { |
1756 sources += [ "../browser/rlz/chrome_rlz_tracker_delegate_unittest.cc" ] | 1756 sources += [ "../browser/rlz/chrome_rlz_tracker_delegate_unittest.cc" ] |
1757 deps += [ | 1757 deps += [ |
1758 "//chrome/browser:rlz", | 1758 "//chrome/browser:rlz", |
1759 "//components/rlz", | 1759 "//components/rlz", |
1760 "//rlz:test_support", | 1760 "//rlz:test_support", |
1761 ] | 1761 ] |
1762 } | 1762 } |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1794 } | 1794 } |
1795 if (is_android || is_ios) { | 1795 if (is_android || is_ios) { |
1796 sources -= [ | 1796 sources -= [ |
1797 "../browser/devtools/device/webrtc/devtools_bridge_instances_request_uni
ttest.cc", | 1797 "../browser/devtools/device/webrtc/devtools_bridge_instances_request_uni
ttest.cc", |
1798 "../browser/ui/sync/sync_promo_ui_unittest.cc", | 1798 "../browser/ui/sync/sync_promo_ui_unittest.cc", |
1799 ] | 1799 ] |
1800 } else { | 1800 } else { |
1801 sources -= [ "../browser/web_resource/promo_resource_service_mobile_ntp_un
ittest.cc" ] | 1801 sources -= [ "../browser/web_resource/promo_resource_service_mobile_ntp_un
ittest.cc" ] |
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 && !use_cros_fe) { |
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 Loading... |
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 && use_cros_fe) { |
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 && !use_cros_fe)) { |
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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1957 "//third_party/mojo/src/mojo/edk/system", | 1957 "//third_party/mojo/src/mojo/edk/system", |
1958 ] | 1958 ] |
1959 | 1959 |
1960 if (!is_android && use_ash) { | 1960 if (!is_android && use_ash) { |
1961 sources += rebase_path( | 1961 sources += rebase_path( |
1962 chrome_tests_unit_gypi_values.chrome_test_support_unit_ash_sources, | 1962 chrome_tests_unit_gypi_values.chrome_test_support_unit_ash_sources, |
1963 ".", | 1963 ".", |
1964 "//chrome") | 1964 "//chrome") |
1965 } | 1965 } |
1966 } | 1966 } |
OLD | NEW |