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

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: address comments 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 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 ], 493 ],
494 # Disable c4267 warnings until we fix size_t to int truncations. 494 # Disable c4267 warnings until we fix size_t to int truncations.
495 'msvs_disabled_warnings': [ 4267, ], 495 'msvs_disabled_warnings': [ 4267, ],
496 }, 496 },
497 { 497 {
498 'target_name': 'extensions_renderer', 498 'target_name': 'extensions_renderer',
499 'type': 'static_library', 499 'type': 'static_library',
500 'dependencies': [ 500 'dependencies': [
501 'extensions_resources.gyp:extensions_resources', 501 'extensions_resources.gyp:extensions_resources',
502 '../chrome/chrome_resources.gyp:chrome_resources', 502 '../chrome/chrome_resources.gyp:chrome_resources',
503 '../content/content_resources.gyp:content_resources',
503 '../gin/gin.gyp:gin', 504 '../gin/gin.gyp:gin',
505 '../mojo/mojo.gyp:mojo_js_bindings',
504 '../third_party/WebKit/public/blink.gyp:blink', 506 '../third_party/WebKit/public/blink.gyp:blink',
505 ], 507 ],
506 'include_dirs': [ 508 'include_dirs': [
507 '..', 509 '..',
508 ], 510 ],
509 'sources': [ 511 'sources': [
510 'renderer/activity_log_converter_strategy.cc', 512 'renderer/activity_log_converter_strategy.cc',
511 'renderer/activity_log_converter_strategy.h', 513 'renderer/activity_log_converter_strategy.h',
512 'renderer/api_activity_logger.cc', 514 'renderer/api_activity_logger.cc',
513 'renderer/api_activity_logger.h', 515 'renderer/api_activity_logger.h',
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 # TODO(tfarina): Many extension unit tests run as part of Chrome's 696 # TODO(tfarina): Many extension unit tests run as part of Chrome's
695 # unit_tests target. They should be moved here, which may require some 697 # unit_tests target. They should be moved here, which may require some
696 # refactoring (ExtensionsBrowserClient, TestingProfile, etc.). 698 # refactoring (ExtensionsBrowserClient, TestingProfile, etc.).
697 # http://crbug.com/348066 699 # http://crbug.com/348066
698 'target_name': 'extensions_unittests', 700 'target_name': 'extensions_unittests',
699 'type': 'executable', 701 'type': 'executable',
700 'dependencies': [ 702 'dependencies': [
701 '../base/base.gyp:base', 703 '../base/base.gyp:base',
702 '../base/base.gyp:test_support_base', 704 '../base/base.gyp:test_support_base',
703 '../content/content_shell_and_tests.gyp:test_support_content', 705 '../content/content_shell_and_tests.gyp:test_support_content',
706 '../device/serial/serial.gyp:device_serial',
707 '../mojo/mojo.gyp:mojo_environment_chromium',
708 '../mojo/mojo.gyp:mojo_cpp_bindings',
709 '../mojo/mojo.gyp:mojo_js_bindings_lib',
710 '../mojo/mojo.gyp:mojo_system_impl',
704 '../testing/gmock.gyp:gmock', 711 '../testing/gmock.gyp:gmock',
705 '../testing/gtest.gyp:gtest', 712 '../testing/gtest.gyp:gtest',
706 '../ui/strings/ui_strings.gyp:ui_strings', 713 '../ui/strings/ui_strings.gyp:ui_strings',
707 'extensions_common', 714 'extensions_common',
708 'extensions_renderer', 715 'extensions_renderer',
709 'extensions_resources.gyp:extensions_resources', 716 'extensions_resources.gyp:extensions_resources',
710 'extensions_strings.gyp:extensions_strings', 717 'extensions_strings.gyp:extensions_strings',
711 'extensions_test_support', 718 'extensions_test_support',
712 ], 719 ],
713 'sources': [ 720 'sources': [
714 'browser/process_manager_unittest.cc', 721 'browser/process_manager_unittest.cc',
715 'common/api/sockets/sockets_manifest_permission_unittest.cc', 722 'common/api/sockets/sockets_manifest_permission_unittest.cc',
716 'common/csp_validator_unittest.cc', 723 'common/csp_validator_unittest.cc',
717 'common/event_filter_unittest.cc', 724 'common/event_filter_unittest.cc',
718 'common/id_util_unittest.cc', 725 'common/id_util_unittest.cc',
719 'common/one_shot_event_unittest.cc', 726 'common/one_shot_event_unittest.cc',
720 'common/permissions/manifest_permission_set_unittest.cc', 727 'common/permissions/manifest_permission_set_unittest.cc',
721 'common/user_script_unittest.cc', 728 'common/user_script_unittest.cc',
729 'renderer/api_test_base.cc',
730 'renderer/api_test_base.h',
731 'renderer/api_test_base_unittest.cc',
722 'renderer/event_unittest.cc', 732 'renderer/event_unittest.cc',
723 'renderer/json_schema_unittest.cc', 733 'renderer/json_schema_unittest.cc',
724 'renderer/messaging_utils_unittest.cc', 734 'renderer/messaging_utils_unittest.cc',
725 'renderer/module_system_test.cc', 735 'renderer/module_system_test.cc',
726 'renderer/module_system_test.h', 736 'renderer/module_system_test.h',
727 'renderer/module_system_unittest.cc', 737 'renderer/module_system_unittest.cc',
728 'renderer/safe_builtins_unittest.cc', 738 'renderer/safe_builtins_unittest.cc',
729 'renderer/utils_unittest.cc', 739 'renderer/utils_unittest.cc',
730 'test/extensions_unittests_main.cc', 740 'test/extensions_unittests_main.cc',
731 'test/test_extensions_client.cc', 741 'test/test_extensions_client.cc',
(...skipping 12 matching lines...) Expand all
744 ], 754 ],
745 'actions': [ 755 'actions': [
746 { 756 {
747 # TODO(jamescook): Use the same .pak file for both app_shell and 757 # TODO(jamescook): Use the same .pak file for both app_shell and
748 # extensions_unittests by creating an extensions_resources.pak file 758 # extensions_unittests by creating an extensions_resources.pak file
749 # that can be used in both places. This will save build time. 759 # that can be used in both places. This will save build time.
750 # http://crbug.com/397250 760 # http://crbug.com/397250
751 'action_name': 'repack_extensions_unittests_pak', 761 'action_name': 'repack_extensions_unittests_pak',
752 'variables': { 762 'variables': {
753 'pak_inputs': [ 763 'pak_inputs': [
764 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
754 '<(SHARED_INTERMEDIATE_DIR)/extensions/extensions_resources.pak', 765 '<(SHARED_INTERMEDIATE_DIR)/extensions/extensions_resources.pak',
755 '<(SHARED_INTERMEDIATE_DIR)/extensions/extensions_renderer_resourc es.pak', 766 '<(SHARED_INTERMEDIATE_DIR)/extensions/extensions_renderer_resourc es.pak',
756 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/app_locale_settings_en-US.p ak', 767 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/app_locale_settings_en-US.p ak',
757 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_en-US.pak', 768 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_en-US.pak',
758 ], 769 ],
759 'pak_output': '<(PRODUCT_DIR)/extensions_unittests_resources.pak', 770 'pak_output': '<(PRODUCT_DIR)/extensions_unittests_resources.pak',
760 }, 771 },
761 'includes': [ '../build/repack_action.gypi' ], 772 'includes': [ '../build/repack_action.gypi' ],
762 }, 773 },
763 ], 774 ],
764 }, 775 },
765 ] 776 ]
766 } 777 }
OLDNEW
« no previous file with comments | « extensions/DEPS ('k') | extensions/renderer/DEPS » ('j') | extensions/renderer/dispatcher.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698