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

Side by Side Diff: components/BUILD.gn

Issue 1487433002: Add more components to "gn check", work on dom_distiller. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dom_distiller Created 5 years 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
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("//testing/test.gni") 7 import("//testing/test.gni")
8 import("//tools/grit/repack.gni") 8 import("//tools/grit/repack.gni")
9 9
10 if (is_android) { 10 if (is_android) {
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 349
350 deps = [ 350 deps = [
351 "//base", 351 "//base",
352 "//base/test:test_support", 352 "//base/test:test_support",
353 "//components/autofill/core/browser:unit_tests", 353 "//components/autofill/core/browser:unit_tests",
354 "//components/autofill/core/common:unit_tests", 354 "//components/autofill/core/common:unit_tests",
355 "//components/bookmarks/browser:unit_tests", 355 "//components/bookmarks/browser:unit_tests",
356 "//components/bookmarks/managed:unit_tests", 356 "//components/bookmarks/managed:unit_tests",
357 "//components/compression:unit_tests", 357 "//components/compression:unit_tests",
358 "//components/content_settings/core/browser:unit_tests", 358 "//components/content_settings/core/browser:unit_tests",
359 "//components/content_settings/core/common",
359 "//components/content_settings/core/common:unit_tests", 360 "//components/content_settings/core/common:unit_tests",
360 "//components/data_usage/core:unit_tests", 361 "//components/data_usage/core:unit_tests",
361 "//components/dom_distiller/core:unit_tests", 362 "//components/dom_distiller/core:unit_tests",
362 "//components/enhanced_bookmarks:unit_tests", 363 "//components/enhanced_bookmarks:unit_tests",
363 "//components/favicon/core:unit_tests", 364 "//components/favicon/core:unit_tests",
364 "//components/favicon_base:unit_tests", 365 "//components/favicon_base:unit_tests",
365 "//components/flags_ui:unit_tests", 366 "//components/flags_ui:unit_tests",
366 "//components/gcm_driver:unit_tests", 367 "//components/gcm_driver:unit_tests",
367 "//components/google/core/browser:unit_tests", 368 "//components/google/core/browser:unit_tests",
368 "//components/history/core/browser:unit_tests", 369 "//components/history/core/browser:unit_tests",
(...skipping 22 matching lines...) Expand all
391 "//components/translate/core/browser:unit_tests", 392 "//components/translate/core/browser:unit_tests",
392 "//components/translate/core/common:unit_tests", 393 "//components/translate/core/common:unit_tests",
393 "//components/translate/core/language_detection:unit_tests", 394 "//components/translate/core/language_detection:unit_tests",
394 "//components/undo:unit_tests", 395 "//components/undo:unit_tests",
395 "//components/update_client:unit_tests", 396 "//components/update_client:unit_tests",
396 "//components/upload_list:unit_tests", 397 "//components/upload_list:unit_tests",
397 "//components/variations:unit_tests", 398 "//components/variations:unit_tests",
398 "//components/variations/service:unit_tests", 399 "//components/variations/service:unit_tests",
399 "//components/web_resource:unit_tests", 400 "//components/web_resource:unit_tests",
400 "//net", 401 "//net",
402 "//testing/gtest",
401 "//ui/base", 403 "//ui/base",
404 "//ui/gl:test_support",
402 "//ui/resources:ui_test_pak", 405 "//ui/resources:ui_test_pak",
403 ] 406 ]
404 407
405 if (!is_ios) { 408 if (is_ios) {
409 deps += [
410 "//components/signin/ios/browser:unit_tests",
411 "//components/translate/ios/browser:unit_tests",
412 "//components/webp_transcode:unit_tests",
413 ]
414 } else { # !iOS
406 deps += [ 415 deps += [
407 "//components/auto_login_parser:unit_tests", 416 "//components/auto_login_parser:unit_tests",
408 "//components/autofill/content/browser:unit_tests", 417 "//components/autofill/content/browser:unit_tests",
409 "//components/autofill/content/renderer:unit_tests", 418 "//components/autofill/content/renderer:unit_tests",
410 "//components/bubble:unit_tests", 419 "//components/bubble:unit_tests",
411 "//components/captive_portal:unit_tests", 420 "//components/captive_portal:unit_tests",
412 "//components/certificate_transparency:unit_tests", 421 "//components/certificate_transparency:unit_tests",
413 "//components/cloud_devices/common:unit_tests", 422 "//components/cloud_devices/common:unit_tests",
414 "//components/component_updater:unit_tests", 423 "//components/component_updater:unit_tests",
415 "//components/crx_file:unit_tests", 424 "//components/crx_file:unit_tests",
416 "//components/data_reduction_proxy/content/browser:unit_tests", 425 "//components/data_reduction_proxy/content/browser:unit_tests",
417 "//components/data_reduction_proxy/core/browser:unit_tests", 426 "//components/data_reduction_proxy/core/browser:unit_tests",
418 "//components/data_reduction_proxy/core/common:unit_tests", 427 "//components/data_reduction_proxy/core/common:unit_tests",
419 "//components/data_use_measurement/content:unit_tests", 428 "//components/data_use_measurement/content:unit_tests",
420 "//components/device_event_log:unit_tests", 429 "//components/device_event_log:unit_tests",
421 "//components/devtools_http_handler:unit_tests", 430 "//components/devtools_http_handler:unit_tests",
422 "//components/dom_distiller/content:unit_tests", 431 "//components/dom_distiller/content/browser:unit_tests",
423 "//components/domain_reliability:unit_tests", 432 "//components/domain_reliability:unit_tests",
424 "//components/error_page/renderer:unit_tests", 433 "//components/error_page/renderer:unit_tests",
425 "//components/favicon/content:unit_tests", 434 "//components/favicon/content:unit_tests",
426 "//components/gcm_driver/crypto:unit_tests", 435 "//components/gcm_driver/crypto:unit_tests",
427 "//components/gcm_driver/instance_id:unit_tests",
428 "//components/guest_view/browser:unit_tests", 436 "//components/guest_view/browser:unit_tests",
429 "//components/history/content/browser:unit_tests", 437 "//components/history/content/browser:unit_tests",
430 "//components/json_schema:unit_tests", 438 "//components/json_schema:unit_tests",
431 "//components/keyed_service/content:unit_tests", 439 "//components/keyed_service/content:unit_tests",
432 "//components/language_usage_metrics:unit_tests", 440 "//components/language_usage_metrics:unit_tests",
433 "//components/login:unit_tests", 441 "//components/login:unit_tests",
434 "//components/memory_pressure:unit_tests", 442 "//components/memory_pressure:unit_tests",
435 "//components/mime_util:unit_tests", 443 "//components/mime_util:unit_tests",
436 "//components/navigation_interception:unit_tests", 444 "//components/navigation_interception:unit_tests",
437 "//components/network_hints/renderer:unit_tests", 445 "//components/network_hints/renderer:unit_tests",
(...skipping 25 matching lines...) Expand all
463 "//components/wallpaper:unit_tests", 471 "//components/wallpaper:unit_tests",
464 "//components/web_cache/browser:unit_tests", 472 "//components/web_cache/browser:unit_tests",
465 "//components/webcrypto:unit_tests", 473 "//components/webcrypto:unit_tests",
466 "//components/webdata/common:unit_tests", 474 "//components/webdata/common:unit_tests",
467 475
468 # These are the deps required by the code in this target. 476 # These are the deps required by the code in this target.
469 "//components/policy:policy_component", 477 "//components/policy:policy_component",
470 "//content/test:test_support", 478 "//content/test:test_support",
471 ] 479 ]
472 480
473 if (!is_android) {
Dirk Pranke 2015/11/29 18:25:41 doesn't moving these out cause them to get pulled
brettw 2015/11/30 18:48:31 Done.
474 deps += [
475 "//components/audio_modem:unit_tests",
476 "//components/copresence:unit_tests",
477 "//components/feedback:unit_tests",
478 "//components/proximity_auth:unit_tests",
479 "//components/storage_monitor:unit_tests",
480 "//components/web_modal:unit_tests",
481 "//components/webusb:unit_tests",
482 ]
483 }
484 data_deps = [ 481 data_deps = [
485 ":components_tests_pak", 482 ":components_tests_pak",
486 "//third_party/mesa:osmesa", 483 "//third_party/mesa:osmesa",
487 "//ui/resources:ui_test_pak", 484 "//ui/resources:ui_test_pak",
488 ] 485 ]
486 } # iOS/!iOS
489 487
490 if (enable_rlz_support) { 488 if (is_android) {
491 deps += [ "//components/rlz:unit_tests" ] 489 isolate_file = "components_unittests.isolate"
492 }
493 if (is_android) {
494 isolate_file = "components_unittests.isolate"
495 490
496 deps += [ "//content/public/android:content_java" ] 491 deps += [
497 deps -= [ "//components/gcm_driver/instance_id:unit_tests" ] 492 "//components/invalidation/impl",
493 "//components/safe_json",
494 "//components/signin/core/browser",
495 "//content/public/android:content_java",
496 "//content/public/browser",
497 "//net",
498 "//ui/base",
499 "//ui/gfx",
500 ]
498 501
499 apk_deps = [ 502 apk_deps = [
500 "//components/invalidation/impl:java", 503 "//components/invalidation/impl:java",
501 "//components/safe_json/android:safe_json_java", 504 "//components/safe_json/android:safe_json_java",
502 "//components/signin/core/browser/android:java", 505 "//components/signin/core/browser/android:java",
503 "//components/variations/android:variations_java", 506 "//components/variations/android:variations_java",
504 "//content/public/android:content_java", 507 "//content/public/android:content_java",
505 "//ui/android:ui_java", 508 "//ui/android:ui_java",
506 ] 509 ]
507
508 if (enable_configuration_policy) {
509 apk_deps += [ "//components/policy/android:policy_java" ]
510 }
511 }
512 if (is_chromeos) {
513 deps += [
514 "//components/arc:unit_tests",
515 "//components/ownership:unit_tests",
516 ]
517 }
518
519 # TODO(GYP) need this target.
520 #'breakpad/app/crash_keys_win_unittest.cc',
521 510
522 if (enable_configuration_policy) { 511 if (enable_configuration_policy) {
523 deps += [ 512 apk_deps += [ "//components/policy/android:policy_java" ]
524 "//components/policy/core/browser:unit_tests",
525 "//components/policy/core/common:unit_tests",
526 ]
527 } 513 }
528 } else { 514 } else { # !is_android
Dirk Pranke 2015/11/29 18:25:41 maybe this should be else if (!is_ios) ?
brettw 2015/11/30 18:48:31 I just added a separate block for !android and !io
529 deps += [ 515 deps += [
530 "//components/signin/ios/browser:unit_tests", 516 "//components/audio_modem:unit_tests",
531 "//components/translate/ios/browser:unit_tests", 517 "//components/copresence:unit_tests",
532 "//components/webp_transcode:unit_tests", 518 "//components/feedback:unit_tests",
519 "//components/gcm_driver/instance_id:unit_tests",
520 "//components/proximity_auth:unit_tests",
521 "//components/storage_monitor:unit_tests",
522 "//components/web_modal:unit_tests",
523 "//components/webusb:unit_tests",
533 ] 524 ]
534 } 525 }
535 526
527 if (enable_rlz_support) {
528 deps += [ "//components/rlz:unit_tests" ]
529 }
530 if (is_chromeos) {
531 deps += [
532 "//components/arc:unit_tests",
533 "//components/ownership:unit_tests",
534 ]
535 }
536
537 # TODO(GYP) need this target.
538 #'breakpad/app/crash_keys_win_unittest.cc',
539
540 if (enable_configuration_policy) {
541 deps += [
542 "//components/policy/core/browser:unit_tests",
543 "//components/policy/core/common:unit_tests",
544 ]
545 }
546
536 if (toolkit_views) { 547 if (toolkit_views) {
537 # TODO bug 522654 Enable this when the undefined symbol is fixed in 548 # TODO bug 522654 Enable this when the undefined symbol is fixed in
538 # web_modal such that this links. 549 # web_modal such that this links.
539 #deps += [ "//components/constrained_window:unit_tests" ] 550 #deps += [ "//components/constrained_window:unit_tests" ]
540 } 551 }
541 552
542 if (is_win) { 553 if (is_win) {
543 deps += [ "//components/browser_watcher:unit_tests" ] 554 deps += [ "//components/browser_watcher:unit_tests" ]
544 } 555 }
545 556
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 # The _run targets exist only for compatibility w/ GYP. 622 # The _run targets exist only for compatibility w/ GYP.
612 group("components_browsertests_run") { 623 group("components_browsertests_run") {
613 testonly = true 624 testonly = true
614 deps = [ 625 deps = [
615 ":components_browsertests", 626 ":components_browsertests",
616 ] 627 ]
617 } 628 }
618 629
619 test("components_browsertests") { 630 test("components_browsertests") {
620 sources = [] 631 sources = []
632 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
633 data = []
634 deps = [
635 "//base",
636 "//base/test:test_support",
637 "//components/strings",
638 "//testing/gmock",
639 "//testing/gtest",
640 ]
641
642 if (is_android || is_linux || is_mac || is_win) {
Dirk Pranke 2015/11/29 18:25:41 is this just (!is_ios) ? maybe merge with the bloc
brettw 2015/11/30 18:48:31 I just added it to the !ios block below.
643 data += [
644 "test/data/",
645 "dom_distiller/core/javascript/",
646 "//third_party/dom_distiller_js/dist/test/data/",
647 ]
648 }
649
650 if (is_mac) {
651 data += [ "$root_out_dir/Content Shell.app/" ]
652 }
653
621 if (!is_ios) { 654 if (!is_ios) {
622 sources = [ 655 sources = [
623 "autofill/content/browser/risk/fingerprint_browsertest.cc", 656 "autofill/content/browser/risk/fingerprint_browsertest.cc",
624 "autofill/content/renderer/password_form_conversion_utils_browsertest.cc", 657 "autofill/content/renderer/password_form_conversion_utils_browsertest.cc",
625 "dom_distiller/content/browser/distillable_page_utils_browsertest.cc", 658 "dom_distiller/content/browser/distillable_page_utils_browsertest.cc",
626 "dom_distiller/content/browser/distiller_page_web_contents_browsertest.cc" , 659 "dom_distiller/content/browser/distiller_page_web_contents_browsertest.cc" ,
627 "dom_distiller/content/browser/test/dom_distiller_js_browsertest.cc", 660 "dom_distiller/content/browser/test/dom_distiller_js_browsertest.cc",
628 "password_manager/content/renderer/credential_manager_client_browsertest.c c", 661 "password_manager/content/renderer/credential_manager_client_browsertest.c c",
629 "tracing/child_trace_message_filter_browsertest.cc", 662 "tracing/child_trace_message_filter_browsertest.cc",
630 ] 663 ]
631 664
632 data = [ 665 data += [
633 "$root_out_dir/components_tests_resources.pak", 666 "$root_out_dir/components_tests_resources.pak",
634 "$root_out_dir/content_shell.pak", 667 "$root_out_dir/content_shell.pak",
635 ] 668 ]
636 }
637 if (is_android || is_linux || is_mac || is_win) {
638 data += [
639 "test/data/",
640 "dom_distiller/core/javascript/",
641 "//third_party/dom_distiller_js/dist/test/data/",
642 ]
643 }
644 669
645 if (is_mac) {
646 data += [ "$root_out_dir/Content Shell.app/" ]
647 }
648
649 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
650 deps = [
651 "//base",
652 "//base/test:test_support",
653 "//components/strings",
654 "//testing/gmock",
655 "//testing/gtest",
656 ]
657 if (!is_ios) {
658 deps += [ 670 deps += [
659 "//components/autofill/content/browser", 671 "//components/autofill/content/browser",
660 "//components/autofill/content/renderer", 672 "//components/autofill/content/renderer",
673 "//components/autofill/core/browser",
661 "//components/content_settings/core/common", 674 "//components/content_settings/core/common",
662 "//components/dom_distiller/content:content_browser", 675 "//components/dom_distiller/content/browser",
663 "//components/dom_distiller/core", 676 "//components/dom_distiller/core",
664 "//components/dom_distiller/core:test_support", 677 "//components/dom_distiller/core:test_support",
665 "//components/password_manager/content/browser", 678 "//components/password_manager/content/browser",
666 "//components/password_manager/content/common", 679 "//components/password_manager/content/common",
667 "//components/password_manager/content/renderer", 680 "//components/password_manager/content/renderer",
668 "//components/tracing", 681 "//components/tracing",
682 "//content/shell:content_shell_lib",
669 "//content/test:browsertest_support", 683 "//content/test:browsertest_support",
670 "//content/test:test_support", 684 "//content/test:test_support",
671 "//device/bluetooth", 685 "//device/bluetooth",
686 "//ipc:test_support",
687 "//net:test_support",
672 "//ui/base", 688 "//ui/base",
673 ] 689 ]
674 690
675 data_deps = [ 691 data_deps = [
676 ":components_tests_pak", 692 ":components_tests_pak",
677 "//third_party/mesa:osmesa", 693 "//third_party/mesa:osmesa",
678 ] 694 ]
679 } 695 }
680 if (is_android) { 696 if (is_android) {
681 sources += [ "test/android/browsertests_apk/components_browser_tests_jni_onl oad.cc" ] 697 sources += [ "test/android/browsertests_apk/components_browser_tests_jni_onl oad.cc" ]
682 sources -= [ "autofill/content/browser/risk/fingerprint_browsertest.cc" ] 698 sources -= [ "autofill/content/browser/risk/fingerprint_browsertest.cc" ]
683 deps += [ "//testing/android/native_test:native_test_support" ] 699 deps += [
700 "//content/test:layouttest_support",
701 "//testing/android/native_test:native_test_support",
702 ]
684 use_default_launcher = false 703 use_default_launcher = false
685 isolate_file = "components_browsertests.isolate" 704 isolate_file = "components_browsertests.isolate"
686 android_manifest = 705 android_manifest =
687 "${target_gen_dir}/components_browsertests_manifest/AndroidManifest.xml" 706 "${target_gen_dir}/components_browsertests_manifest/AndroidManifest.xml"
688 apk_deps = [ 707 apk_deps = [
689 ":components_browsertests_assets", 708 ":components_browsertests_assets",
690 ":components_browsertests_java", 709 ":components_browsertests_java",
691 ":components_browsertests_manifest", 710 ":components_browsertests_manifest",
692 ] 711 ]
693 } 712 }
694 713
695 if (is_linux) { 714 if (is_linux) {
696 # content_extractor_browsertest is a standalone content extraction tool buil t as 715 # content_extractor_browsertest is a standalone content extraction tool buil t as
697 # a MANUAL component_browsertest. 716 # a MANUAL component_browsertest.
698 sources += [ "dom_distiller/standalone/content_extractor_browsertest.cc" ] 717 sources += [ "dom_distiller/standalone/content_extractor_browsertest.cc" ]
699 deps += [ 718 deps += [
700 "//base:prefs_test_support", 719 "//base:prefs_test_support",
720 "//components/leveldb_proto",
701 "//components/pref_registry:test_support", 721 "//components/pref_registry:test_support",
702 ] 722 ]
703 } 723 }
704 724
705 if (enable_basic_printing || enable_print_preview) { 725 if (enable_basic_printing || enable_print_preview) {
706 sources += [ "printing/test/print_web_view_helper_browsertest.cc" ] 726 sources += [ "printing/test/print_web_view_helper_browsertest.cc" ]
707 deps += [ "//components/printing/test:test_support" ] 727 deps += [ "//components/printing/test:test_support" ]
708 } 728 }
709 } 729 }
710 730
711 test("components_perftests") { 731 test("components_perftests") {
712 sources = [ 732 sources = [
713 "scheduler/base/task_queue_manager_delegate_for_test.cc", 733 "scheduler/base/task_queue_manager_delegate_for_test.cc",
714 "scheduler/base/task_queue_manager_delegate_for_test.h", 734 "scheduler/base/task_queue_manager_delegate_for_test.h",
715 "scheduler/base/task_queue_manager_perftest.cc", 735 "scheduler/base/task_queue_manager_perftest.cc",
716 "visitedlink/test/visitedlink_perftest.cc", 736 "visitedlink/test/visitedlink_perftest.cc",
717 ] 737 ]
718 738
719 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 739 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
720 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 740 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
721 741
722 deps = [ 742 deps = [
743 "//base/test:test_support",
723 "//testing/gtest", 744 "//testing/gtest",
724 "//testing/perf", 745 "//testing/perf",
725 ] 746 ]
726 if (!is_ios) { 747 if (!is_ios) {
727 deps += [ 748 deps += [
728 "//base", 749 "//base",
729 "//base/test:test_support_perf", 750 "//base/test:test_support_perf",
751 "//components/scheduler",
730 "//components/visitedlink/browser", 752 "//components/visitedlink/browser",
731 "//content/test:test_support", 753 "//content/test:test_support",
732 ] 754 ]
733 } 755 }
734 } 756 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698