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

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

Issue 824373003: Add browser_tests to the GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More ChromeOS Created 5 years, 11 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') | chrome/test/perf/perf_test.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/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 import("//build/module_args/v8.gni")
7 8
8 # This target exists to reference other test executables to bring these files 9 # This target exists to reference other test executables to bring these files
9 # into the build. 10 # into the build.
10 group("test") { 11 group("test") {
11 testonly = true 12 testonly = true
12 deps = [ 13 deps = [
13 "//chrome/test/perf", 14 "//chrome/test/perf",
14 ] 15 ]
15 } 16 }
16 17
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 sources -= 459 sources -=
459 [ "../../ui/views/corewm/desktop_capture_controller_unittest.cc" ] 460 [ "../../ui/views/corewm/desktop_capture_controller_unittest.cc" ]
460 } 461 }
461 } 462 }
462 463
463 source_set("sync_integration_test_support") { 464 source_set("sync_integration_test_support") {
464 testonly = true 465 testonly = true
465 sources = rebase_path(gypi_values.test_support_sync_integration_sources, 466 sources = rebase_path(gypi_values.test_support_sync_integration_sources,
466 ".", 467 ".",
467 "//chrome") 468 "//chrome")
468 public_deps = [ "//chrome/browser" ] 469 public_deps = [
470 "//chrome/browser",
471 ]
469 deps = [ 472 deps = [
470 ":test_support", 473 ":test_support",
471 "//base", 474 "//base",
472 "//chrome", 475 "//chrome",
473 "//components/invalidation", 476 "//components/invalidation",
474 "//components/invalidation:test_support", 477 "//components/invalidation:test_support",
475 "//net", 478 "//net",
476 "//skia", 479 "//skia",
477 "//sync", 480 "//sync",
478 "//sync:test_support_sync_testserver", 481 "//sync:test_support_sync_testserver",
(...skipping 16 matching lines...) Expand all
495 ] 498 ]
496 } 499 }
497 if (!is_chromeos) { 500 if (!is_chromeos) {
498 sources -= [ 501 sources -= [
499 "../browser/sync/test/integration/wifi_credentials_helper.cc", 502 "../browser/sync/test/integration/wifi_credentials_helper.cc",
500 "../browser/sync/test/integration/wifi_credentials_helper.h", 503 "../browser/sync/test/integration/wifi_credentials_helper.h",
501 ] 504 ]
502 } 505 }
503 } 506 }
504 507
508 # TODO(GYP) when v8's GN build supports "//v8:d8" then enable the code
509 # controlled by this flag (and the flg itself can be deleted).
510 has_d8_definition = false
511
512 if (has_d8_definition) {
513 template("js2webui") {
514 action_name = target_name + "_action"
515 source_set_name = target_name
516
517 action_foreach(action_name) {
518 testonly = true
519 visibility = [ ":$source_set_name" ]
520 script = "//tools/gypv8sh.py"
521
522 sources = invoker.sources
523
524 d8_path =
525 get_label_info("//v8:d8($host_toolchain)", "root_out_dir") + "/d8"
526 if (is_win) {
527 d8_path += ".exe"
528 }
529
530 input_js = [
531 "//chrome/third_party/mock4js/mock4js.js",
532 "//chrome/test/data/webui/test_api.js",
533 "//chrome/test/base/js2gtest.js",
534 ]
535 inputs = [ d8_path ] + input_js
536
537 outputs = [
538 "$target_gen_dir/{{source_name_part}}-gen.cc",
539 "$root_out_dir/test_data/chrome/{{source_root_relative_dir}}/{{source_ file_part}}",
540 ]
541
542 args = [
543 # Need "./" for script to find binary (cur dir is not on path).
544 "./" + rebase_path(d8_path, root_build_dir),
545 ]
546 args += rebase_path(input_js, root_build_dir) + [ "webui" ]
547 if (v8_use_external_startup_data) {
548 args += [ "--external=y" ]
549 } else {
550 args += [ "--external=n" ]
551 }
552 args += [
553 "{{source}}",
554 "{{source_root_relative_dir}}/{{source_file_part}}",
555 ]
556 args += rebase_path(outputs, root_build_dir)
557
558 deps = [
559 "//v8:d8($host_toolchain)",
560 ]
561 }
562
563 source_set(source_set_name) {
564 testonly = true
565 if (defined(invoker.visibility)) {
566 visibility = invoker.visibility
567 }
568 sources = get_target_outputs(":$action_name")
569 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
570 deps = [
571 ":$action_name",
572
573 # The generator implicitly makes includes from these targets.
574 "//testing/gmock",
575 "//testing/gtest",
576 "//url",
577 ]
578 if (defined(invoker.deps)) {
579 deps += invoker.deps
580 }
581 }
582 }
583
584 js2webui("browser_tests_js_webui") {
585 sources = rebase_path(gypi_values.chrome_browser_tests_webui_js_sources,
586 ".",
587 "//chrome")
588 if (is_chrome_branded) {
589 # crbug.com/230471
590 sources -= [ "data/webui/accessibility_audit_browsertest.js" ]
591 }
592 if (!is_chromeos) {
593 sources -= [ "data/webui/certificate_viewer_dialog_test.js" ]
594 }
595 if (!enable_app_list) {
596 sources -= [ "../browser/ui/webui/app_list/start_page_browsertest.js" ]
597 }
598 if (!enable_supervised_users) {
599 sources -=
600 [ "../browser/ui/webui/downloads_ui_supervised_browsertest.js" ]
601 }
602 deps = [
603 "//skia",
604 ]
605 }
606 }
607
608 test("browser_tests") {
609 sources = [
610 "base/browser_tests_main.cc",
611 ]
612 sources +=
613 rebase_path(gypi_values.chrome_browser_tests_sources, ".", "//chrome")
614 sources +=
615 rebase_path(gypi_values.chrome_browser_extensions_test_support_sources,
616 ".",
617 "//chrome")
618
619 deps = [
620 ":sync_integration_test_support",
621 ":test_support",
622 "//base",
623 "//base:i18n",
624 "//base/allocator",
625 "//base/test:test_support",
626 "//chrome:browser_tests_pak",
627 "//chrome:packed_extra_resources",
628 "//chrome:packed_resources",
629 "//chrome:resources",
630 "//chrome:strings",
631 "//chrome/browser",
632 "//chrome/common/extensions/api",
633 "//chrome/renderer",
634 "//chrome/test/perf",
635 "//components/autofill/content/browser:risk_proto",
636 "//components/autofill/content/browser:test_support",
637 "//components/captive_portal:test_support",
638 "//components/dom_distiller/content",
639 "//components/dom_distiller/core:test_support",
640 "//components/resources",
641 "//components/strings",
642 "//components/translate/core/common",
643 "//crypto:platform",
644 "//crypto:test_support",
645 "//device/bluetooth:mocks",
646 "//device/serial:test_support",
647 "//extensions/common/api",
648 "//google_apis:test_support",
649 "//media",
650 "//media/base:test_support",
651 "//media/cast:test_support",
652 "//net",
653 "//net:test_support",
654 "//sdch",
655 "//skia",
656 "//sync",
657 "//sync:test_support_sync_api",
658 "//testing/gmock",
659 "//testing/gtest",
660 "//testing/perf",
661 "//third_party/cacheinvalidation",
662 "//third_party/icu",
663 "//third_party/leveldatabase",
664 "//third_party/libaddressinput",
665 "//third_party/libjingle",
666 "//third_party/safe_browsing:test_support",
667 "//third_party/widevine/cdm:version_h",
668 "//ui/accessibility:test_support",
669 "//ui/compositor:test_support",
670 "//ui/resources",
671 "//ui/web_dialogs:test_support",
672 "//v8",
673 ]
674 if (has_d8_definition) {
675 deps += [ ":browser_tests_js_webui" ]
676 }
677
678 # Runtime dependencies
679 data_deps = [
680 #"//ppapi:ppapi_tests", # TODO(GYP) this doesn't exist yet.
681 #'../remoting/remoting.gyp:remoting_browser_test_resources', TODO(GYP)
682 #'../remoting/remoting.gyp:remoting_webapp_unittest', TODO(GYP)
683 "//third_party/mesa:osmesa",
684 "//third_party/widevine/cdm:widevine_test_license_server",
685 ]
686
687 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
688
689 # TODO(GYP) if (is_win) {
690 # ['incremental_chrome_dll==1', {
691 # 'UseLibraryDependencyInputs': "true",
692 # }
693
694 if (cld_version == 0 || cld_version == 2) {
695 # Because the browser_tests use translate, they need CLD data.
696 deps += [ "//third_party/cld_2:cld2_platform_impl" ]
697 }
698
699 if (!enable_one_click_signin) {
700 sources -= [ "../browser/ui/sync/one_click_signin_bubble_links_delegate_br owsertest.cc" ]
701 }
702 if (enable_nacl && !use_athena) {
703 sources += [
704 "../browser/extensions/extension_nacl_browsertest.cc",
705 "../browser/nacl_host/test/gdb_debug_stub_browsertest.cc",
706 ]
707 deps += [ "//ppapi/native_client/src/trusted/plugin:nacl_trusted_plugin" ]
708
709 if (enable_nacl_untrusted) {
710 sources += [
711 "nacl/nacl_browsertest.cc",
712 "nacl/nacl_browsertest_uma.cc",
713 "nacl/nacl_browsertest_util.cc",
714 "nacl/nacl_browsertest_util.h",
715 "nacl/pnacl_header_test.cc",
716 "nacl/pnacl_header_test.h",
717 ]
718 deps += [
719 #'test/data/nacl/nacl_test_data.gyp:*', # TODO(GYP)
720 #'../ppapi/native_client/native_client.gyp:nacl_irt', # TODO(GYP)
721 #'../ppapi/ppapi_nacl.gyp:ppapi_nacl_tests', # TODO(GYP)
722 #'../ppapi/tests/extensions/extensions.gyp:ppapi_tests_extensions_back ground_keepalive', # TODO(GYP)
723 #'../ppapi/tests/extensions/extensions.gyp:ppapi_tests_extensions_medi a_galleries', # TODO(GYP)
724 #'../ppapi/tests/extensions/extensions.gyp:ppapi_tests_extensions_pack aged_app', # TODO(GYP) #'../ppapi/ppapi_tests_mojo.gyp:ppapi_tests_moj o', # TODO(GYP)
725 #'../ppapi/ppapi_tests_mojo.gyp:ppapi_tests_mojo', # TODO(GYP)
726 ]
727 if (is_chromeos) {
728 sources += [ "//third_party/liblouis/nacl_wrapper/liblouis_wrapper_bro wsertest.cc" ]
729 }
730 deps += [
731 #'browser_chromeos', TODO(GYP)
732 #'../third_party/liblouis/liblouis_nacl.gyp:liblouis_test_data', TODO (GYP)
733 ]
734 }
735 if (is_win || is_linux) {
736 sources += [ "../browser/nacl_host/test/nacl_gdb_browsertest.cc" ]
737 deps += [
738 #'browser/nacl_host/test/mock_nacl_gdb.gyp:mock_nacl_gdb', TODO(GYP)
739 ]
740 }
741 if (is_win) {
742 # TODO(halyavin) NaCl on Windows can't open debug stub socket in
743 # browser process as needed by this test. See http://crbug.com/157312.
744 sources -= [ "../browser/nacl_host/test/gdb_debug_stub_browsertest.cc" ]
745 deps += [
746 #'chrome.gyp:chrome_nacl_win64', TODO(GYP)
747 ]
748 }
749 is(is_linux) {
750 deps += [
751 #'../native_client/src/trusted/service_runtime/linux/nacl_bootstrap.gy p:nacl_helper_bootstrap', TODO(GYP)
752 #'../components/nacl.gyp:nacl_helper', TODO(GYP)
753 #'../components/nacl_nonsfi.gyp:nacl_helper_nonsfi', TODO(GYP)
754 ]
755 }
756 if (!is_chromeos) {
757 sources -= [ "test/data/chromeos/oobe_webui_browsertest.js" ]
758 }
759 }
760 if (debug_devtools) {
761 defines += [ "DEBUG_DEVTOOLS=1" ]
762 }
763 if (use_ash) {
764 deps += [ "//ash:test_support" ]
765 }
766 if (use_aura || toolkit_views) {
767 deps += [ "//ui/events:test_support" ]
768 }
769 if (use_athena) {
770 deps += [
771 "//dbus",
772 "//dbus:test_support",
773
774 #'../ui/login/login.gyp:login_resources', TODO(GYP)
775 #'../athena/resources/athena_resources.gyp:athena_pak', TODO(GYP)
776 #'../athena/athena.gyp:athena_browsertest_support', TODO(GYP)
777 ]
778
779 # Disable all browser tests except for Athena ones.
780 sources = []
781 sources += [
782 "../athena/content/app_activity_browsertest.cc",
783 "../athena/content/chrome/web_activity_browsertest.cc",
784 "../athena/content/chrome/web_activity_helpers_browsertest.cc",
785 "../athena/content/content_proxy_browsertest.cc",
786 "../athena/main/placeholder_for_browsertest.cc",
787 "../athena/test/chrome/athena_app_browser_test.cc",
788 "../athena/test/chrome/athena_app_browser_test.h",
789 "../athena/test/chrome/athena_chrome_browser_test.cc",
790 "../athena/test/chrome/athena_chrome_browser_test.h",
791 ]
792 }
793 if (toolkit_views) {
794 sources += rebase_path(gypi_values.chrome_browser_tests_views_sources,
795 ".",
796 "//chrome")
797 deps += [ "//ui/views" ]
798 }
799 if (is_chromeos) {
800 sources += rebase_path(gypi_values.chrome_browser_tests_chromeos_sources,
801 ".",
802 "//chrome")
803 sources -= [
804 "../../apps/load_and_launch_browsertest.cc",
805 "../browser/printing/cloud_print/test/cloud_print_policy_browsertest.cc" ,
806 "../browser/printing/cloud_print/test/cloud_print_proxy_process_browsert est.cc",
807
808 # chromeos does not support profile list avatar menu
809 "../browser/profiles/profile_list_desktop_browsertest.cc",
810 "../browser/service_process/service_process_control_browsertest.cc",
811 "../browser/signin/signin_browsertest.cc",
812
813 # chromeos does not use cross-platform panels
814 "../browser/ui/panels/panel_extension_browsertest.cc",
815
816 # chromeos does not use the desktop user manager
817 "../browser/ui/webui/signin/user_manager_ui_browsertest.cc",
818 ]
819 deps += [
820 "//dbus",
821 "//dbus:test_support",
822
823 #"//ui/login:resources", TODO(GYP)
824 ]
825 } else {
826 sources -= [
827 "../browser/extensions/api/enterprise_platform_keys/enterprise_platform_ keys_apitest_nss.cc",
828 "../browser/extensions/api/terminal/terminal_private_apitest.cc",
829 "../browser/invalidation/profile_invalidation_provider_factory_browserte st.cc",
830 "../browser/net/nss_context_chromeos_browsertest.cc",
831 "../browser/ui/ash/keyboard_controller_browsertest.cc",
832 "data/webui/certificate_viewer_ui_test-inl.h",
833 ]
834 if (toolkit_views) {
835 sources -= [ "../browser/ui/views/select_file_dialog_extension_browserte st.cc" ]
836 }
837 }
838 if (enable_configuration_policy) {
839 sources += rebase_path(gypi_values.chrome_browser_tests_policy_sources,
840 ".",
841 "//chrome")
842 }
843 if (enable_web_speech) {
844 sources += rebase_path(gypi_values.chrome_browser_tests_speech_sources,
845 ".",
846 "//chrome")
847 }
848 if (safe_browsing_mode == 1) {
849 sources += rebase_path(
850 gypi_values.chrome_browser_tests_full_safe_browsing_sources,
851 ".",
852 "//chrome")
853 defines += [ "FULL_SAFE_BROWSING" ]
854 }
855 if (enable_captive_portal_detection) {
856 sources += [ "../browser/captive_portal/captive_portal_browsertest.cc" ]
857 }
858 if (!enable_webrtc) {
859 sources -= [
860 "../browser/extensions/api/webrtc_audio_private/webrtc_audio_private_bro wsertest.cc",
861 "../browser/extensions/api/webrtc_logging_private/webrtc_logging_private _apitest.cc",
862 "../browser/media/chrome_webrtc_browsertest.cc",
863 "../browser/media/chrome_webrtc_disable_encryption_flag_browsertest.cc",
864 "../browser/media/chrome_webrtc_getmediadevices_browsertest.cc",
865 ]
866 }
867 if (is_win) {
868 sources += [
869 #'<(SHARED_INTERMEDIATE_DIR)/chrome_version/other_version.rc', TODO(GYP )
870 "$root_gen_dir/ui/resources/ui_unscaled_resources.rc",
871 ]
872 deps += [
873 #'chrome_version_resources', TODO(GYP)
874 "//third_party/wtl",
875 "//ui/resources",
876 ]
877 } else {
878 sources -= [
879 "../app/chrome_command_ids.h",
880 "../app/chrome_dll_resource.h",
881 "../app/chrome_version.rc.version",
882 "../browser/media_galleries/fileapi/iapps_finder_impl_win_browsertest.cc ",
883 ]
884 }
885 if (!is_chromeos && use_aura) {
886 sources -= [
887 # On Windows and Linux, we currently don't support enough of the
888 # ash environment to run these unit tests.
889 #
890 # TODO: enable these on windows and linux.
891 "../browser/ui/ash/accelerator_commands_browsertest.cc",
892 "../browser/ui/ash/accelerator_controller_browsertest.cc",
893 "../browser/ui/ash/launcher/chrome_launcher_controller_browsertest.cc",
894 "../browser/ui/ash/launcher/launcher_favicon_loader_browsertest.cc",
895 "../browser/ui/ash/shelf_browsertest.cc",
896 "../browser/ui/views/frame/browser_non_client_frame_view_ash_browsertest .cc",
897 ]
898 }
899 if (is_mac) {
900 # TODO(mark): We really want this for all non-static library
901 # targets, but when we tried to pull it up to the common.gypi
902 # level, it broke other things like the ui and startup tests. *shrug*
903 ldflags = [ "-Wl,-ObjC" ]
904
905 # Other platforms only need
906 # chrome_resources.gyp:{packed_extra_resources,packed_resources},
907 # and can build this target standalone much faster.
908 deps += [
909 #'app_mode_app_support', TODO(GYP)
910 "//chrome",
911 #'../components/components.gyp:breakpad_stubs', TODO(GYP)
912 #'../third_party/ocmock/ocmock.gyp:ocmock', TODO(GYP)
913 ]
914 sources += [
915 "../browser/media_galleries/fileapi/iphoto_data_provider_browsertest.cc" ,
916 "../browser/renderer_host/chrome_render_widget_host_view_mac_delegate_br owsertest.cc",
917 "../browser/renderer_host/chrome_render_widget_host_view_mac_history_swi per_browsertest.mm",
918 "../browser/spellchecker/spellcheck_message_filter_mac_browsertest.cc",
919 ]
920 sources -= [
921 # TODO(groby): This test depends on hunspell and we cannot run it on
922 # Mac, which does not use hunspell by default.
923 "../browser/spellchecker/spellcheck_service_browsertest.cc",
924
925 # TODO(tapted): Enable toolkit-views browser_tests on Mac when their
926 # respective implementations are linked in. http://crbug.com/404979.
927 "../browser/ui/views/autofill/autofill_dialog_view_tester_views.cc",
928 "../browser/ui/views/autofill/autofill_popup_base_view_browsertest.cc",
929 "../browser/ui/views/extensions/extension_install_dialog_view_browsertes t.cc",
930 "../browser/ui/views/frame/browser_view_browsertest.cc",
931 "../browser/ui/views/location_bar/zoom_bubble_view_browsertest.cc",
932 "../browser/ui/views/profiles/avatar_menu_button_browsertest.cc",
933 "../browser/ui/views/profiles/new_avatar_menu_button_browsertest.cc",
934 "../browser/ui/views/profiles/profile_chooser_view_browsertest.cc",
935 "../browser/ui/views/toolbar/browser_actions_container_browsertest.cc",
936 "../browser/ui/views/translate/translate_bubble_view_browsertest.cc",
937
938 # TODO(rouslan): This test depends on the custom dictionary UI,
939 # which is disabled on Mac.
940 "../browser/ui/webui/options/edit_dictionary_browsertest.js",
941
942 # TODO(rouslan): This test depends on hunspell and we cannot run it
943 # on Mac, which does use hunspell by default.
944 "../browser/ui/webui/options/language_options_dictionary_download_browse rtest.js",
945
946 # ProcessSingletonMac doesn"t do anything.
947 "../browser/process_singleton_browsertest.cc",
948
949 # This test depends on GetCommandLineForRelaunch, which is not
950 # available on Mac.
951 "../browser/printing/cloud_print/test/cloud_print_policy_browsertest.cc" ,
952
953 # single-process mode hangs on Mac sometimes because of multiple UI
954 # message loops. See 306348
955 "../renderer/safe_browsing/phishing_classifier_browsertest.cc",
956 "../renderer/safe_browsing/phishing_classifier_delegate_browsertest.cc",
957 "../renderer/safe_browsing/phishing_dom_feature_extractor_browsertest.cc ",
958 ]
959 }
960 if (is_mac || is_win) {
961 sources += [
962 "../browser/extensions/api/networking_private/networking_private_apitest .cc",
963 "../browser/extensions/api/networking_private/networking_private_service _client_apitest.cc",
964 "../browser/media_galleries/fileapi/itunes_data_provider_browsertest.cc" ,
965 "../browser/media_galleries/fileapi/picasa_data_provider_browsertest.cc" ,
966 ]
967 deps += [ "//components/wifi:test_support" ]
968 }
969 if (!is_posix || is_chromeos) {
970 sources -= [ "../common/time_format_browsertest.cc" ]
971 }
972 if (is_android) {
973 sources -= [
974 "../browser/policy/cloud/component_cloud_policy_browsertest.cc",
975 "../browser/prefs/pref_hash_browsertest.cc",
976 ]
977 }
978 if (is_chromeos && !use_athena) {
979 sources += [
980 "../browser/extensions/api/networking_private/networking_private_apitest .cc",
981 "../browser/extensions/api/networking_private/networking_private_chromeo s_apitest.cc",
982 ]
983 }
984 if (!is_android && !is_ios && !use_athena) {
985 sources +=
986 [ "../browser/copresence/chrome_whispernet_client_browsertest.cc" ]
987 deps += [ "//components/copresence" ]
988 }
989 if (!is_android && !is_ios && !is_linux) {
990 # NPAPI test plugin only works on some platforms.
991 data_deps += [
992 #'../content/content_shell_and_tests.gyp:copy_npapi_test_plugin', TODO( GYP)
993 ]
994 }
995 if (enable_app_list) {
996 sources += rebase_path(gypi_values.chrome_browser_tests_app_list_sources,
997 ".",
998 "//chrome")
999 }
1000 if (enable_supervised_users) {
1001 sources +=
1002 rebase_path(gypi_values.chrome_browser_tests_supervised_user_sources,
1003 ".",
1004 "//chrome")
1005 }
1006 if (enable_pepper_cdms) {
1007 # Runtime dependencies.
1008 data_deps += [
1009 "//media/cdm/ppapi:clearkeycdmadapter",
1010 #'../third_party/widevine/cdm/widevine_cdm.gyp:widevinecdmadapter', TOD O(GYP)
1011 ]
1012 }
1013 if (!enable_print_preview) {
1014 sources -= [
1015 "../browser/extensions/api/cloud_print_private/cloud_print_private_apite st.cc",
1016 "../browser/printing/cloud_print/test/cloud_print_policy_browsertest.cc" ,
1017 "../browser/printing/cloud_print/test/cloud_print_proxy_process_browsert est.cc",
1018 "../browser/printing/print_preview_dialog_controller_browsertest.cc",
1019 "../browser/printing/print_preview_pdf_generated_browsertest.cc",
1020 "../browser/service_process/service_process_control_browsertest.cc",
1021 "../browser/ui/webui/print_preview/print_preview_ui_browsertest.cc",
1022 "data/webui/print_preview.cc",
1023 "data/webui/print_preview.h",
1024 "data/webui/print_preview.js",
1025 ]
1026 }
1027 if (!enable_basic_printing && !enable_print_preview) {
1028 sources -= [ "../renderer/printing/print_web_view_helper_browsertest.cc" ]
1029 }
1030 if (enable_mdns && !use_athena) {
1031 sources += [ "../browser/ui/webui/local_discovery/local_discovery_ui_brows ertest.cc" ]
1032 }
1033 if (use_brlapi) {
1034 deps += [ "//build/config/linux:libbrlapi" ]
1035 } else {
1036 sources -= [ "../browser/extensions/api/braille_display_private/braille_di splay_private_apitest.cc" ]
1037 }
1038 if (is_chrome_branded) {
1039 sources -= [
1040 # These tests depend on single process mode, which is disabled in
1041 # official builds.
1042 "../renderer/safe_browsing/phishing_classifier_browsertest.cc",
1043 "../renderer/safe_browsing/phishing_classifier_delegate_browsertest.cc",
1044 "../renderer/safe_browsing/phishing_dom_feature_extractor_browsertest.cc ",
1045 ]
1046 }
1047 if (!enable_autofill_dialog || is_android || is_ios) {
1048 deps -= [ "//third_party/libaddressinput" ]
1049 }
1050 if (use_ozone) {
1051 sources -= [
1052 # crbug.com/362698
1053 "../browser/chromeos/input_method/input_method_engine_browsertests.cc",
1054 "../browser/extensions/api/input_ime/input_ime_apitest_chromeos.cc",
1055 ]
1056 }
1057 if (enable_remoting) {
1058 sources += rebase_path(gypi_values.chrome_browser_tests_remoting_sources,
1059 ".",
1060 "//chrome")
1061 #deps += [ "//remoting:remoting_webapp" ] TODO(GYP)
1062 }
1063 if (use_x11) {
1064 deps += [ "//tools/xdisplaycheck" ]
1065 }
1066 }
1067
505 test("sync_integration_tests") { 1068 test("sync_integration_tests") {
506 sources = 1069 sources =
507 rebase_path(gypi_values.sync_integration_tests_sources, ".", "//chrome") 1070 rebase_path(gypi_values.sync_integration_tests_sources, ".", "//chrome")
508 1071
509 # TODO(phajdan.jr): Only temporary, to make transition easier. 1072 # TODO(phajdan.jr): Only temporary, to make transition easier.
510 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] 1073 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
511 1074
512 deps = [ 1075 deps = [
513 ":sync_integration_test_support", 1076 ":sync_integration_test_support",
514 ":test_support", 1077 ":test_support",
(...skipping 25 matching lines...) Expand all
540 "../browser/sync/test/integration/multiple_client_dictionary_sync_test.c c", 1103 "../browser/sync/test/integration/multiple_client_dictionary_sync_test.c c",
541 "../browser/sync/test/integration/single_client_dictionary_sync_test.cc" , 1104 "../browser/sync/test/integration/single_client_dictionary_sync_test.cc" ,
542 "../browser/sync/test/integration/two_client_dictionary_sync_test.cc", 1105 "../browser/sync/test/integration/two_client_dictionary_sync_test.cc",
543 ] 1106 ]
544 1107
545 # The sync_integration_tests do not run on mac without this flag. 1108 # The sync_integration_tests do not run on mac without this flag.
546 # Search for comments about "xcode_settings" elsewhere in this file. 1109 # Search for comments about "xcode_settings" elsewhere in this file.
547 ldflags = [ "-Wl,-ObjC" ] 1110 ldflags = [ "-Wl,-ObjC" ]
548 } 1111 }
549 if (is_win) { 1112 if (is_win) {
550 # TODO(GYP) figure out what these should map to. 1113 sources += [
551 #sources += [ 1114 #'<(SHARED_INTERMEDIATE_DIR)/chrome_version/other_version.rc', TODO(GYP )
552 # '<(SHARED_INTERMEDIATE_DIR)/chrome_version/other_version.rc', 1115 "$root_gen_dir/ui/resources/ui_unscaled_resources.rc",
553 # '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_unscaled_resources.rc', 1116 ]
554 #]
555 deps += [ 1117 deps += [
556 "//third_party/wtl", 1118 "//third_party/wtl",
1119 "//ui/resources",
1120
557 #'chrome_version_resources', TODO(GYP) 1121 #'chrome_version_resources', TODO(GYP)
558 ] 1122 ]
559 } else { 1123 } else {
560 sources -= [ "../app/chrome_version.rc.version" ] 1124 sources -= [ "../app/chrome_version.rc.version" ]
561 } 1125 }
562 if (!is_chromeos) { 1126 if (!is_chromeos) {
563 sources -= [ 1127 sources -= [
564 "../browser/sync/test/integration/single_client_wifi_credentials_sync_te st.cc", 1128 "../browser/sync/test/integration/single_client_wifi_credentials_sync_te st.cc",
565 "../browser/sync/test/integration/two_client_wifi_credentials_sync_test. cc", 1129 "../browser/sync/test/integration/two_client_wifi_credentials_sync_test. cc",
566 ] 1130 ]
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 1170
607 if (is_mac) { 1171 if (is_mac) {
608 # Dictionary sync is disabled on Mac. 1172 # Dictionary sync is disabled on Mac.
609 sources -= [ "../browser/sync/test/integration/performance/dictionary_sync _perf_test.cc" ] 1173 sources -= [ "../browser/sync/test/integration/performance/dictionary_sync _perf_test.cc" ]
610 1174
611 # The sync_performance_tests do not run on mac without this flag. 1175 # The sync_performance_tests do not run on mac without this flag.
612 # Search for comments about "xcode_settings" elsewhere in this file. 1176 # Search for comments about "xcode_settings" elsewhere in this file.
613 ldflags = [ "-Wl,-ObjC" ] 1177 ldflags = [ "-Wl,-ObjC" ]
614 } 1178 }
615 if (is_win) { 1179 if (is_win) {
616 # TODO(GYP) figure out what these should map to. 1180 sources += [
617 #sources += [ 1181 #'<(SHARED_INTERMEDIATE_DIR)/chrome_version/other_version.rc', TODO(GYP )
618 # '<(SHARED_INTERMEDIATE_DIR)/chrome_version/other_version.rc', 1182 "$root_gen_dir/ui/resources/ui_unscaled_resources.rc",
619 # '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_unscaled_resources.rc', 1183 ]
620 #]
621 deps += [ 1184 deps += [
622 "//third_party/wtl", 1185 "//third_party/wtl",
1186 "//ui/resources",
1187
623 #'chrome_version_resources', TODO(GYP) 1188 #'chrome_version_resources', TODO(GYP)
624 ] 1189 ]
625 } else { 1190 } else {
626 sources -= [ "../app/chrome_version.rc.version" ] 1191 sources -= [ "../app/chrome_version.rc.version" ]
627 } 1192 }
628 1193
629 if (toolkit_views) { 1194 if (toolkit_views) {
630 deps += [ "//ui/views" ] 1195 deps += [ "//ui/views" ]
631 } 1196 }
632 } 1197 }
(...skipping 14 matching lines...) Expand all
647 # TODO(GYP) CDM adapter stuff. 1212 # TODO(GYP) CDM adapter stuff.
648 #if (enable_pepper_cdms) { 1213 #if (enable_pepper_cdms) {
649 # deps += [ 1214 # deps += [
650 # "//media/cdm/ppapi:clearkeycdmadapter", 1215 # "//media/cdm/ppapi:clearkeycdmadapter",
651 # "//ppapi:ppapi_cpp", 1216 # "//ppapi:ppapi_cpp",
652 # "//third_party/widevine/cdm:adapter", 1217 # "//third_party/widevine/cdm:adapter",
653 # ] 1218 # ]
654 #} 1219 #}
655 } 1220 }
656 } 1221 }
OLDNEW
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome/test/perf/perf_test.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698