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

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: rebase Created 6 years, 5 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
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 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 ], 491 ],
492 # Disable c4267 warnings until we fix size_t to int truncations. 492 # Disable c4267 warnings until we fix size_t to int truncations.
493 'msvs_disabled_warnings': [ 4267, ], 493 'msvs_disabled_warnings': [ 4267, ],
494 }, 494 },
495 { 495 {
496 'target_name': 'extensions_renderer', 496 'target_name': 'extensions_renderer',
497 'type': 'static_library', 497 'type': 'static_library',
498 'dependencies': [ 498 'dependencies': [
499 'extensions_resources.gyp:extensions_resources', 499 'extensions_resources.gyp:extensions_resources',
500 '../chrome/chrome_resources.gyp:chrome_resources', 500 '../chrome/chrome_resources.gyp:chrome_resources',
501 '../content/content_resources.gyp:content_resources',
501 '../gin/gin.gyp:gin', 502 '../gin/gin.gyp:gin',
503 '../mojo/mojo.gyp:mojo_js_bindings',
502 '../third_party/WebKit/public/blink.gyp:blink', 504 '../third_party/WebKit/public/blink.gyp:blink',
503 ], 505 ],
504 'include_dirs': [ 506 'include_dirs': [
505 '..', 507 '..',
506 ], 508 ],
507 'sources': [ 509 'sources': [
508 'renderer/activity_log_converter_strategy.cc', 510 'renderer/activity_log_converter_strategy.cc',
509 'renderer/activity_log_converter_strategy.h', 511 'renderer/activity_log_converter_strategy.h',
510 'renderer/api_activity_logger.cc', 512 'renderer/api_activity_logger.cc',
511 'renderer/api_activity_logger.h', 513 'renderer/api_activity_logger.h',
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 # TODO(tfarina): Many extension unit tests run as part of Chrome's 694 # TODO(tfarina): Many extension unit tests run as part of Chrome's
693 # unit_tests target. They should be moved here, which may require some 695 # unit_tests target. They should be moved here, which may require some
694 # refactoring (ExtensionsBrowserClient, TestingProfile, etc.). 696 # refactoring (ExtensionsBrowserClient, TestingProfile, etc.).
695 # http://crbug.com/348066 697 # http://crbug.com/348066
696 'target_name': 'extensions_unittests', 698 'target_name': 'extensions_unittests',
697 'type': 'executable', 699 'type': 'executable',
698 'dependencies': [ 700 'dependencies': [
699 '../base/base.gyp:base', 701 '../base/base.gyp:base',
700 '../base/base.gyp:test_support_base', 702 '../base/base.gyp:test_support_base',
701 '../content/content_shell_and_tests.gyp:test_support_content', 703 '../content/content_shell_and_tests.gyp:test_support_content',
704 '../device/serial/serial.gyp:device_serial',
705 '../mojo/mojo.gyp:mojo_environment_chromium',
706 '../mojo/mojo.gyp:mojo_cpp_bindings',
707 '../mojo/mojo.gyp:mojo_js_bindings_lib',
708 '../mojo/mojo.gyp:mojo_system_impl',
702 '../testing/gmock.gyp:gmock', 709 '../testing/gmock.gyp:gmock',
703 '../testing/gtest.gyp:gtest', 710 '../testing/gtest.gyp:gtest',
704 'extensions_common', 711 'extensions_common',
705 'extensions_renderer', 712 'extensions_renderer',
706 'extensions_resources.gyp:extensions_resources', 713 'extensions_resources.gyp:extensions_resources',
707 'extensions_strings.gyp:extensions_strings', 714 'extensions_strings.gyp:extensions_strings',
708 'extensions_test_support', 715 'extensions_test_support',
709 ], 716 ],
710 'sources': [ 717 'sources': [
711 'common/api/sockets/sockets_manifest_permission_unittest.cc', 718 'common/api/sockets/sockets_manifest_permission_unittest.cc',
712 'common/csp_validator_unittest.cc', 719 'common/csp_validator_unittest.cc',
713 'common/event_filter_unittest.cc', 720 'common/event_filter_unittest.cc',
714 'common/id_util_unittest.cc', 721 'common/id_util_unittest.cc',
715 'common/one_shot_event_unittest.cc', 722 'common/one_shot_event_unittest.cc',
716 'common/permissions/manifest_permission_set_unittest.cc', 723 'common/permissions/manifest_permission_set_unittest.cc',
717 'common/user_script_unittest.cc', 724 'common/user_script_unittest.cc',
725 'renderer/api_test_base.cc',
726 'renderer/api_test_base.h',
727 'renderer/api_test_base_unittest.cc',
718 'renderer/event_unittest.cc', 728 'renderer/event_unittest.cc',
719 'renderer/json_schema_unittest.cc', 729 'renderer/json_schema_unittest.cc',
720 'renderer/messaging_utils_unittest.cc', 730 'renderer/messaging_utils_unittest.cc',
721 'renderer/module_system_test.cc', 731 'renderer/module_system_test.cc',
722 'renderer/module_system_test.h', 732 'renderer/module_system_test.h',
723 'renderer/module_system_unittest.cc', 733 'renderer/module_system_unittest.cc',
724 'renderer/safe_builtins_unittest.cc', 734 'renderer/safe_builtins_unittest.cc',
725 'renderer/utils_unittest.cc', 735 'renderer/utils_unittest.cc',
726 'test/extensions_unittests_main.cc', 736 'test/extensions_unittests_main.cc',
727 'test/test_extensions_client.cc', 737 'test/test_extensions_client.cc',
728 'test/test_extensions_client.h', 738 'test/test_extensions_client.h',
729 'test/test_permission_message_provider.cc', 739 'test/test_permission_message_provider.cc',
730 'test/test_permission_message_provider.h', 740 'test/test_permission_message_provider.h',
731 'test/test_permissions_provider.cc', 741 'test/test_permissions_provider.cc',
732 'test/test_permissions_provider.h', 742 'test/test_permissions_provider.h',
733 ], 743 ],
734 'conditions': [ 744 'conditions': [
735 ['OS=="win" and win_use_allocator_shim==1', { 745 ['OS=="win" and win_use_allocator_shim==1', {
736 'dependencies': [ 746 'dependencies': [
737 '../base/allocator/allocator.gyp:allocator', 747 '../base/allocator/allocator.gyp:allocator',
738 ], 748 ],
739 }], 749 }],
740 ], 750 ],
741 'actions': [ 751 'actions': [
742 { 752 {
743 'action_name': 'repack_components_pack', 753 'action_name': 'repack_components_pack',
744 'variables': { 754 'variables': {
745 'pak_inputs': [ 755 'pak_inputs': [
756 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
746 '<(SHARED_INTERMEDIATE_DIR)/extensions/extensions_resources.pak', 757 '<(SHARED_INTERMEDIATE_DIR)/extensions/extensions_resources.pak',
747 '<(SHARED_INTERMEDIATE_DIR)/extensions/extensions_renderer_resourc es.pak', 758 '<(SHARED_INTERMEDIATE_DIR)/extensions/extensions_renderer_resourc es.pak',
748 ], 759 ],
749 'pak_output': '<(PRODUCT_DIR)/extensions_unittests_resources.pak', 760 'pak_output': '<(PRODUCT_DIR)/extensions_unittests_resources.pak',
750 }, 761 },
751 'includes': [ '../build/repack_action.gypi' ], 762 'includes': [ '../build/repack_action.gypi' ],
752 }, 763 },
753 ], 764 ],
754 }, 765 },
755 ] 766 ]
756 } 767 }
OLDNEW
« no previous file with comments | « extensions/DEPS ('k') | extensions/renderer/DEPS » ('j') | extensions/renderer/dispatcher.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698