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

Side by Side Diff: extensions/extensions.gyp

Issue 399363002: Add support for writing unit tests for Mojo-backed apps/extensions APIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | « extensions/DEPS ('k') | extensions/renderer/DEPS » ('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 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 { 5 {
6 'variables': { 6 'variables': {
7 'chromium_code': 1, 7 'chromium_code': 1,
8 }, 8 },
9 'targets': [ 9 'targets': [
10 { 10 {
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 ], 528 ],
529 # Disable c4267 warnings until we fix size_t to int truncations. 529 # Disable c4267 warnings until we fix size_t to int truncations.
530 'msvs_disabled_warnings': [ 4267, ], 530 'msvs_disabled_warnings': [ 4267, ],
531 }, 531 },
532 { 532 {
533 'target_name': 'extensions_renderer', 533 'target_name': 'extensions_renderer',
534 'type': 'static_library', 534 'type': 'static_library',
535 'dependencies': [ 535 'dependencies': [
536 'extensions_resources.gyp:extensions_resources', 536 'extensions_resources.gyp:extensions_resources',
537 '../chrome/chrome_resources.gyp:chrome_resources', 537 '../chrome/chrome_resources.gyp:chrome_resources',
538 '../content/content_resources.gyp:content_resources',
538 '../gin/gin.gyp:gin', 539 '../gin/gin.gyp:gin',
540 '../mojo/mojo.gyp:mojo_js_bindings',
539 '../third_party/WebKit/public/blink.gyp:blink', 541 '../third_party/WebKit/public/blink.gyp:blink',
540 ], 542 ],
541 'include_dirs': [ 543 'include_dirs': [
542 '..', 544 '..',
543 ], 545 ],
544 'sources': [ 546 'sources': [
545 'renderer/activity_log_converter_strategy.cc', 547 'renderer/activity_log_converter_strategy.cc',
546 'renderer/activity_log_converter_strategy.h', 548 'renderer/activity_log_converter_strategy.h',
547 'renderer/api_activity_logger.cc', 549 'renderer/api_activity_logger.cc',
548 'renderer/api_activity_logger.h', 550 'renderer/api_activity_logger.h',
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 'msvs_disabled_warnings': [ 4267, ], 728 'msvs_disabled_warnings': [ 4267, ],
727 }, 729 },
728 { 730 {
729 # TODO(jamescook): Use the same .pak file for both app_shell and 731 # TODO(jamescook): Use the same .pak file for both app_shell and
730 # extensions_unittests by creating an extensions_resources.pak file 732 # extensions_unittests by creating an extensions_resources.pak file
731 # that can be used in both places. This will save build time. 733 # that can be used in both places. This will save build time.
732 # http://crbug.com/397250 734 # http://crbug.com/397250
733 'target_name': 'extensions_pak', 735 'target_name': 'extensions_pak',
734 'type': 'none', 736 'type': 'none',
735 'dependencies': [ 737 'dependencies': [
738 '../content/content_resources.gyp:content_resources',
736 '../ui/strings/ui_strings.gyp:ui_strings', 739 '../ui/strings/ui_strings.gyp:ui_strings',
737 'extensions_resources.gyp:extensions_resources', 740 'extensions_resources.gyp:extensions_resources',
738 ], 741 ],
739 'actions': [ 742 'actions': [
740 { 743 {
741 'action_name': 'repack_extensions_pak', 744 'action_name': 'repack_extensions_pak',
742 'variables': { 745 'variables': {
743 'pak_inputs': [ 746 'pak_inputs': [
747 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
744 '<(SHARED_INTERMEDIATE_DIR)/extensions/extensions_resources.pak', 748 '<(SHARED_INTERMEDIATE_DIR)/extensions/extensions_resources.pak',
745 '<(SHARED_INTERMEDIATE_DIR)/extensions/extensions_renderer_resourc es.pak', 749 '<(SHARED_INTERMEDIATE_DIR)/extensions/extensions_renderer_resourc es.pak',
746 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/app_locale_settings_en-US.p ak', 750 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/app_locale_settings_en-US.p ak',
747 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_en-US.pak', 751 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_en-US.pak',
748 ], 752 ],
749 'pak_output': '<(PRODUCT_DIR)/extensions.pak', 753 'pak_output': '<(PRODUCT_DIR)/extensions.pak',
750 }, 754 },
751 'includes': [ '../build/repack_action.gypi' ], 755 'includes': [ '../build/repack_action.gypi' ],
752 }, 756 },
753 ], 757 ],
754 }, 758 },
755 { 759 {
756 # TODO(tfarina): Many extension unit tests run as part of Chrome's 760 # TODO(tfarina): Many extension unit tests run as part of Chrome's
757 # unit_tests target. They should be moved here, which may require some 761 # unit_tests target. They should be moved here, which may require some
758 # refactoring (ExtensionsBrowserClient, TestingProfile, etc.). 762 # refactoring (ExtensionsBrowserClient, TestingProfile, etc.).
759 # http://crbug.com/348066 763 # http://crbug.com/348066
760 'target_name': 'extensions_unittests', 764 'target_name': 'extensions_unittests',
761 'type': 'executable', 765 'type': 'executable',
762 'dependencies': [ 766 'dependencies': [
763 '../base/base.gyp:base', 767 '../base/base.gyp:base',
764 '../base/base.gyp:test_support_base', 768 '../base/base.gyp:test_support_base',
765 '../content/content_shell_and_tests.gyp:test_support_content', 769 '../content/content_shell_and_tests.gyp:test_support_content',
770 '../device/serial/serial.gyp:device_serial',
771 '../mojo/mojo.gyp:mojo_environment_chromium',
772 '../mojo/mojo.gyp:mojo_cpp_bindings',
773 '../mojo/mojo.gyp:mojo_js_bindings_lib',
774 '../mojo/mojo.gyp:mojo_system_impl',
766 '../testing/gmock.gyp:gmock', 775 '../testing/gmock.gyp:gmock',
767 '../testing/gtest.gyp:gtest', 776 '../testing/gtest.gyp:gtest',
768 'extensions_common', 777 'extensions_common',
769 'extensions_pak', 778 'extensions_pak',
770 'extensions_renderer', 779 'extensions_renderer',
771 'extensions_resources.gyp:extensions_resources', 780 'extensions_resources.gyp:extensions_resources',
772 'extensions_strings.gyp:extensions_strings', 781 'extensions_strings.gyp:extensions_strings',
773 'extensions_test_support', 782 'extensions_test_support',
774 ], 783 ],
775 'sources': [ 784 'sources': [
776 'browser/process_manager_unittest.cc', 785 'browser/process_manager_unittest.cc',
777 'common/api/sockets/sockets_manifest_permission_unittest.cc', 786 'common/api/sockets/sockets_manifest_permission_unittest.cc',
778 'common/csp_validator_unittest.cc', 787 'common/csp_validator_unittest.cc',
779 'common/event_filter_unittest.cc', 788 'common/event_filter_unittest.cc',
780 'common/id_util_unittest.cc', 789 'common/id_util_unittest.cc',
781 'common/one_shot_event_unittest.cc', 790 'common/one_shot_event_unittest.cc',
782 'common/permissions/manifest_permission_set_unittest.cc', 791 'common/permissions/manifest_permission_set_unittest.cc',
783 'common/user_script_unittest.cc', 792 'common/user_script_unittest.cc',
793 'renderer/api_test_base.cc',
794 'renderer/api_test_base.h',
795 'renderer/api_test_base_unittest.cc',
784 'renderer/event_unittest.cc', 796 'renderer/event_unittest.cc',
785 'renderer/json_schema_unittest.cc', 797 'renderer/json_schema_unittest.cc',
786 'renderer/messaging_utils_unittest.cc', 798 'renderer/messaging_utils_unittest.cc',
787 'renderer/module_system_test.cc', 799 'renderer/module_system_test.cc',
788 'renderer/module_system_test.h', 800 'renderer/module_system_test.h',
789 'renderer/module_system_unittest.cc', 801 'renderer/module_system_unittest.cc',
790 'renderer/safe_builtins_unittest.cc', 802 'renderer/safe_builtins_unittest.cc',
791 'renderer/utils_unittest.cc', 803 'renderer/utils_unittest.cc',
792 'test/extensions_unittests_main.cc', 804 'test/extensions_unittests_main.cc',
793 'test/test_extensions_client.cc', 805 'test/test_extensions_client.cc',
(...skipping 18 matching lines...) Expand all
812 'type': 'static_library', 824 'type': 'static_library',
813 'sources': [ 'browser/api/cast_channel/cast_channel.proto' ], 825 'sources': [ 'browser/api/cast_channel/cast_channel.proto' ],
814 'variables': { 826 'variables': {
815 'proto_in_dir': 'browser/api/cast_channel', 827 'proto_in_dir': 'browser/api/cast_channel',
816 'proto_out_dir': 'extensions/browser/api/cast_channel', 828 'proto_out_dir': 'extensions/browser/api/cast_channel',
817 }, 829 },
818 'includes': [ '../build/protoc.gypi' ] 830 'includes': [ '../build/protoc.gypi' ]
819 }, 831 },
820 ] 832 ]
821 } 833 }
OLDNEW
« no previous file with comments | « extensions/DEPS ('k') | extensions/renderer/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698