Revert of Clean up V4L2 codec-related flags and defines (patchset #3 id:40001 of...
[chromium-blink-merge.git] / extensions / extensions_tests.gyp
blob9652719a83938a00bfa98bc055e92d8eaab04ed5
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/alarms/alarms_api_unittest.cc',
45         'browser/api/api_resource_manager_unittest.cc',
46         'browser/api/bluetooth/bluetooth_event_router_unittest.cc',
47         'browser/api/cast_channel/cast_auth_ica_unittest.cc',
48         'browser/api/cast_channel/cast_auth_util_unittest.cc',
49         'browser/api/cast_channel/cast_channel_api_unittest.cc',
50         'browser/api/cast_channel/cast_framer_unittest.cc',
51         'browser/api/cast_channel/cast_socket_unittest.cc',
52         'browser/api/cast_channel/cast_transport_unittest.cc',
53         'browser/api/cast_channel/keep_alive_delegate_unittest.cc',
54         'browser/api/cast_channel/logger_unittest.cc',
55         'browser/api/cast_channel/test_util.cc',
56         'browser/api/cast_channel/test_util.h',
57         'browser/api/declarative/declarative_rule_unittest.cc',
58         'browser/api/declarative/deduping_factory_unittest.cc',
59         'browser/api/declarative/rules_registry_unittest.cc',
60         'browser/api/declarative_webrequest/webrequest_condition_unittest.cc',
61         'browser/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc',
62         'browser/api/idle/idle_api_unittest.cc',
63         'browser/api/mime_handler_private/mime_handler_private_unittest.cc',
64         'browser/api/networking_config/networking_config_service_chromeos_unittest.cc',
65         'browser/api/power/power_api_unittest.cc',
66         'browser/api/sockets_tcp/sockets_tcp_api_unittest.cc',
67         'browser/api/sockets_udp/sockets_udp_api_unittest.cc',
68         'browser/api/storage/settings_quota_unittest.cc',
69         'browser/api/storage/storage_api_unittest.cc',
70         'browser/api/storage/storage_frontend_unittest.cc',
71         'browser/api/web_request/form_data_parser_unittest.cc',
72         'browser/api/web_request/upload_data_presenter_unittest.cc',
73         'browser/api/web_request/web_request_time_tracker_unittest.cc',
74         'browser/app_window/app_window_geometry_cache_unittest.cc',
75         'browser/computed_hashes_unittest.cc',
76         'browser/content_hash_tree_unittest.cc',
77         'browser/event_listener_map_unittest.cc',
78         'browser/event_router_unittest.cc',
79         'browser/error_map_unittest.cc',
80         'browser/extension_icon_image_unittest.cc',
81         'browser/extension_pref_value_map_unittest.cc',
82         'browser/extension_registry_unittest.cc',
83         'browser/file_highlighter_unittest.cc',
84         'browser/file_reader_unittest.cc',
85         'browser/guest_view/guest_view_manager_unittest.cc',
86         'browser/image_loader_unittest.cc',
87         'browser/info_map_unittest.cc',
88         'browser/lazy_background_task_queue_unittest.cc',
89         'browser/management_policy_unittest.cc',
90         'browser/mojo/keep_alive_impl_unittest.cc',
91         'browser/mojo/stash_backend_unittest.cc',
92         'browser/process_manager_unittest.cc',
93         'browser/process_map_unittest.cc',
94         'browser/quota_service_unittest.cc',
95         'browser/runtime_data_unittest.cc',
96         'browser/sandboxed_unpacker_unittest.cc',
97         'browser/value_store/leveldb_value_store_unittest.cc',
98         'browser/value_store/testing_value_store_unittest.cc',
99         'browser/value_store/value_store_change_unittest.cc',
100         'browser/value_store/value_store_frontend_unittest.cc',
101         'browser/value_store/value_store_unittest.cc',
102         'browser/value_store/value_store_unittest.h',
103         'browser/verified_contents_unittest.cc',
104         'browser/warning_service_unittest.cc',
105         'common/api/sockets/sockets_manifest_permission_unittest.cc',
106         'common/csp_validator_unittest.cc',
107         'common/event_filter_unittest.cc',
108         'common/extension_l10n_util_unittest.cc',
109         'common/extension_resource_unittest.cc',
110         'common/extension_set_unittest.cc',
111         'common/features/base_feature_provider_unittest.cc',
112         'common/features/complex_feature_unittest.cc',
113         'common/features/simple_feature_unittest.cc',
114         'common/file_util_unittest.cc',
115         'common/image_util_unittest.cc',
116         'common/manifest_handler_unittest.cc',
117         'common/manifest_handlers/content_capabilities_manifest_unittest.cc',
118         'common/manifest_handlers/default_locale_manifest_unittest.cc',
119         'common/manifest_handlers/externally_connectable_unittest.cc',
120         'common/manifest_handlers/file_handler_manifest_unittest.cc',
121         'common/manifest_handlers/oauth2_manifest_unittest.cc',
122         'common/manifest_handlers/shared_module_manifest_unittest.cc',
123         'common/message_bundle_unittest.cc',
124         'common/one_shot_event_unittest.cc',
125         'common/permissions/api_permission_set_unittest.cc',
126         'common/permissions/manifest_permission_set_unittest.cc',
127         'common/permissions/socket_permission_unittest.cc',
128         'common/permissions/usb_device_permission_unittest.cc',
129         'common/stack_frame_unittest.cc',
130         'common/url_pattern_set_unittest.cc',
131         'common/url_pattern_unittest.cc',
132         'common/user_script_unittest.cc',
133         'renderer/activity_log_converter_strategy_unittest.cc',
134         'renderer/api/mojo_private/mojo_private_unittest.cc',
135         'renderer/api/serial/data_receiver_unittest.cc',
136         'renderer/api/serial/data_sender_unittest.cc',
137         'renderer/api/serial/serial_api_unittest.cc',
138         'renderer/api_test_base.cc',
139         'renderer/api_test_base.h',
140         'renderer/api_test_base_unittest.cc',
141         'renderer/event_unittest.cc',
142         'renderer/json_schema_unittest.cc',
143         'renderer/mojo/keep_alive_client_unittest.cc',
144         'renderer/messaging_utils_unittest.cc',
145         'renderer/module_system_test.cc',
146         'renderer/module_system_test.h',
147         'renderer/module_system_unittest.cc',
148         'renderer/safe_builtins_unittest.cc',
149         'renderer/script_context_set_unittest.cc',
150         'renderer/script_context_unittest.cc',
151         'renderer/utils_unittest.cc',
152         'test/extensions_unittests_main.cc',
153         'utility/unpacker_unittest.cc',
154       ],
155       # Disable c4267 warnings until we fix size_t to int truncations.
156       'msvs_disabled_warnings': [ 4267, ],
157       'conditions': [
158         ['OS=="win" and win_use_allocator_shim==1', {
159           'dependencies': [
160             '../base/allocator/allocator.gyp:allocator',
161           ],
162         }],
163       ],
164     },
165     {
166       # GN version: //extensions:extensions_browsertests
167       'target_name': 'extensions_browsertests',
168       'type': '<(gtest_target_type)',
169       'dependencies': [
170         'extensions.gyp:extensions_test_support',
171         'shell/app_shell.gyp:app_shell_lib',
172         # TODO(yoz): find the right deps
173         '<(DEPTH)/base/base.gyp:test_support_base',
174         '<(DEPTH)/content/content.gyp:content_app_both',
175         '<(DEPTH)/content/content_shell_and_tests.gyp:content_browser_test_support',
176         '<(DEPTH)/content/content_shell_and_tests.gyp:test_support_content',
177         '<(DEPTH)/testing/gmock.gyp:gmock',
178         '<(DEPTH)/testing/gtest.gyp:gtest',
179       ],
180       'defines': [
181         'HAS_OUT_OF_PROC_TEST_RUNNER',
182       ],
183       'sources': [
184         'browser/api/audio/audio_apitest.cc',
185         'browser/api/dns/dns_apitest.cc',
186         'browser/api/hid/hid_apitest.cc',
187         'browser/api/printer_provider/printer_provider_apitest.cc',
188         'browser/api/socket/socket_apitest.cc',
189         'browser/api/sockets_tcp/sockets_tcp_apitest.cc',
190         'browser/api/sockets_tcp_server/sockets_tcp_server_apitest.cc',
191         'browser/api/sockets_udp/sockets_udp_apitest.cc',
192         'browser/api/system_cpu/system_cpu_apitest.cc',
193         'browser/api/system_display/system_display_apitest.cc',
194         'browser/api/system_memory/system_memory_apitest.cc',
195         'browser/api/system_network/system_network_apitest.cc',
196         'browser/api/system_storage/storage_api_test_util.cc',
197         'browser/api/system_storage/storage_api_test_util.h',
198         'browser/api/system_storage/system_storage_apitest.cc',
199         'browser/api/system_storage/system_storage_eject_apitest.cc',
200         'browser/api/usb/usb_apitest.cc',
201         'browser/guest_view/app_view/app_view_apitest.cc',
202         'browser/guest_view/web_view/web_view_apitest.h',
203         'browser/guest_view/web_view/web_view_apitest.cc',
204         'browser/guest_view/web_view/web_view_media_access_apitest.cc',
205         'browser/updater/update_service_browsertest.cc',
206         'shell/browser/geolocation/geolocation_apitest.cc',
207         'shell/browser/shell_browsertest.cc',
208         'shell/test/shell_apitest.cc',
209         'shell/test/shell_apitest.h',
210         'shell/test/shell_test.cc',
211         'shell/test/shell_test.h',
212         'shell/test/shell_test_launcher_delegate.cc',
213         'shell/test/shell_test_launcher_delegate.h',
214         'shell/test/shell_tests_main.cc',
215       ],
216       'conditions': [
217         ['OS=="win" and win_use_allocator_shim==1', {
218           'dependencies': [
219             '<(DEPTH)/base/allocator/allocator.gyp:allocator',
220           ],
221         }],
222         ['OS=="mac"', {
223           'dependencies': [
224             'shell/app_shell.gyp:app_shell',  # Needed for App Shell.app's Helper.
225           ],
226         }],
227         # This is only here to keep gyp happy. This target never builds on
228         # mobile platforms.
229         ['OS != "ios" and OS != "android"', {
230           'dependencies': [
231             '<(DEPTH)/components/components.gyp:storage_monitor_test_support',
232           ],
233         }],
234       ]
235     },
236   ],
237   'conditions': [
238     ['test_isolation_mode != "noop"', {
239       'targets': [
240         {
241           'target_name': 'extensions_browsertests_run',
242           'type': 'none',
243           'dependencies': [
244             'extensions_browsertests',
245           ],
246           'includes': [
247             '../build/isolate.gypi',
248           ],
249           'sources': [
250             'extensions_browsertests.isolate',
251           ],
252         },
253       ],
254     }],
255   ],