NativeDisplayDelegateProxy needs to read a file which is necessary to start chrome...
[chromium-blink-merge.git] / extensions / extensions_tests.gyp
blobaa5ad0efb967169a40114bd6e82e69d51d83db52
2   'variables': {
3     # Product name is used for Mac bundle.
4     'app_shell_product_name': 'App Shell',
5     # The version is high enough to be supported by Omaha (at least 31)
6     # but fake enough to be obviously not a Chrome release.
7     'app_shell_version': '38.1234.5678.9',
8     'chromium_code': 1,
9   },
10   'targets': [
11     {
12       'target_name': 'extensions_unittests',
13       'type': 'executable',
14       'dependencies': [
15         '../base/base.gyp:base',
16         '../base/base.gyp:test_support_base',
17         '../components/components.gyp:keyed_service_content',
18         '../components/components.gyp:user_prefs',
19         '../content/content_shell_and_tests.gyp:test_support_content',
20         '../device/bluetooth/bluetooth.gyp:device_bluetooth_mocks',
21         '../device/serial/serial.gyp:device_serial',
22         '../device/serial/serial.gyp:device_serial_test_util',
23         '../mojo/mojo_base.gyp:mojo_environment_chromium',
24         '../testing/gmock.gyp:gmock',
25         '../testing/gtest.gyp:gtest',
26         '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
27         '../third_party/mojo/mojo_edk.gyp:mojo_js_lib',
28         '../third_party/mojo/mojo_edk.gyp:mojo_system_impl',
29         '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
30         'common/api/api.gyp:cast_channel_proto',
31         'extensions.gyp:extensions_common',
32         'extensions.gyp:extensions_renderer',
33         'extensions.gyp:extensions_shell_and_test_pak',
34         'extensions.gyp:extensions_test_support',
35         'extensions.gyp:extensions_utility',
36         'extensions_resources.gyp:extensions_resources',
37         'extensions_strings.gyp:extensions_strings',
38       ],
39       # Needed for third_party libraries like leveldb.
40       'include_dirs': [
41         '..',
42       ],
43       'sources': [
44         'browser/api/api_resource_manager_unittest.cc',
45         'browser/api/bluetooth/bluetooth_event_router_unittest.cc',
46         'browser/api/cast_channel/cast_auth_ica_unittest.cc',
47         'browser/api/cast_channel/cast_auth_util_unittest.cc',
48         'browser/api/cast_channel/cast_channel_api_unittest.cc',
49         'browser/api/cast_channel/cast_framer_unittest.cc',
50         'browser/api/cast_channel/cast_socket_unittest.cc',
51         'browser/api/cast_channel/cast_transport_unittest.cc',
52         'browser/api/cast_channel/keep_alive_delegate_unittest.cc',
53         'browser/api/cast_channel/logger_unittest.cc',
54         'browser/api/cast_channel/test_util.cc',
55         'browser/api/cast_channel/test_util.h',
56         'browser/api/declarative/declarative_rule_unittest.cc',
57         'browser/api/declarative/deduping_factory_unittest.cc',
58         'browser/api/declarative/rules_registry_unittest.cc',
59         'browser/api/declarative_webrequest/webrequest_condition_unittest.cc',
60         'browser/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc',
61         'browser/api/idle/idle_api_unittest.cc',
62         'browser/api/power/power_api_unittest.cc',
63         'browser/api/sockets_tcp/sockets_tcp_api_unittest.cc',
64         'browser/api/sockets_udp/sockets_udp_api_unittest.cc',
65         'browser/api/storage/settings_quota_unittest.cc',
66         'browser/api/storage/storage_api_unittest.cc',
67         'browser/api/storage/storage_frontend_unittest.cc',
68         'browser/api/web_request/form_data_parser_unittest.cc',
69         'browser/api/web_request/upload_data_presenter_unittest.cc',
70         'browser/api/web_request/web_request_time_tracker_unittest.cc',
71         'browser/app_window/app_window_geometry_cache_unittest.cc',
72         'browser/computed_hashes_unittest.cc',
73         'browser/content_hash_tree_unittest.cc',
74         'browser/event_listener_map_unittest.cc',
75         'browser/event_router_unittest.cc',
76         'browser/error_map_unittest.cc',
77         'browser/extension_icon_image_unittest.cc',
78         'browser/extension_pref_value_map_unittest.cc',
79         'browser/extension_registry_unittest.cc',
80         'browser/file_highlighter_unittest.cc',
81         'browser/file_reader_unittest.cc',
82         'browser/guest_view/guest_view_manager_unittest.cc',
83         'browser/image_loader_unittest.cc',
84         'browser/info_map_unittest.cc',
85         'browser/lazy_background_task_queue_unittest.cc',
86         'browser/management_policy_unittest.cc',
87         'browser/mojo/keep_alive_impl_unittest.cc',
88         'browser/mojo/stash_backend_unittest.cc',
89         'browser/process_manager_unittest.cc',
90         'browser/process_map_unittest.cc',
91         'browser/quota_service_unittest.cc',
92         'browser/runtime_data_unittest.cc',
93         'browser/value_store/leveldb_value_store_unittest.cc',
94         'browser/value_store/testing_value_store_unittest.cc',
95         'browser/value_store/value_store_change_unittest.cc',
96         'browser/value_store/value_store_frontend_unittest.cc',
97         'browser/value_store/value_store_unittest.cc',
98         'browser/value_store/value_store_unittest.h',
99         'browser/verified_contents_unittest.cc',
100         'browser/warning_service_unittest.cc',
101         'common/api/sockets/sockets_manifest_permission_unittest.cc',
102         'common/csp_validator_unittest.cc',
103         'common/event_filter_unittest.cc',
104         'common/extension_l10n_util_unittest.cc',
105         'common/extension_resource_unittest.cc',
106         'common/extension_set_unittest.cc',
107         'common/features/base_feature_provider_unittest.cc',
108         'common/features/complex_feature_unittest.cc',
109         'common/features/simple_feature_unittest.cc',
110         'common/file_util_unittest.cc',
111         'common/image_util_unittest.cc',
112         'common/manifest_handler_unittest.cc',
113         'common/manifest_handlers/content_capabilities_manifest_unittest.cc',
114         'common/manifest_handlers/default_locale_manifest_unittest.cc',
115         'common/manifest_handlers/externally_connectable_unittest.cc',
116         'common/manifest_handlers/file_handler_manifest_unittest.cc',
117         'common/manifest_handlers/oauth2_manifest_unittest.cc',
118         'common/manifest_handlers/shared_module_manifest_unittest.cc',
119         'common/message_bundle_unittest.cc',
120         'common/one_shot_event_unittest.cc',
121         'common/permissions/api_permission_set_unittest.cc',
122         'common/permissions/manifest_permission_set_unittest.cc',
123         'common/permissions/socket_permission_unittest.cc',
124         'common/permissions/usb_device_permission_unittest.cc',
125         'common/stack_frame_unittest.cc',
126         'common/url_pattern_set_unittest.cc',
127         'common/url_pattern_unittest.cc',
128         'common/user_script_unittest.cc',
129         'renderer/activity_log_converter_strategy_unittest.cc',
130         'renderer/api/mojo_private/mojo_private_unittest.cc',
131         'renderer/api/serial/data_receiver_unittest.cc',
132         'renderer/api/serial/data_sender_unittest.cc',
133         'renderer/api/serial/serial_api_unittest.cc',
134         'renderer/api_test_base.cc',
135         'renderer/api_test_base.h',
136         'renderer/api_test_base_unittest.cc',
137         'renderer/event_unittest.cc',
138         'renderer/json_schema_unittest.cc',
139         'renderer/mojo/keep_alive_client_unittest.cc',
140         'renderer/messaging_utils_unittest.cc',
141         'renderer/module_system_test.cc',
142         'renderer/module_system_test.h',
143         'renderer/module_system_unittest.cc',
144         'renderer/safe_builtins_unittest.cc',
145         'renderer/script_context_set_unittest.cc',
146         'renderer/script_context_unittest.cc',
147         'renderer/utils_unittest.cc',
148         'test/extensions_unittests_main.cc',
149         'utility/unpacker_unittest.cc',
150       ],
151       # Disable c4267 warnings until we fix size_t to int truncations.
152       'msvs_disabled_warnings': [ 4267, ],
153       'conditions': [
154         ['OS=="win" and win_use_allocator_shim==1', {
155           'dependencies': [
156             '../base/allocator/allocator.gyp:allocator',
157           ],
158         }],
159       ],
160     },
161     {
162       # GN version: //extensions:extensions_browsertests
163       'target_name': 'extensions_browsertests',
164       'type': '<(gtest_target_type)',
165       'dependencies': [
166         'extensions.gyp:extensions_test_support',
167         'shell/app_shell.gyp:app_shell_lib',
168         # TODO(yoz): find the right deps
169         '<(DEPTH)/base/base.gyp:test_support_base',
170         '<(DEPTH)/content/content.gyp:content_app_both',
171         '<(DEPTH)/content/content_shell_and_tests.gyp:content_browser_test_support',
172         '<(DEPTH)/content/content_shell_and_tests.gyp:test_support_content',
173         '<(DEPTH)/testing/gmock.gyp:gmock',
174         '<(DEPTH)/testing/gtest.gyp:gtest',
175       ],
176       'defines': [
177         'HAS_OUT_OF_PROC_TEST_RUNNER',
178       ],
179       'sources': [
180         'browser/api/audio/audio_apitest.cc',
181         'browser/api/dns/dns_apitest.cc',
182         'browser/api/hid/hid_apitest.cc',
183         'browser/api/printer_provider/printer_provider_apitest.cc',
184         'browser/api/socket/socket_apitest.cc',
185         'browser/api/sockets_tcp/sockets_tcp_apitest.cc',
186         'browser/api/sockets_tcp_server/sockets_tcp_server_apitest.cc',
187         'browser/api/sockets_udp/sockets_udp_apitest.cc',
188         'browser/api/system_cpu/system_cpu_apitest.cc',
189         'browser/api/system_display/system_display_apitest.cc',
190         'browser/api/system_memory/system_memory_apitest.cc',
191         'browser/api/system_network/system_network_apitest.cc',
192         'browser/api/system_storage/storage_api_test_util.cc',
193         'browser/api/system_storage/storage_api_test_util.h',
194         'browser/api/system_storage/system_storage_apitest.cc',
195         'browser/api/system_storage/system_storage_eject_apitest.cc',
196         'browser/api/usb/usb_apitest.cc',
197         'browser/guest_view/app_view/app_view_apitest.cc',
198         'browser/guest_view/web_view/web_view_apitest.h',
199         'browser/guest_view/web_view/web_view_apitest.cc',
200         'browser/guest_view/web_view/web_view_media_access_apitest.cc',
201         'browser/updater/update_service_browsertest.cc',
202         'shell/browser/geolocation/geolocation_apitest.cc',
203         'shell/browser/shell_browsertest.cc',
204         'shell/test/shell_apitest.cc',
205         'shell/test/shell_apitest.h',
206         'shell/test/shell_test.cc',
207         'shell/test/shell_test.h',
208         'shell/test/shell_test_launcher_delegate.cc',
209         'shell/test/shell_test_launcher_delegate.h',
210         'shell/test/shell_tests_main.cc',
211       ],
212       'conditions': [
213         ['OS=="win" and win_use_allocator_shim==1', {
214           'dependencies': [
215             '<(DEPTH)/base/allocator/allocator.gyp:allocator',
216           ],
217         }],
218         ['OS=="mac"', {
219           'dependencies': [
220             'shell/app_shell.gyp:app_shell',  # Needed for App Shell.app's Helper.
221           ],
222         }],
223         # This is only here to keep gyp happy. This target never builds on
224         # mobile platforms.
225         ['OS != "ios" and OS != "android"', {
226           'dependencies': [
227             '<(DEPTH)/components/components.gyp:storage_monitor_test_support',
228           ],
229         }],
230       ]
231     },
232   ],