Flag covering HID-detection OOBE screen removed.
[chromium-blink-merge.git] / content / content_tests.gypi
blobb23b7cc3a78154eee1980fa7ed518494fc5af718
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
6   'targets': [
7     {
8       'target_name': 'layouttest_support_content',
9       'type': 'static_library',
10       'conditions': [
11         ['OS=="android"', {
12           'dependencies': [
13             'test_support_content_jni_headers',
14           ],
15         }],
16         ['OS!="ios"', {
17           # layouttest_support_content is not supported nor required on iOS.
18           'dependencies': [
19             'test_support_content',
20             '../skia/skia.gyp:skia',
21             '../ui/accessibility/accessibility.gyp:ax_gen',
22             '../v8/tools/gyp/v8.gyp:v8',
23           ],
24           'include_dirs': [
25             '..',
26             '<(SHARED_INTERMEDIATE_DIR)',
27           ],
28           'sources': [
29             'public/test/layouttest_support.h',
30             'public/test/nested_message_pump_android.cc',
31             'public/test/nested_message_pump_android.h',
32             'test/layouttest_support.cc',
33             'test/test_media_stream_renderer_factory.cc',
34             'test/test_media_stream_renderer_factory.h',
35             'test/test_video_frame_provider.cc',
36             'test/test_video_frame_provider.h',
37           ],
38         }],
39       ],
40     },
41     {
42       'target_name': 'test_support_content',
43       'type': 'static_library',
44       'dependencies': [
45         '../net/net.gyp:net_test_support',
46         '../skia/skia.gyp:skia',
47         '../testing/gmock.gyp:gmock',
48         '../testing/gtest.gyp:gtest',
49         '../ui/accessibility/accessibility.gyp:ax_gen',
50         '../ui/base/ui_base.gyp:ui_base',
51         '../ui/base/ui_base.gyp:ui_base_test_support',
52         '../ui/events/events.gyp:dom4_keycode_converter',
53         '../ui/events/events.gyp:events_base',
54         '../ui/events/events.gyp:events_test_support',
55         '../ui/events/events.gyp:gesture_detection',
56         '../ui/gfx/gfx.gyp:gfx',
57         '../ui/gfx/gfx.gyp:gfx_geometry',
58         '../ui/gfx/gfx.gyp:gfx_test_support',
59         '../ui/resources/ui_resources.gyp:ui_resources',
60         '../url/url.gyp:url_lib',
61         '../webkit/common/webkit_common.gyp:webkit_common',
62         'browser/speech/proto/speech_proto.gyp:speech_proto',
63         'content.gyp:content_app_both',
64         'content.gyp:content_browser',
65         'content.gyp:content_common',
66       ],
67       'include_dirs': [
68         '..',
69       ],
70       'sources': [
71         'public/test/async_file_test_helper.cc',
72         'public/test/async_file_test_helper.h',
73         'public/test/browser_test_base.cc',
74         'public/test/browser_test_base.h',
75         'public/test/browser_test.h',
76         'public/test/browser_test_utils.cc',
77         'public/test/browser_test_utils.h',
78         'public/test/content_test_suite_base.cc',
79         'public/test/content_test_suite_base.h',
80         'public/test/download_test_observer.cc',
81         'public/test/download_test_observer.h',
82         'public/test/fake_speech_recognition_manager.cc',
83         'public/test/fake_speech_recognition_manager.h',
84         'public/test/javascript_test_observer.cc',
85         'public/test/javascript_test_observer.h',
86         'public/test/mock_blob_url_request_context.cc',
87         'public/test/mock_blob_url_request_context.h',
88         'public/test/mock_download_item.cc',
89         'public/test/mock_download_item.h',
90         'public/test/mock_download_manager.cc',
91         'public/test/mock_download_manager.h',
92         'public/test/mock_notification_observer.cc',
93         'public/test/mock_notification_observer.h',
94         'public/test/mock_render_process_host.cc',
95         'public/test/mock_render_process_host.h',
96         'public/test/mock_render_thread.cc',
97         'public/test/mock_render_thread.h',
98         'public/test/mock_resource_context.cc',
99         'public/test/mock_resource_context.h',
100         'public/test/mock_special_storage_policy.cc',
101         'public/test/mock_special_storage_policy.h',
102         'public/test/mock_storage_client.cc',
103         'public/test/mock_storage_client.h',
104         'public/test/render_view_test.cc',
105         'public/test/render_view_test.h',
106         'public/test/render_widget_test.cc',
107         'public/test/render_widget_test.h',
108         'public/test/sandbox_file_system_test_helper.cc',
109         'public/test/sandbox_file_system_test_helper.h',
110         'public/test/test_browser_context.cc',
111         'public/test/test_browser_context.h',
112         'public/test/test_browser_thread.cc',
113         'public/test/test_browser_thread.h',
114         'public/test/test_browser_thread_bundle.cc',
115         'public/test/test_browser_thread_bundle.h',
116         'public/test/test_content_client_initializer.cc',
117         'public/test/test_content_client_initializer.h',
118         'public/test/test_file_error_injector.cc',
119         'public/test/test_file_error_injector.h',
120         'public/test/test_file_system_backend.cc',
121         'public/test/test_file_system_backend.h',
122         'public/test/test_file_system_context.cc',
123         'public/test/test_file_system_context.h',
124         'public/test/test_file_system_options.cc',
125         'public/test/test_file_system_options.h',
126         'public/test/test_launcher.cc',
127         'public/test/test_launcher.h',
128         'public/test/test_navigation_observer.cc',
129         'public/test/test_navigation_observer.h',
130         'public/test/test_notification_tracker.cc',
131         'public/test/test_notification_tracker.h',
132         'public/test/test_renderer_host.cc',
133         'public/test/test_renderer_host.h',
134         'public/test/test_utils.cc',
135         'public/test/test_utils.h',
136         'public/test/unittest_test_suite.cc',
137         'public/test/unittest_test_suite.h',
138         'public/test/web_contents_tester.cc',
139         'public/test/web_contents_tester.h',
140         'app/startup_helper_win.cc',
141         # TODO(phajdan.jr): All of those files should live in content/test (if
142         # they're only used by content) or content/public/test (if they're used
143         # by other embedders).
144         'browser/download/mock_download_file.cc',
145         'browser/download/mock_download_file.h',
146         'browser/geolocation/fake_access_token_store.cc',
147         'browser/geolocation/fake_access_token_store.h',
148         'browser/geolocation/mock_location_arbitrator.cc',
149         'browser/geolocation/mock_location_arbitrator.h',
150         'browser/geolocation/mock_location_provider.cc',
151         'browser/geolocation/mock_location_provider.h',
152         'browser/renderer_host/compositing_iosurface_shader_programs_mac.cc',
153         'browser/renderer_host/compositing_iosurface_shader_programs_mac.h',
154         'browser/renderer_host/compositing_iosurface_transformer_mac.cc',
155         'browser/renderer_host/compositing_iosurface_transformer_mac.h',
156         'browser/renderer_host/media/mock_media_observer.cc',
157         'browser/renderer_host/media/mock_media_observer.h',
158         'test/appcache_test_helper.cc',
159         'test/appcache_test_helper.h',
160         'test/content_browser_test_utils_internal.cc',
161         'test/content_browser_test_utils_internal.h',
162         'test/content_test_suite.cc',
163         'test/content_test_suite.h',
164         'test/frame_load_waiter.cc',
165         'test/frame_load_waiter.h',
166         'test/mock_google_streaming_server.cc',
167         'test/mock_google_streaming_server.h',
168         'test/mock_keyboard.cc',
169         'test/mock_keyboard.h',
170         'test/mock_keyboard_driver_win.cc',
171         'test/mock_keyboard_driver_win.h',
172         'test/mock_render_process.cc',
173         'test/mock_render_process.h',
174         'test/mock_webclipboard_impl.cc',
175         'test/mock_webclipboard_impl.h',
176         'test/mock_webframeclient.h',
177         'test/mock_weburlloader.cc',
178         'test/mock_weburlloader.h',
179         'test/net/url_request_abort_on_end_job.cc',
180         'test/net/url_request_abort_on_end_job.h',
181         'test/net/url_request_failed_job.cc',
182         'test/net/url_request_failed_job.h',
183         'test/net/url_request_mock_http_job.cc',
184         'test/net/url_request_mock_http_job.h',
185         'test/net/url_request_prepackaged_interceptor.cc',
186         'test/net/url_request_prepackaged_interceptor.h',
187         'test/net/url_request_slow_download_job.cc',
188         'test/net/url_request_slow_download_job.h',
189         'test/ppapi_unittest.cc',
190         'test/ppapi_unittest.h',
191         'test/test_content_browser_client.cc',
192         'test/test_content_browser_client.h',
193         'test/test_content_client.cc',
194         'test/test_content_client.h',
195         'test/test_frame_navigation_observer.cc',
196         'test/test_frame_navigation_observer.h',
197         'test/test_render_frame_host.cc',
198         'test/test_render_frame_host.h',
199         'test/test_render_frame_host_factory.cc',
200         'test/test_render_frame_host_factory.h',
201         'test/test_render_view_host.cc',
202         'test/test_render_view_host.h',
203         'test/test_render_view_host_factory.cc',
204         'test/test_render_view_host_factory.h',
205         'test/test_web_contents.cc',
206         'test/test_web_contents.h',
207         'test/test_webkit_platform_support.cc',
208         'test/test_webkit_platform_support.h',
209         'test/web_gesture_curve_mock.cc',
210         'test/web_gesture_curve_mock.h',
211         'test/webkit_support.cc',
212         'test/webkit_support.h',
213         'test/webkit_unit_test_support.cc',
214         'test/webkit_unit_test_support.h',
215         'test/web_layer_tree_view_impl_for_testing.cc',
216         'test/web_layer_tree_view_impl_for_testing.h',
217         'test/weburl_loader_mock.cc',
218         'test/weburl_loader_mock.h',
219         'test/weburl_loader_mock_factory.cc',
220         'test/weburl_loader_mock_factory.h',
221       ],
222       'conditions': [
223         ['enable_plugins==0', {
224           'sources!': [
225             'test/ppapi_unittest.cc',
226           ],
227         }],
228         ['input_speech==0', {
229           'sources!': [
230             'test/mock_google_streaming_server.cc',
231           ],
232         }],
233         ['OS == "ios"', {
234           'sources/': [
235             # iOS only needs a small portion of content; exclude all the
236             # implementation, and re-include what is used.
237             ['exclude', '\\.(cc|mm)$'],
238             ['include', '_ios\\.(cc|mm)$'],
239             ['include', '^public/test/content_test_suite_base\\.cc$'],
240             ['include', '^public/test/mock_notification_observer\\.cc$'],
241             ['include', '^public/test/mock_resource_context\\.cc$'],
242             ['include', '^public/test/test_browser_thread\\.cc$'],
243             ['include', '^public/test/test_content_client_initializer\\.cc$'],
244             ['include', '^public/test/test_notification_tracker\\.cc$'],
245             ['include', '^public/test/test_utils\\.cc$'],
246             ['include', '^public/test/unittest_test_suite\\.cc$'],
247             ['include', '^test/content_test_suite\\.cc$'],
248             ['include', '^test/test_content_browser_client\\.cc$'],
249             ['include', '^test/test_content_client\\.cc$'],
250           ],
251         }, {  # OS != "ios"
252           'conditions': [
253             ['OS=="mac"', {
254               'copies': [{
255                 'destination': '<(SHARED_INTERMEDIATE_DIR)/webkit',
256                 'files': [
257                   'shell/resources/missingImage.png',
258                   'shell/resources/textAreaResizeCorner.png',
259                 ],
260               }],
261             }],
262           ],
263           'dependencies': [
264             'content.gyp:content_child',
265             'content.gyp:content_common',
266             'content.gyp:content_gpu',
267             'content.gyp:content_ppapi_plugin',
268             'content.gyp:content_renderer',
269             'content.gyp:content_utility',
270             'content.gyp:content_worker',
271             '../cc/cc_tests.gyp:cc_test_support',
272             '../media/media.gyp:media',
273             '../ppapi/ppapi_internal.gyp:ppapi_host',
274             '../ppapi/ppapi_internal.gyp:ppapi_proxy',
275             '../ppapi/ppapi_internal.gyp:ppapi_shared',
276             '../ppapi/ppapi_internal.gyp:ppapi_unittest_shared',
277             '../third_party/WebKit/public/blink.gyp:blink',
278             '../ui/surface/surface.gyp:surface',
279             '../v8/tools/gyp/v8.gyp:v8',
280             '../webkit/child/webkit_child.gyp:webkit_child',
281             '../webkit/common/gpu/webkit_gpu.gyp:webkit_gpu',
282             '../webkit/renderer/compositor_bindings/compositor_bindings.gyp:webkit_compositor_support',
283             '../webkit/storage_browser.gyp:webkit_storage_browser',
284             '../webkit/storage_common.gyp:webkit_storage_common',
285           ],
286           'export_dependent_settings': [
287             '../third_party/WebKit/public/blink.gyp:blink',
288           ],
289         }],
290         ['OS == "win"', {
291           'dependencies': [
292             '../sandbox/sandbox.gyp:sandbox',
293           ],
294         }],
295         ['enable_webrtc==1', {
296           'sources': [
297             'renderer/media/mock_media_stream_dispatcher.cc',
298             'renderer/media/mock_media_stream_dispatcher.h',
299             'renderer/media/mock_peer_connection_impl.cc',
300             'renderer/media/mock_peer_connection_impl.h',
301             'renderer/media/mock_web_rtc_peer_connection_handler_client.cc',
302             'renderer/media/mock_web_rtc_peer_connection_handler_client.h',
303             'renderer/media/webrtc/mock_peer_connection_dependency_factory.cc',
304             'renderer/media/webrtc/mock_peer_connection_dependency_factory.h',
305           ],
306           'dependencies': [
307             '../third_party/libjingle/libjingle.gyp:libjingle_webrtc',
308             '../third_party/libjingle/libjingle.gyp:libpeerconnection',
309             '../third_party/webrtc/modules/modules.gyp:video_capture_module',
310           ],
311         }],
312         ['use_glib == 1', {
313           'dependencies': [
314             '../build/linux/system.gyp:glib',
315           ],
316         }],
317         ['use_aura==1', {
318           'dependencies': [
319             '../ui/aura/aura.gyp:aura_test_support',
320             '../ui/resources/ui_resources.gyp:ui_test_pak',
321             '../ui/wm/wm.gyp:wm',
322           ],
323         }],
324         ['use_aura==1 or OS=="mac"', {
325           'dependencies': [
326             '../ui/compositor/compositor.gyp:compositor',
327           ],
328         }],
329         ['OS=="win"', {
330           'dependencies': [
331             '../third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
332           ],
333         }],
334         ['OS!="android" and OS!="ios"', {
335           'dependencies': [
336             '../third_party/libvpx/libvpx.gyp:libvpx',
337           ],
338         }],
339         ['OS=="android"', {
340           'dependencies': [
341             '../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs',
342           ],
343         }],
344       ],
345     },
346     {
347       'target_name': 'content_unittests',
348       'type': '<(gtest_target_type)',
349       'dependencies': [
350         'browser/service_worker/service_worker_proto.gyp:database_proto',
351         'browser/speech/proto/speech_proto.gyp:speech_proto',
352         'content.gyp:content_browser',
353         'content.gyp:content_common',
354         'test_support_content',
355         '../base/base.gyp:test_support_base',
356         '../crypto/crypto.gyp:crypto',
357         '../net/net.gyp:net_test_support',
358         '../skia/skia.gyp:skia',
359         '../sql/sql.gyp:sql',
360         '../sql/sql.gyp:test_support_sql',
361         '../testing/gmock.gyp:gmock',
362         '../testing/gtest.gyp:gtest',
363         '../third_party/re2/re2.gyp:re2',
364         '../ui/accessibility/accessibility.gyp:accessibility',
365         '../ui/base/ui_base.gyp:ui_base',
366         '../ui/gfx/gfx.gyp:gfx',
367         '../ui/gfx/gfx.gyp:gfx_geometry',
368       ],
369       'include_dirs': [
370         '..',
371         '<(SHARED_INTERMEDIATE_DIR)',  # Needed by key_systems_unittest.cc.
372       ],
373       'sources': [
374         'browser/accessibility/accessibility_mode_helper_unittest.cc',
375         'browser/accessibility/browser_accessibility_mac_unittest.mm',
376         'browser/accessibility/browser_accessibility_manager_unittest.cc',
377         'browser/accessibility/browser_accessibility_win_unittest.cc',
378         'browser/appcache/appcache_database_unittest.cc',
379         'browser/appcache/appcache_disk_cache_unittest.cc',
380         'browser/appcache/appcache_group_unittest.cc',
381         'browser/appcache/appcache_host_unittest.cc',
382         'browser/appcache/appcache_quota_client_unittest.cc',
383         'browser/appcache/appcache_request_handler_unittest.cc',
384         'browser/appcache/appcache_response_unittest.cc',
385         'browser/appcache/appcache_service_unittest.cc',
386         'browser/appcache/appcache_storage_unittest.cc',
387         'browser/appcache/appcache_storage_impl_unittest.cc',
388         'browser/appcache/appcache_unittest.cc',
389         'browser/appcache/appcache_update_job_unittest.cc',
390         'browser/appcache/appcache_url_request_job_unittest.cc',
391         'browser/appcache/chrome_appcache_service_unittest.cc',
392         'browser/appcache/manifest_parser_unittest.cc',
393         'browser/appcache/mock_appcache_policy.cc',
394         'browser/appcache/mock_appcache_policy.h',
395         'browser/appcache/mock_appcache_service.cc',
396         'browser/appcache/mock_appcache_service.h',
397         'browser/appcache/mock_appcache_storage.cc',
398         'browser/appcache/mock_appcache_storage.h',
399         'browser/appcache/mock_appcache_storage_unittest.cc',
400         'browser/battery_status/battery_status_service_unittest.cc',
401         'browser/browser_thread_unittest.cc',
402         'browser/browser_url_handler_impl_unittest.cc',
403         'browser/byte_stream_unittest.cc',
404         'browser/child_process_security_policy_unittest.cc',
405         'browser/compositor/software_browser_compositor_output_surface_unittest.cc',
406         'browser/compositor/software_output_device_ozone_unittest.cc',
407         'browser/databases_table_unittest.cc',
408         'browser/database_quota_client_unittest.cc',
409         'browser/database_tracker_unittest.cc',
410         'browser/database_util_unittest.cc',
411         'browser/device_sensors/data_fetcher_shared_memory_base_unittest.cc',
412         'browser/device_sensors/sensor_manager_android_unittest.cc',
413         'browser/devtools/embedded_worker_devtools_manager_unittest.cc',
414         'browser/devtools/devtools_http_handler_unittest.cc',
415         'browser/devtools/devtools_manager_unittest.cc',
416         'browser/dom_storage/dom_storage_area_unittest.cc',
417         'browser/dom_storage/dom_storage_context_impl_unittest.cc',
418         'browser/dom_storage/dom_storage_database_unittest.cc',
419         'browser/dom_storage/session_storage_database_unittest.cc',
420         'browser/download/base_file_unittest.cc',
421         'browser/download/download_file_unittest.cc',
422         'browser/download/download_item_impl_unittest.cc',
423         'browser/download/download_manager_impl_unittest.cc',
424         'browser/download/file_metadata_unittest_linux.cc',
425         'browser/download/rate_estimator_unittest.cc',
426         'browser/download/save_package_unittest.cc',
427         'browser/fileapi/blob_storage_context_unittest.cc',
428         'browser/fileapi/blob_url_request_job_unittest.cc',
429         'browser/fileapi/copy_or_move_file_validator_unittest.cc',
430         'browser/fileapi/copy_or_move_operation_delegate_unittest.cc',
431         'browser/fileapi/dragged_file_util_unittest.cc',
432         'browser/fileapi/external_mount_points_unittest.cc',
433         'browser/fileapi/file_system_context_unittest.cc',
434         'browser/fileapi/file_system_dir_url_request_job_unittest.cc',
435         'browser/fileapi/file_system_file_stream_reader_unittest.cc',
436         'browser/fileapi/file_system_operation_impl_unittest.cc',
437         'browser/fileapi/file_system_operation_impl_write_unittest.cc',
438         'browser/fileapi/file_system_operation_runner_unittest.cc',
439         'browser/fileapi/file_system_quota_client_unittest.cc',
440         'browser/fileapi/file_system_url_request_job_unittest.cc',
441         'browser/fileapi/file_system_url_unittest.cc',
442         'browser/fileapi/file_system_usage_cache_unittest.cc',
443         'browser/fileapi/file_writer_delegate_unittest.cc',
444         'browser/fileapi/fileapi_message_filter_unittest.cc',
445         'browser/fileapi/isolated_context_unittest.cc',
446         'browser/fileapi/local_file_stream_reader_unittest.cc',
447         'browser/fileapi/local_file_stream_writer_unittest.cc',
448         'browser/fileapi/local_file_util_unittest.cc',
449         'browser/fileapi/mock_file_change_observer.cc',
450         'browser/fileapi/mock_file_change_observer.h',
451         'browser/fileapi/mock_url_request_delegate.cc',
452         'browser/fileapi/mock_url_request_delegate.h',
453         'browser/fileapi/native_file_util_unittest.cc',
454         'browser/fileapi/obfuscated_file_util_unittest.cc',
455         'browser/fileapi/plugin_private_file_system_backend_unittest.cc',
456         'browser/fileapi/recursive_operation_delegate_unittest.cc',
457         'browser/fileapi/sandbox_database_test_helper.cc',
458         'browser/fileapi/sandbox_database_test_helper.h',
459         'browser/fileapi/sandbox_directory_database_unittest.cc',
460         'browser/fileapi/sandbox_file_system_backend_delegate_unittest.cc',
461         'browser/fileapi/sandbox_file_system_backend_unittest.cc',
462         'browser/fileapi/sandbox_isolated_origin_database_unittest.cc',
463         'browser/fileapi/sandbox_origin_database_unittest.cc',
464         'browser/fileapi/sandbox_prioritized_origin_database_unittest.cc',
465         'browser/fileapi/timed_task_helper_unittest.cc',
466         'browser/fileapi/transient_file_util_unittest.cc',
467         'browser/fileapi/upload_file_system_file_element_reader_unittest.cc',
468         'browser/frame_host/frame_tree_unittest.cc',
469         'browser/frame_host/navigation_controller_impl_unittest.cc',
470         'browser/frame_host/navigation_entry_impl_unittest.cc',
471         'browser/frame_host/render_frame_host_manager_unittest.cc',
472         'browser/frame_host/render_widget_host_view_child_frame_unittest.cc',
473         'browser/frame_host/render_widget_host_view_guest_unittest.cc',
474         'browser/gamepad/gamepad_provider_unittest.cc',
475         'browser/gamepad/gamepad_test_helpers.cc',
476         'browser/gamepad/gamepad_test_helpers.h',
477         'browser/geolocation/geolocation_provider_unittest.cc',
478         'browser/geolocation/location_arbitrator_impl_unittest.cc',
479         'browser/geolocation/network_location_provider_unittest.cc',
480         'browser/geolocation/wifi_data_provider_chromeos_unittest.cc',
481         'browser/geolocation/wifi_data_provider_common_unittest.cc',
482         'browser/geolocation/wifi_data_provider_linux_unittest.cc',
483         'browser/geolocation/wifi_data_provider_unittest_win.cc',
484         'browser/gpu/gpu_data_manager_impl_private_unittest.cc',
485         'browser/gpu/shader_disk_cache_unittest.cc',
486         'browser/host_zoom_map_impl_unittest.cc',
487         'browser/indexed_db/indexed_db_active_blob_registry_unittest.cc',
488         'browser/indexed_db/indexed_db_backing_store_unittest.cc',
489         'browser/indexed_db/indexed_db_cleanup_on_io_error_unittest.cc',
490         'browser/indexed_db/indexed_db_database_unittest.cc',
491         'browser/indexed_db/indexed_db_factory_unittest.cc',
492         'browser/indexed_db/indexed_db_fake_backing_store.cc',
493         'browser/indexed_db/indexed_db_fake_backing_store.h',
494         'browser/indexed_db/indexed_db_leveldb_coding_unittest.cc',
495         'browser/indexed_db/indexed_db_quota_client_unittest.cc',
496         'browser/indexed_db/indexed_db_transaction_unittest.cc',
497         'browser/indexed_db/indexed_db_unittest.cc',
498         'browser/indexed_db/mock_indexed_db_callbacks.cc',
499         'browser/indexed_db/mock_indexed_db_callbacks.h',
500         'browser/indexed_db/mock_indexed_db_database_callbacks.cc',
501         'browser/indexed_db/mock_indexed_db_database_callbacks.h',
502         'browser/indexed_db/leveldb/leveldb_unittest.cc',
503         'browser/indexed_db/list_set_unittest.cc',
504         'browser/loader/resource_buffer_unittest.cc',
505         'browser/loader/resource_dispatcher_host_unittest.cc',
506         'browser/loader/resource_loader_unittest.cc',
507         'browser/loader/resource_scheduler_unittest.cc',
508         'browser/loader/temporary_file_stream_unittest.cc',
509         'browser/loader/upload_data_stream_builder_unittest.cc',
510         'browser/mach_broker_mac_unittest.cc',
511         'browser/media/capture/audio_mirroring_manager_unittest.cc',
512         'browser/media/capture/video_capture_oracle_unittest.cc',
513         'browser/media/capture/web_contents_audio_input_stream_unittest.cc',
514         'browser/media/capture/web_contents_video_capture_device_unittest.cc',
515         'browser/media/media_internals_unittest.cc',
516         'browser/media/midi_host_unittest.cc',
517         'browser/media/webrtc_identity_store_unittest.cc',
518         'browser/net/sqlite_persistent_cookie_store_unittest.cc',
519         'browser/notification_service_impl_unittest.cc',
520         'browser/plugin_loader_posix_unittest.cc',
521         'browser/power_monitor_message_broadcaster_unittest.cc',
522         'browser/power_profiler/power_profiler_service_unittest.cc',
523         'browser/quota/mock_quota_manager.cc',
524         'browser/quota/mock_quota_manager.h',
525         'browser/quota/mock_quota_manager_proxy.cc',
526         'browser/quota/mock_quota_manager_proxy.h',
527         'browser/quota/mock_quota_manager_unittest.cc',
528         'browser/quota/quota_database_unittest.cc',
529         'browser/quota/quota_backend_impl_unittest.cc',
530         'browser/quota/quota_manager_unittest.cc',
531         'browser/quota/quota_reservation_manager_unittest.cc',
532         'browser/quota/quota_temporary_storage_evictor_unittest.cc',
533         'browser/quota/storage_monitor_unittest.cc',
534         'browser/quota/usage_tracker_unittest.cc',
535         'browser/renderer_host/compositing_iosurface_transformer_mac_unittest.cc',
536         'browser/renderer_host/input/gesture_event_queue_unittest.cc',
537         'browser/renderer_host/input/input_router_impl_unittest.cc',
538         'browser/renderer_host/input/mock_input_ack_handler.cc',
539         'browser/renderer_host/input/mock_input_ack_handler.h',
540         'browser/renderer_host/input/mock_input_router_client.cc',
541         'browser/renderer_host/input/mock_input_router_client.h',
542         'browser/renderer_host/input/synthetic_gesture_controller_unittest.cc',
543         'browser/renderer_host/input/tap_suppression_controller_unittest.cc',
544         'browser/renderer_host/input/touch_action_filter_unittest.cc',
545         'browser/renderer_host/input/touch_emulator_unittest.cc',
546         'browser/renderer_host/input/touch_event_queue_unittest.cc',
547         'browser/renderer_host/media/audio_input_device_manager_unittest.cc',
548         'browser/renderer_host/media/audio_renderer_host_unittest.cc',
549         'browser/renderer_host/media/device_request_message_filter_unittest.cc',
550         'browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc',
551         'browser/renderer_host/media/media_stream_manager_unittest.cc',
552         'browser/renderer_host/media/media_stream_ui_proxy_unittest.cc',
553         'browser/renderer_host/media/video_capture_buffer_pool_unittest.cc',
554         'browser/renderer_host/media/video_capture_controller_unittest.cc',
555         'browser/renderer_host/media/video_capture_host_unittest.cc',
556         'browser/renderer_host/media/video_capture_manager_unittest.cc',
557         'browser/renderer_host/pepper/browser_ppapi_host_test.cc',
558         'browser/renderer_host/pepper/browser_ppapi_host_test.h',
559         'browser/renderer_host/pepper/pepper_file_system_browser_host_unittest.cc',
560         'browser/renderer_host/pepper/pepper_gamepad_host_unittest.cc',
561         'browser/renderer_host/pepper/pepper_printing_host_unittest.cc',
562         'browser/renderer_host/pepper/quota_reservation_unittest.cc',
563         'browser/renderer_host/render_process_host_unittest.cc',
564         'browser/renderer_host/render_view_host_unittest.cc',
565         'browser/renderer_host/render_widget_host_unittest.cc',
566         'browser/renderer_host/render_widget_host_view_aura_unittest.cc',
567         'browser/renderer_host/render_widget_host_view_mac_editcommand_helper_unittest.mm',
568         'browser/renderer_host/render_widget_host_view_mac_unittest.mm',
569         'browser/renderer_host/software_frame_manager_unittest.cc',
570         'browser/renderer_host/text_input_client_mac_unittest.mm',
571         'browser/renderer_host/web_input_event_aura_unittest.cc',
572         'browser/renderer_host/websocket_dispatcher_host_unittest.cc',
573         'browser/resolve_proxy_msg_helper_unittest.cc',
574         'browser/service_worker/embedded_worker_instance_unittest.cc',
575         'browser/service_worker/embedded_worker_test_helper.cc',
576         'browser/service_worker/embedded_worker_test_helper.h',
577         'browser/service_worker/service_worker_context_unittest.cc',
578         'browser/service_worker/service_worker_database_unittest.cc',
579         'browser/service_worker/service_worker_dispatcher_host_unittest.cc',
580         'browser/service_worker/service_worker_dispatcher_host_unittest.cc',
581         'browser/service_worker/service_worker_handle_unittest.cc',
582         'browser/service_worker/service_worker_job_unittest.cc',
583         'browser/service_worker/service_worker_provider_host_unittest.cc',
584         'browser/service_worker/service_worker_registration_unittest.cc',
585         'browser/service_worker/service_worker_storage_unittest.cc',
586         'browser/service_worker/service_worker_url_request_job_unittest.cc',
587         'browser/service_worker/service_worker_utils_unittest.cc',
588         'browser/service_worker/service_worker_version_unittest.cc',
589         'browser/shared_worker/shared_worker_instance_unittest.cc',
590         'browser/shared_worker/shared_worker_service_impl_unittest.cc',
591         'browser/site_instance_impl_unittest.cc',
592         'browser/speech/chunked_byte_buffer_unittest.cc',
593         'browser/speech/endpointer/endpointer_unittest.cc',
594         'browser/speech/google_one_shot_remote_engine_unittest.cc',
595         'browser/speech/google_streaming_remote_engine_unittest.cc',
596         'browser/speech/speech_recognizer_impl_unittest.cc',
597         'browser/ssl/ssl_host_state_unittest.cc',
598         'browser/startup_task_runner_unittest.cc',
599         'browser/storage_partition_impl_map_unittest.cc',
600         'browser/storage_partition_impl_unittest.cc',
601         'browser/streams/stream_unittest.cc',
602         'browser/streams/stream_url_request_job_unittest.cc',
603         'browser/system_message_window_win_unittest.cc',
604         'browser/web_contents/aura/overscroll_navigation_overlay_unittest.cc',
605         'browser/web_contents/aura/window_slider_unittest.cc',
606         'browser/web_contents/web_contents_delegate_unittest.cc',
607         'browser/web_contents/web_contents_impl_unittest.cc',
608         'browser/web_contents/web_contents_user_data_unittest.cc',
609         'browser/web_contents/web_contents_view_mac_unittest.mm',
610         'browser/web_contents/web_drag_dest_mac_unittest.mm',
611         'browser/web_contents/web_drag_source_mac_unittest.mm',
612         'browser/webui/web_ui_data_source_unittest.cc',
613         'browser/webui/web_ui_message_handler_unittest.cc',
614         'child/blink_platform_unittest.cc',
615         'child/fileapi/webfilewriter_base_unittest.cc',
616         'child/indexed_db/indexed_db_dispatcher_unittest.cc',
617         'child/indexed_db/webidbcursor_impl_unittest.cc',
618         'child/multipart_response_delegate_unittest.cc',
619         'child/npapi/plugin_lib_unittest.cc',
620         'child/power_monitor_broadcast_source_unittest.cc',
621         'child/resource_dispatcher_unittest.cc',
622         'child/site_isolation_policy_unittest.cc',
623         'child/touch_fling_gesture_curve_unittest.cc',
624         'child/webcrypto/shared_crypto_unittest.cc',
625         'child/worker_task_runner_unittest.cc',
626         'common/android/address_parser_unittest.cc',
627         'common/android/gin_java_bridge_value_unittest.cc',
628         'common/cc_messages_unittest.cc',
629         'common/common_param_traits_unittest.cc',
630         'common/cursors/webcursor_unittest.cc',
631         'common/database_connections_unittest.cc',
632         'common/database_identifier_unittest.cc',
633         'common/dom_storage/dom_storage_map_unittest.cc',
634         'common/fileapi/file_system_util_unittest.cc',
635         'common/gpu/gpu_memory_manager_unittest.cc',
636         'common/host_shared_bitmap_manager_unittest.cc',
637         'common/indexed_db/indexed_db_key_unittest.cc',
638         'common/input/input_param_traits_unittest.cc',
639         'common/input/web_input_event_traits_unittest.cc',
640         'common/inter_process_time_ticks_converter_unittest.cc',
641         'common/mac/attributed_string_coder_unittest.mm',
642         'common/mac/font_descriptor_unittest.mm',
643         'common/page_state_serialization_unittest.cc',
644         'common/page_zoom_unittest.cc',
645         'common/plugin_list_unittest.cc',
646         'common/sandbox_mac_diraccess_unittest.mm',
647         'common/sandbox_mac_fontloading_unittest.mm',
648         'common/sandbox_mac_system_access_unittest.mm',
649         'common/sandbox_mac_unittest_helper.h',
650         'common/sandbox_mac_unittest_helper.mm',
651         'common/shareable_file_reference_unittest.cc',
652         'common/webplugininfo_unittest.cc',
653         'renderer/active_notification_tracker_unittest.cc',
654         'renderer/android/email_detector_unittest.cc',
655         'renderer/android/phone_number_detector_unittest.cc',
656         'renderer/battery_status/battery_status_dispatcher_unittest.cc',
657         'renderer/bmp_image_decoder_unittest.cc',
658         'renderer/device_sensors/device_motion_event_pump_unittest.cc',
659         'renderer/device_sensors/device_orientation_event_pump_unittest.cc',
660         'renderer/disambiguation_popup_helper_unittest.cc',
661         'renderer/dom_storage/dom_storage_cached_area_unittest.cc',
662         'renderer/ico_image_decoder_unittest.cc',
663         'renderer/input/input_event_filter_unittest.cc',
664         'renderer/input/input_handler_proxy_unittest.cc',
665         'renderer/media/android/media_info_loader_unittest.cc',
666         'renderer/media/audio_message_filter_unittest.cc',
667         'renderer/media/audio_renderer_mixer_manager_unittest.cc',
668         'renderer/media/buffered_data_source_unittest.cc',
669         'renderer/media/buffered_data_source_host_impl_unittest.cc',
670         'renderer/media/buffered_resource_loader_unittest.cc',
671         'renderer/media/cache_util_unittest.cc',
672         'renderer/media/crypto/key_systems_unittest.cc',
673         'renderer/media/render_media_log_unittest.cc',
674         'renderer/media/test_response_generator.cc',
675         'renderer/media/test_response_generator.h',
676         'renderer/media/video_capture_impl_manager_unittest.cc',
677         'renderer/media/video_capture_impl_unittest.cc',
678         'renderer/media/video_capture_message_filter_unittest.cc',
679         'renderer/media/video_frame_compositor_unittest.cc',
680         'renderer/media/webaudiosourceprovider_impl_unittest.cc',
681         'renderer/media/webrtc/video_destination_handler_unittest.cc',
682         'renderer/npapi/webplugin_impl_unittest.cc',
683         'renderer/pepper/host_var_tracker_unittest.cc',
684         'renderer/pepper/mock_resource.h',
685         'renderer/pepper/pepper_broker_unittest.cc',
686         'renderer/pepper/v8_var_converter_unittest.cc',
687         'renderer/render_frame_impl_unittest.cc',
688         'renderer/render_thread_impl_unittest.cc',
689         'renderer/render_widget_unittest.cc',
690         'renderer/screen_orientation/screen_orientation_dispatcher_unittest.cc',
691         'renderer/skia_benchmarking_extension_unittest.cc',
692         'renderer/v8_value_converter_impl_unittest.cc',
693         'test/fileapi_test_file_set.cc',
694         'test/fileapi_test_file_set.h',
695         'test/image_decoder_test.cc',
696         'test/image_decoder_test.h',
697         'test/run_all_unittests.cc',
698       ],
699       'conditions': [
700         ['OS == "ios"', {
701           'sources/': [
702             # iOS only needs a small portion of content; exclude all the
703             # implementation, and re-include what is used.
704             ['exclude', '\\.(cc|mm)$'],
705             ['include', '_ios\\.(cc|mm)$'],
706             ['include', '^browser/notification_service_impl_unittest\\.cc$'],
707             ['include', '^browser/web_contents/navigation_entry_impl_unittest\\.cc$'],
708             ['include', '^test/run_all_unittests\\.cc$'],
709           ],
710         }, {  # OS != "ios"
711           'dependencies': [
712             'content.gyp:content_browser',
713             'content.gyp:content_child',
714             'content.gyp:content_gpu',
715             'content.gyp:content_plugin',
716             'content.gyp:content_renderer',
717             'content_resources.gyp:content_resources',
718             '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
719             '../gpu/gpu.gyp:gpu',
720             '../gpu/gpu.gyp:gpu_unittest_utils',
721             '../ipc/ipc.gyp:test_support_ipc',
722             '../jingle/jingle.gyp:jingle_glue_test_util',
723             '../media/media.gyp:media_test_support',
724             '../media/media.gyp:shared_memory_support',
725             '../third_party/WebKit/public/blink.gyp:blink',
726             '../third_party/icu/icu.gyp:icui18n',
727             '../third_party/icu/icu.gyp:icuuc',
728             '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
729             '../third_party/libjingle/libjingle.gyp:libjingle',
730             '../ui/compositor/compositor.gyp:compositor_test_support',
731             '../ui/gl/gl.gyp:gl',
732             '../webkit/child/webkit_child.gyp:webkit_child',
733             '../webkit/storage_browser.gyp:webkit_storage_browser',
734             '../webkit/storage_common.gyp:webkit_storage_common',
735           ],
736         }],
737         ['enable_plugins==0', {
738           'sources/': [
739             ['exclude', '^browser/renderer_host/pepper/'],
740             ['exclude', '^child/npapi/'],
741             ['exclude', '^renderer/npapi/'],
742             ['exclude', '^renderer/pepper/'],
743           ],
744           'sources!': [
745             'browser/plugin_loader_posix_unittest.cc',
746             'renderer/media/webrtc/video_destination_handler_unittest.cc',
747           ],
748         }],
749         ['enable_webrtc==1', {
750           'sources': [
751             'browser/media/webrtc_internals_unittest.cc',
752             'browser/renderer_host/media/webrtc_identity_service_host_unittest.cc',
753             'browser/renderer_host/p2p/socket_host_test_utils.cc',
754             'browser/renderer_host/p2p/socket_host_test_utils.h',
755             'browser/renderer_host/p2p/socket_host_tcp_unittest.cc',
756             'browser/renderer_host/p2p/socket_host_tcp_server_unittest.cc',
757             'browser/renderer_host/p2p/socket_host_udp_unittest.cc',
758             'browser/renderer_host/p2p/socket_host_unittest.cc',
759             'renderer/media/media_stream_audio_processor_unittest.cc',
760             'renderer/media/media_stream_constraints_util_unittest.cc',
761             'renderer/media/media_stream_dispatcher_unittest.cc',
762             'renderer/media/media_stream_impl_unittest.cc',
763             'renderer/media/media_stream_video_capture_source_unittest.cc',
764             'renderer/media/media_stream_video_source_unittest.cc',
765             'renderer/media/media_stream_video_track_unittest.cc',
766             'renderer/media/mock_media_stream_registry.cc',
767             'renderer/media/mock_media_stream_registry.h',
768             'renderer/media/mock_media_stream_video_sink.cc',
769             'renderer/media/mock_media_stream_video_sink.h',
770             'renderer/media/mock_media_stream_video_source.cc',
771             'renderer/media/mock_media_stream_video_source.h',
772             'renderer/media/mock_media_constraint_factory.cc',
773             'renderer/media/rtc_peer_connection_handler_unittest.cc',
774             'renderer/media/rtc_video_decoder_unittest.cc',
775             'renderer/media/video_source_handler_unittest.cc',
776             'renderer/media/webrtc/media_stream_remote_video_source_unittest.cc',
777             'renderer/media/webrtc/media_stream_track_metrics_unittest.cc',
778             'renderer/media/webrtc/peer_connection_dependency_factory_unittest.cc',
779             'renderer/media/webrtc/webrtc_local_audio_track_adapter_unittest.cc',
780             'renderer/media/webrtc/webrtc_media_stream_adapter_unittest.cc',
781             'renderer/media/webrtc/webrtc_video_capturer_adapter_unittest.cc',
782             'renderer/media/webrtc_audio_capturer_unittest.cc',
783             'renderer/media/webrtc_audio_renderer_unittest.cc',
784             'renderer/media/webrtc_identity_service_unittest.cc',
785             'renderer/media/webrtc_local_audio_source_provider_unittest.cc',
786             'renderer/media/webrtc_local_audio_track_unittest.cc',
787             'renderer/media/webrtc_uma_histograms_unittest.cc',
788           ],
789           'dependencies': [
790             '../third_party/libjingle/libjingle.gyp:libjingle_webrtc',
791             '../third_party/libjingle/libjingle.gyp:libpeerconnection',
792             '../third_party/webrtc/modules/modules.gyp:video_capture_module',
793           ]
794         }, {
795           'sources!': [
796             'renderer/media/webrtc/video_destination_handler_unittest.cc',
797           ],
798         }],
799         ['enable_webrtc==1 and (OS=="linux" or OS=="mac" or OS=="win")', {
800           'sources': [
801             'browser/media/capture/desktop_capture_device_unittest.cc',
802           ],
803           'dependencies': [
804             '../third_party/webrtc/modules/modules.gyp:desktop_capture',
805           ],
806         }],
807         ['enable_webrtc==1 and chromeos==1', {
808           'sources': [
809             'browser/media/capture/desktop_capture_device_aura_unittest.cc',
810           ],
811         }],
812         # TODO(jrg): remove the OS=="android" section?
813         # http://crbug.com/113172
814         # Understand better how media_stream_ is tied into Chromium.
815         ['enable_webrtc==0 and OS=="android"', {
816           'sources/': [
817             ['exclude', '^renderer/media/media_stream_'],
818           ],
819         }],
820         ['input_speech==0', {
821           'sources/': [
822             ['exclude', '^browser/speech/'],
823           ]
824         }],
825         ['notifications==0', {
826            'sources!': [
827              'renderer/active_notification_tracker_unittest.cc',
828            ],
829         }],
830         ['OS=="linux"', {
831           'dependencies': [
832             '../build/linux/system.gyp:dbus',
833             '../dbus/dbus.gyp:dbus_test_support',
834           ],
835         }],
836         ['OS=="win" and win_use_allocator_shim==1', {
837           'dependencies': [
838             '../base/allocator/allocator.gyp:allocator',
839           ],
840         }],
841         ['OS=="win"', {
842           'dependencies': [
843             '../third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
844           ],
845         }],
846         ['OS=="mac"', {
847           # These flags are needed to run the test on Mac.
848           # Search for comments about "xcode_settings" in chrome_tests.gypi.
849           'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
850         }],
851         ['chromeos==1', {
852           'dependencies': [
853             '../chromeos/chromeos.gyp:chromeos',
854           ],
855           'sources/': [
856             ['exclude', '^browser/geolocation/wifi_data_provider_linux_unittest.cc'],
857           ],
858         }],
859         ['use_aura==1', {
860           'dependencies': [
861             '../ui/aura/aura.gyp:aura',
862             '../ui/wm/wm.gyp:wm',
863           ]
864         }],
865         ['use_aura==1 or toolkit_views==1', {
866           'dependencies': [
867             '../ui/events/events.gyp:events_test_support',
868           ],
869         }],
870         ['use_aura!=1 and OS!="mac"', {
871           'sources/': [
872             ['exclude', '^browser/compositor/'],
873           ],
874         }],
875         ['OS == "android"', {
876           'sources': [
877             'browser/renderer_host/java/gin_java_method_invocation_helper_unittest.cc',
878             'browser/renderer_host/java/jni_helper_unittest.cc',
879             'renderer/java/gin_java_bridge_value_converter_unittest.cc',
880           ],
881           'sources!': [
882             'browser/geolocation/network_location_provider_unittest.cc',
883             'browser/geolocation/wifi_data_provider_chromeos_unittest.cc',
884             'browser/geolocation/wifi_data_provider_common_unittest.cc',
885             'browser/geolocation/wifi_data_provider_linux_unittest.cc',
886           ],
887         }],
888         ['OS != "android" and OS != "ios"', {
889           'dependencies': [
890             '../third_party/libvpx/libvpx.gyp:libvpx',
891           ],
892         }],
893         ['OS == "android"', {
894           'dependencies': [
895             '../testing/android/native_test.gyp:native_test_native_code',
896           ],
897         }],
898         ['use_aura!=1 and OS!="android"', {
899           'sources!': [
900             'browser/renderer_host/input/tap_suppression_controller_unittest.cc',
901           ],
902         }],
903         ['use_dbus==0', {
904           'sources!': [
905             'browser/geolocation/wifi_data_provider_linux_unittest.cc',
906           ],
907         }],
908         ['OS!="win" and OS!="mac"', {
909           'sources!': [
910             'common/plugin_list_unittest.cc',
911           ],
912         }],
913         ['use_ozone==1', {
914           'dependencies': [
915             '../ui/gfx/ozone/gfx_ozone.gyp:gfx_ozone',
916           ],
917         }],
918       ],
919     },
920   ],
921   'conditions': [
922     ['test_isolation_mode != "noop"', {
923       'targets': [
924         {
925           'target_name': 'content_unittests_run',
926           'type': 'none',
927           'dependencies': [
928             'content_unittests',
929           ],
930           'includes': [
931             '../build/isolate.gypi',
932             'content_unittests.isolate',
933           ],
934           'sources': [
935             'content_unittests.isolate',
936           ],
937        },
938       ],
939     }],
940     ['OS!="ios"', {
941       'targets': [
942         {
943           'target_name': 'content_perftests',
944           'type': '<(gtest_target_type)',
945           'defines!': ['CONTENT_IMPLEMENTATION'],
946           'dependencies': [
947             'content.gyp:content_browser',
948             'content.gyp:content_common',
949             'test_support_content',
950             '../base/base.gyp:test_support_base',
951             '../cc/cc.gyp:cc',
952             '../skia/skia.gyp:skia',
953             '../testing/gtest.gyp:gtest',
954             '../testing/perf/perf_test.gyp:*',
955             '../ui/gfx/gfx.gyp:gfx',
956             '../ui/gfx/gfx.gyp:gfx_geometry',
957           ],
958           'include_dirs': [
959             '..',
960           ],
961           'sources': [
962             'browser/renderer_host/input/input_router_impl_perftest.cc',
963             'common/cc_messages_perftest.cc',
964             'test/run_all_perftests.cc',
965           ],
966           'conditions': [
967             ['OS == "android"', {
968               'dependencies': [
969                 '../testing/android/native_test.gyp:native_test_native_code',
970               ],
971             }],
972           ],
973         },
974         {
975           'target_name': 'content_browser_test_support',
976           'type': 'static_library',
977           'dependencies': [
978             'content_shell_lib',
979             '../skia/skia.gyp:skia',
980             '../testing/gtest.gyp:gtest',
981           ],
982           'sources': [
983             'test/content_test_launcher.cc',
984             'public/test/content_browser_test.cc',
985             'public/test/content_browser_test.h',
986             'public/test/content_browser_test_utils.cc',
987             'public/test/content_browser_test_utils.h',
988             'public/test/content_browser_test_utils_mac.mm',
989           ],
990           'conditions': [
991             ['OS=="android"', {
992               'dependencies': [
993                 'content.gyp:content_app_both',
994               ],
995             }, {
996               'dependencies': [
997                 'content.gyp:content_browser',
998               ],
999             }],
1000           ],
1001         },
1002         {
1003           'target_name': 'web_ui_test_mojo_bindings',
1004           'type': 'static_library',
1005           'dependencies': [
1006             '../mojo/mojo.gyp:mojo_cpp_bindings',
1007           ],
1008           'sources': [
1009             'test/data/web_ui_test_mojo_bindings.mojom',
1010           ],
1011           'includes': [ '../mojo/public/tools/bindings/mojom_bindings_generator.gypi' ],
1012           'export_dependent_settings': [
1013             '../mojo/mojo.gyp:mojo_cpp_bindings',
1014           ],
1015         },
1016         {
1017           'target_name': 'content_browsertests',
1018           'type': '<(gtest_target_type)',
1019           'dependencies': [
1020             'content.gyp:content_common',
1021             'content.gyp:content_gpu',
1022             'content.gyp:content_plugin',
1023             'content.gyp:content_renderer',
1024             'content_browser_test_support',
1025             'content_resources.gyp:content_resources',
1026             'content_shell_lib',
1027             'content_shell_pak',
1028             'test_support_content',
1029             'web_ui_test_mojo_bindings',
1030             '../base/base.gyp:test_support_base',
1031             '../gin/gin.gyp:gin',
1032             '../gpu/gpu.gyp:gpu',
1033             '../ipc/ipc.gyp:test_support_ipc',
1034             '../media/media.gyp:media_test_support',
1035             '../media/media.gyp:shared_memory_support',
1036             '../mojo/mojo.gyp:mojo_common_test_support',
1037             '../mojo/mojo.gyp:mojo_cpp_bindings',
1038             '../mojo/mojo.gyp:mojo_environment_chromium',
1039             '../mojo/mojo.gyp:mojo_js_bindings',
1040             '../mojo/mojo.gyp:mojo_service_manager',
1041             '../mojo/mojo.gyp:mojo_system_impl',
1042             '../net/net.gyp:net_test_support',
1043             '../ppapi/ppapi_internal.gyp:ppapi_host',
1044             '../ppapi/ppapi_internal.gyp:ppapi_ipc',
1045             '../ppapi/ppapi_internal.gyp:ppapi_proxy',
1046             '../ppapi/ppapi_internal.gyp:ppapi_shared',
1047             '../ppapi/ppapi_internal.gyp:ppapi_tests',
1048             '../ppapi/ppapi_internal.gyp:ppapi_unittest_shared',
1049             '../testing/gmock.gyp:gmock',
1050             '../testing/gtest.gyp:gtest',
1051             '../third_party/WebKit/public/blink.gyp:blink',
1052             '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
1053             '../third_party/mesa/mesa.gyp:osmesa',
1054             '../ui/accessibility/accessibility.gyp:accessibility',
1055             '../ui/base/ui_base.gyp:ui_base',
1056             '../ui/gfx/gfx.gyp:gfx',
1057             '../ui/gfx/gfx.gyp:gfx_geometry',
1058             '../ui/gl/gl.gyp:gl',
1059             '../ui/resources/ui_resources.gyp:ui_resources',
1060             '../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs',
1061             '../ui/snapshot/snapshot.gyp:snapshot',
1062             '../webkit/child/webkit_child.gyp:webkit_child',
1063             '../ui/accessibility/accessibility.gyp:ax_gen',
1064           ],
1065           'include_dirs': [
1066             '..',
1067             '<(SHARED_INTERMEDIATE_DIR)',  # Needed by encrypted_media_browsertest.cc
1068           ],
1069           'includes': [
1070             'browser/gpu/test_support_gpu.gypi',
1071           ],
1072           'defines': [
1073             'HAS_OUT_OF_PROC_TEST_RUNNER',
1074           ],
1075           'sources': [
1076             'app/mojo/mojo_browsertest.cc',
1077             'browser/accessibility/accessibility_mode_browsertest.cc',
1078             'browser/accessibility/accessibility_win_browsertest.cc',
1079             'browser/accessibility/android_hit_testing_browsertest.cc',
1080             'browser/accessibility/cross_platform_accessibility_browsertest.cc',
1081             'browser/accessibility/dump_accessibility_tree_browsertest.cc',
1082             'browser/compositor/image_transport_factory_browsertest.cc',
1083             'browser/bookmarklet_browsertest.cc',
1084             'browser/child_process_security_policy_browsertest.cc',
1085             'browser/cross_site_transfer_browsertest.cc',
1086             'browser/database_browsertest.cc',
1087             'browser/device_sensors/device_inertial_sensor_browsertest.cc',
1088             'browser/devtools/renderer_overrides_handler_browsertest.cc',
1089             'browser/dom_storage/dom_storage_browsertest.cc',
1090             'browser/download/download_browsertest.cc',
1091             'browser/download/drag_download_file_browsertest.cc',
1092             'browser/download/mhtml_generation_browsertest.cc',
1093             'browser/download/save_package_browsertest.cc',
1094             'browser/fileapi/file_system_browsertest.cc',
1095             'browser/frame_host/frame_tree_browsertest.cc',
1096             'browser/frame_host/render_frame_host_manager_browsertest.cc',
1097             'browser/frame_host/navigation_controller_impl_browsertest.cc',
1098             'browser/gpu/compositor_util_browsertest.cc',
1099             'browser/gpu/gpu_ipc_browsertests.cc',
1100             'browser/indexed_db/indexed_db_browsertest.cc',
1101             'browser/loader/resource_dispatcher_host_browsertest.cc',
1102             'browser/media/encrypted_media_browsertest.cc',
1103             'browser/media/media_browsertest.cc',
1104             'browser/media/media_browsertest.h',
1105             'browser/media/media_canplaytype_browsertest.cc',
1106             'browser/media/media_source_browsertest.cc',
1107             'browser/plugin_data_remover_impl_browsertest.cc',
1108             'browser/plugin_browsertest.cc',
1109             'browser/plugin_service_impl_browsertest.cc',
1110             'browser/renderer_host/input/touch_action_browsertest.cc',
1111             'browser/renderer_host/input/touch_input_browsertest.cc',
1112             'browser/renderer_host/render_process_host_browsertest.cc',
1113             'browser/renderer_host/render_view_host_browsertest.cc',
1114             'browser/renderer_host/render_widget_host_browsertest.cc',
1115             'browser/renderer_host/render_widget_host_view_browsertest.cc',
1116             'browser/security_exploit_browsertest.cc',
1117             'browser/service_worker/service_worker_browsertest.cc',
1118             'browser/session_history_browsertest.cc',
1119             'browser/site_per_process_browsertest.cc',
1120             'browser/speech/speech_recognition_browsertest.cc',
1121             'browser/tracing/tracing_controller_browsertest.cc',
1122             'browser/web_contents/opened_by_dom_browsertest.cc',
1123             'browser/web_contents/touch_editable_impl_aura_browsertest.cc',
1124             'browser/web_contents/web_contents_impl_browsertest.cc',
1125             'browser/web_contents/web_contents_view_aura_browsertest.cc',
1126             'browser/webkit_browsertest.cc',
1127             'browser/webui/web_ui_mojo_browsertest.cc',
1128             'browser/worker_host/test/worker_browsertest.cc',
1129             'child/site_isolation_policy_browsertest.cc',
1130             'renderer/accessibility/renderer_accessibility_browsertest.cc',
1131             'renderer/browser_plugin/browser_plugin_browsertest.cc',
1132             'renderer/browser_plugin/browser_plugin_browsertest.h',
1133             'renderer/browser_plugin/mock_browser_plugin.cc',
1134             'renderer/browser_plugin/mock_browser_plugin.h',
1135             'renderer/browser_plugin/mock_browser_plugin_manager.cc',
1136             'renderer/browser_plugin/mock_browser_plugin_manager.h',
1137             'renderer/browser_render_view_browsertest.cc',
1138             'renderer/dom_serializer_browsertest.cc',
1139             'renderer/gin_browsertest.cc',
1140             'renderer/mouse_lock_dispatcher_browsertest.cc',
1141             'renderer/pepper/fake_pepper_plugin_instance.cc',
1142             'renderer/pepper/mock_renderer_ppapi_host.cc',
1143             'renderer/pepper/pepper_device_enumeration_host_helper_unittest.cc',
1144             'renderer/pepper/pepper_file_chooser_host_unittest.cc',
1145             'renderer/pepper/pepper_graphics_2d_host_unittest.cc',
1146             'renderer/pepper/pepper_url_request_unittest.cc',
1147             'renderer/render_thread_impl_browsertest.cc',
1148             'renderer/render_view_browsertest.cc',
1149             'renderer/render_view_browsertest_mac.mm',
1150             'renderer/render_widget_browsertest.cc',
1151             'renderer/resource_fetcher_browsertest.cc',
1152             'renderer/savable_resources_browsertest.cc',
1153             'test/accessibility_browser_test_utils.cc',
1154             'test/accessibility_browser_test_utils.h',
1155             'test/content_browser_test_test.cc',
1156             'test/ppapi/ppapi_browsertest.cc',
1157             'test/ppapi/ppapi_test.cc',
1158             'test/ppapi/ppapi_test.h',
1159             'test/webui_resource_browsertest.cc',
1160           ],
1161           'conditions': [
1162             ['chromeos==0', {
1163               'sources!': [
1164                 'browser/web_contents/touch_editable_impl_aura_browsertest.cc',
1165               ],
1166             }],
1167             ['OS=="win"', {
1168               'resource_include_dirs': [
1169                 '<(SHARED_INTERMEDIATE_DIR)/webkit',
1170               ],
1171               'sources': [
1172                 'shell/app/resource.h',
1173                 'shell/app/shell.rc',
1174                 # TODO:  It would be nice to have these pulled in
1175                 # automatically from direct_dependent_settings in
1176                 # their various targets (net.gyp:net_resources, etc.),
1177                 # but that causes errors in other targets when
1178                 # resulting .res files get referenced multiple times.
1179                 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc',
1180                 '<(SHARED_INTERMEDIATE_DIR)/webkit/blink_resources.rc',
1181                 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.rc',
1182               ],
1183               'dependencies': [
1184                 '<(DEPTH)/net/net.gyp:net_resources',
1185                 '<(DEPTH)/third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
1186                 '<(DEPTH)/third_party/isimpledom/isimpledom.gyp:isimpledom',
1187                 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_strings',
1188                 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_resources',
1189               ],
1190               'configurations': {
1191                 'Debug_Base': {
1192                   'msvs_settings': {
1193                     'VCLinkerTool': {
1194                       'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
1195                     },
1196                   },
1197                 },
1198               },
1199               # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1200               'msvs_disabled_warnings': [ 4267, ],
1201             }],
1202             ['OS=="win" and win_use_allocator_shim==1', {
1203               'dependencies': [
1204                 '../base/allocator/allocator.gyp:allocator',
1205               ],
1206             }],
1207             ['OS=="linux"', {
1208               'sources!': [
1209                 'browser/accessibility/dump_accessibility_tree_browsertest.cc',
1210               ],
1211             }],
1212             ['OS!="android"', {
1213               'sources!': [
1214                 'browser/accessibility/android_hit_testing_browsertest.cc',
1215               ]
1216             }],
1217             ['OS=="android"', {
1218               'sources': [
1219                 'shell/android/browsertests_apk/content_browser_tests_android.cc',
1220               ],
1221               'dependencies': [
1222                 'content_shell_jni_headers',
1223                 'content_shell_lib',
1224                 '../testing/android/native_test.gyp:native_test_util',
1225               ],
1226             }],
1227             ['OS=="mac"', {
1228               'dependencies': [
1229                 'content_shell',  # Needed for Content Shell.app's Helper.
1230               ],
1231               'sources': [
1232                 'renderer/external_popup_menu_browsertest.cc',
1233               ],
1234             }],
1235             ['use_aura==1 and OS!="win"', {
1236               'sources!': [
1237                 'browser/plugin_browsertest.cc',
1238               ],
1239             }],
1240             ['use_aura==1 or toolkit_views==1', {
1241               'dependencies': [
1242                 '../ui/events/events.gyp:events_test_support',
1243               ],
1244             }],
1245             ['use_aura!=1 and OS!="mac"', {
1246               'sources/': [
1247                 ['exclude', '^browser/compositor/'],
1248               ],
1249             }],
1250             ['OS!="android" and OS!="ios" and OS!="linux"', {
1251               # npapi test plugin doesn't build on android or ios
1252               'dependencies': [
1253                 # Runtime dependencies
1254                 'copy_npapi_test_plugin',
1255               ],
1256             }],
1257             ['enable_webrtc==1', {
1258               'sources': [
1259                 'browser/media/webrtc_browsertest.cc',
1260                 'browser/media/webrtc_getusermedia_browsertest.cc',
1261                 'browser/media/webrtc_internals_browsertest.cc',
1262                 'test/webrtc_content_browsertest_base.cc',
1263                 'test/webrtc_content_browsertest_base.h',
1264               ],
1265               'dependencies': [
1266                 '../testing/perf/perf_test.gyp:perf_test',
1267               ],
1268             }],
1269             ['enable_plugins==0', {
1270               'sources/': [
1271                 ['exclude', '^renderer/pepper/'],
1272               ],
1273               'sources!': [
1274                 'browser/plugin_service_impl_browsertest.cc',
1275                 'browser/plugin_data_remover_impl_browsertest.cc',
1276                 'test/ppapi/ppapi_browsertest.cc',
1277                 'test/ppapi/ppapi_test.cc',
1278                 'test/ppapi/ppapi_test.h',
1279               ],
1280               'dependencies!': [
1281                 '../ppapi/ppapi_internal.gyp:ppapi_tests',
1282               ]
1283             }],
1284             ['input_speech==0', {
1285               'sources/': [
1286                 ['exclude', '^browser/speech/'],
1287               ]
1288             }],
1289             ['branding=="Chrome"', {
1290               'sources!': [
1291                 # These tests depend on single process mode, which is disabled
1292                 # in official builds.
1293     'renderer/browser_render_view_browsertest.cc',
1294                 'renderer/dom_serializer_browsertest.cc',
1295                 'renderer/resource_fetcher_browsertest.cc',
1296                 'renderer/savable_resources_browsertest.cc',
1297               ],
1298             }],
1299           ],
1300         },
1301         {
1302           'target_name': 'content_gl_tests',
1303           'type': '<(gtest_target_type)',
1304           'dependencies': [
1305             'content.gyp:content_common',
1306             'test_support_content',
1307             '../base/base.gyp:test_support_base',
1308             '../gpu/gpu.gyp:command_buffer_common',
1309             '../testing/gtest.gyp:gtest',
1310             '../third_party/WebKit/public/blink.gyp:blink',
1311             '../ui/base/ui_base.gyp:ui_base',
1312             '../v8/tools/gyp/v8.gyp:v8',
1313             '../ui/gfx/gfx.gyp:gfx',
1314             '../ui/gfx/gfx.gyp:gfx_geometry',
1315             '../ui/gl/gl.gyp:gl',
1316             # The following dependency provides the missing symbol
1317             # HeapProfilerStart in Linux component builds.
1318             '../webkit/child/webkit_child.gyp:webkit_child',
1319           ],
1320           'include_dirs': [
1321             '..',
1322           ],
1323           'sources': [
1324             'common/gpu/client/gl_helper_unittest.cc',
1325             'common/gpu/client/gpu_in_process_context_tests.cc',
1326           ],
1327           'conditions': [
1328             ['OS=="android"', {
1329               'dependencies': [
1330                 '../testing/android/native_test.gyp:native_test_native_code',
1331               ],
1332             }],
1333           ],
1334         },
1335         {
1336           'target_name': 'content_gl_benchmark',
1337           'type': '<(gtest_target_type)',
1338           'dependencies': [
1339             'content.gyp:content_common',
1340             'test_support_content',
1341             '../base/base.gyp:test_support_base',
1342             '../testing/gtest.gyp:gtest',
1343             '../third_party/WebKit/public/blink.gyp:blink',
1344             '../ui/base/ui_base.gyp:ui_base',
1345             '../ui/gfx/gfx.gyp:gfx',
1346             '../ui/gfx/gfx.gyp:gfx_geometry',
1347             '../ui/gl/gl.gyp:gl',
1348             # The following two dependencies provide the missing
1349             # symbol HeapProfilerStart in Linux component builds.
1350             '../webkit/child/webkit_child.gyp:webkit_child',
1351           ],
1352           'include_dirs': [
1353             '..',
1354           ],
1355           'sources': [
1356             'common/gpu/client/gl_helper_benchmark.cc',
1357           ],
1358         },
1359       ],
1360     }],
1361     ['chromeos==1 or OS=="win" or OS=="android"', {
1362       'targets': [
1363           {
1364             'target_name': 'video_decode_accelerator_unittest',
1365             'type': '<(gtest_target_type)',
1366             'dependencies': [
1367               '../base/base.gyp:base',
1368               '../media/media.gyp:media',
1369               '../testing/gtest.gyp:gtest',
1370               '../ui/base/ui_base.gyp:ui_base',
1371               '../ui/gfx/gfx.gyp:gfx',
1372               '../ui/gfx/gfx.gyp:gfx_geometry',
1373               '../ui/gl/gl.gyp:gl',
1374               'content.gyp:content',
1375             ],
1376             'include_dirs': [
1377               '<(DEPTH)/third_party/khronos',
1378             ],
1379             'sources': [
1380               'common/gpu/media/android_video_decode_accelerator_unittest.cc',
1381               'common/gpu/media/rendering_helper.h',
1382               'common/gpu/media/rendering_helper.cc',
1383               'common/gpu/media/video_accelerator_unittest_helpers.h',
1384               'common/gpu/media/video_decode_accelerator_unittest.cc',
1385             ],
1386             'conditions': [
1387               ['OS=="android"', {
1388                 'sources/': [
1389                   ['exclude', '^common/gpu/media/rendering_helper.h'],
1390                   ['exclude', '^common/gpu/media/rendering_helper.cc'],
1391                   ['exclude', '^common/gpu/media/video_decode_accelerator_unittest.cc'],
1392                 ],
1393                 'dependencies': [
1394                   '../media/media.gyp:player_android',
1395                   '../testing/gmock.gyp:gmock',
1396                   '../testing/android/native_test.gyp:native_test_native_code',
1397                   '../gpu/gpu.gyp:gpu_unittest_utils',
1398                 ],
1399               }, { # OS!="android"
1400                 'sources/': [
1401                   ['exclude', '^common/gpu/media/android_video_decode_accelerator_unittest.cc'],
1402                 ],
1403               }],
1404               ['OS=="win"', {
1405                 'dependencies': [
1406                   '<(angle_path)/src/build_angle.gyp:libEGL',
1407                   '<(angle_path)/src/build_angle.gyp:libGLESv2',
1408                 ],
1409               }],
1410               ['(OS=="win" and win_use_allocator_shim==1) or '
1411                '(os_posix == 1 and OS != "android" and '
1412                ' use_allocator!="none")', {
1413                 'dependencies': [
1414                   '../base/allocator/allocator.gyp:allocator',
1415                 ],
1416               }],
1417               ['target_arch != "arm" and (OS=="linux" or chromeos == 1)', {
1418                 'include_dirs': [
1419                   '<(DEPTH)/third_party/libva',
1420                 ],
1421               }],
1422               ['use_x11==1', {
1423                 'dependencies': [
1424                   '../build/linux/system.gyp:x11',  # Used by rendering_helper.cc
1425                   '../ui/gfx/x/gfx_x11.gyp:gfx_x11',
1426                 ],
1427               }],
1428             ],
1429             # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1430             'msvs_disabled_warnings': [ 4267, ],
1431           },
1432         ]
1433     }],
1434     ['chromeos==1 and use_x11 == 1 and target_arch != "arm"', {
1435       'targets': [
1436           {
1437             'target_name': 'vaapi_h264_decoder_unittest',
1438             'type': '<(gtest_target_type)',
1439             'dependencies': [
1440               'content.gyp:content_common',
1441               '../base/base.gyp:base',
1442               '../build/linux/system.gyp:x11',
1443               '../media/media.gyp:media',
1444               '../testing/gtest.gyp:gtest',
1445               '../third_party/libyuv/libyuv.gyp:libyuv',
1446               '../ui/gfx/gfx.gyp:gfx_geometry',
1447             ],
1448             'sources': [
1449               'common/gpu/media/vaapi_h264_decoder_unittest.cc',
1450             ],
1451             'include_dirs': [
1452               '<(DEPTH)/third_party/libva',
1453             ],
1454           },
1455         ]
1456     }],
1457     ['chromeos==1 and target_arch == "arm"', {
1458       'targets': [
1459         {
1460           'target_name': 'video_encode_accelerator_unittest',
1461           'type': 'executable',
1462           'dependencies': [
1463             '../base/base.gyp:base',
1464             '../media/media.gyp:media',
1465             '../media/media.gyp:media_test_support',
1466             '../testing/gtest.gyp:gtest',
1467             '../ui/base/ui_base.gyp:ui_base',
1468             '../ui/gfx/gfx.gyp:gfx',
1469             '../ui/gfx/gfx.gyp:gfx_geometry',
1470             '../ui/gl/gl.gyp:gl',
1471             'content.gyp:content',
1472           ],
1473           'sources': [
1474             'common/gpu/media/video_accelerator_unittest_helpers.h',
1475             'common/gpu/media/video_encode_accelerator_unittest.cc',
1476           ],
1477         },
1478       ]
1479     }],
1480     ['OS == "android"', {
1481       'targets': [
1482         {
1483           'target_name': 'content_gl_tests_apk',
1484           'type': 'none',
1485           'dependencies': [
1486             'content_gl_tests',
1487             'content_java_test_support',
1488           ],
1489           'variables': {
1490             'test_suite_name': 'content_gl_tests',
1491           },
1492           'includes': [
1493             '../build/apk_test.gypi',
1494           ],
1495         },
1496         {
1497           'target_name': 'content_unittests_apk',
1498           'type': 'none',
1499           'dependencies': [
1500             'content.gyp:content_java',
1501             'content_unittests',
1502           ],
1503           'variables': {
1504             'test_suite_name': 'content_unittests',
1505           },
1506           'includes': [ '../build/apk_test.gypi' ],
1507         },
1508         {
1509           'target_name': 'content_browsertests_apk',
1510           'type': 'none',
1511           'dependencies': [
1512             'content.gyp:content_icudata',
1513             'content.gyp:content_java',
1514             'content_browsertests',
1515             'content_java_test_support',
1516             'content_shell_java',
1517           ],
1518           'variables': {
1519             'apk_name': 'content_browsertests',
1520             'java_in_dir': 'shell/android/browsertests_apk',
1521             'resource_dir': 'shell/android/browsertests_apk/res',
1522             'native_lib_target': 'libcontent_browsertests',
1523             'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'],
1524             'asset_location': '<(PRODUCT_DIR)/content_shell/assets',
1525             'conditions': [
1526               ['icu_use_data_file_flag==1', {
1527                 'additional_input_paths': [
1528                   '<(PRODUCT_DIR)/icudtl.dat',
1529                 ],
1530               }],
1531             ],
1532           },
1533           'includes': [ '../build/java_apk.gypi' ],
1534         },
1535         {
1536           'target_name': 'content_perftests_apk',
1537           'type': 'none',
1538           'dependencies': [
1539             'content.gyp:content_java',
1540             'content_perftests',
1541           ],
1542           'variables': {
1543             'test_suite_name': 'content_perftests',
1544           },
1545           'includes': [ '../build/apk_test.gypi' ],
1546         },
1547         {
1548           'target_name': 'chromium_linker_test_apk',
1549           'type': 'none',
1550           'conditions': [
1551             ['target_arch != "x64" and target_arch != "arm64"', {
1552               'dependencies': [
1553                 'chromium_android_linker_test',
1554                 'content.gyp:content_icudata',
1555                 'content.gyp:content_java',
1556                 'content_shell_java',
1557               ],
1558               'variables': {
1559                 'apk_name': 'ChromiumLinkerTest',
1560                 'java_in_dir': 'shell/android/linker_test_apk',
1561                 'resource_dir': 'shell/android/linker_test_apk/res',
1562                 'native_lib_target': 'libchromium_android_linker_test',
1563                 'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'],
1564                 'asset_location': '<(PRODUCT_DIR)/content_shell/assets',
1565                 'use_chromium_linker': '1',
1566                 'enable_chromium_linker_tests': '1',
1567                 'conditions': [
1568                   ['icu_use_data_file_flag==1', {
1569                     'additional_input_paths': [
1570                       '<(PRODUCT_DIR)/icudtl.dat',
1571                     ],
1572                   }],
1573                 ],
1574               },
1575               'includes': [ '../build/java_apk.gypi' ],
1576             },
1577            ],
1578           ],
1579         },
1580         {
1581           'target_name': 'chromium_android_linker_test',
1582           'type': 'shared_library',
1583           'defines!': ['CONTENT_IMPLEMENTATION'],
1584           'dependencies': [
1585             'chromium_android_linker_test_jni_headers',
1586             'content_shell_lib',
1587             # Required to include "content/public/browser/android/compositor.h"
1588             # in chromium_linker_test_android.cc :-(
1589             '../skia/skia.gyp:skia',
1590           ],
1591           'sources': [
1592             'shell/android/linker_test_apk/chromium_linker_test_android.cc',
1593             'shell/android/linker_test_apk/chromium_linker_test_linker_tests.cc',
1594           ],
1595         },
1596         {
1597           'target_name': 'chromium_android_linker_test_jni_headers',
1598           'type': 'none',
1599           'sources': [
1600             'shell/android/linker_test_apk/src/org/chromium/chromium_linker_test_apk/LinkerTests.java',
1601           ],
1602           'variables': {
1603             'jni_gen_package': 'content/shell',
1604           },
1605           'includes': [ '../build/jni_generator.gypi' ],
1606         },
1607         {
1608           'target_name': 'video_decode_accelerator_unittest_apk',
1609           'type': 'none',
1610           'dependencies': [
1611             'video_decode_accelerator_unittest',
1612           ],
1613           'variables': {
1614             'test_suite_name': 'video_decode_accelerator_unittest',
1615           },
1616           'includes': [ '../build/apk_test.gypi' ],
1617         },
1618       ],
1619     }],
1620     ['OS == "android"', {
1621       'targets': [
1622         {
1623           'target_name': 'test_support_content_jni_headers',
1624           'type': 'none',
1625           'sources': [
1626             'public/test/android/javatests/src/org/chromium/content/browser/test/NestedSystemMessageHandler.java',
1627           ],
1628           'variables': {
1629             'jni_gen_package': 'content/public/test',
1630           },
1631           'includes': [ '../build/jni_generator.gypi' ],
1632         },
1633         {
1634           'target_name': 'content_java_test_support',
1635           'type': 'none',
1636           'dependencies': [
1637             '../base/base.gyp:base',
1638             '../base/base.gyp:base_java_test_support',
1639             'content.gyp:content_common',
1640             'content.gyp:content_java',
1641           ],
1642           'variables': {
1643             'java_in_dir': '../content/public/test/android/javatests',
1644           },
1645           'includes': [ '../build/java.gypi' ],
1646         },
1647         {
1648           'target_name': 'content_shell_test_apk',
1649           'type': 'none',
1650           'dependencies': [
1651             'content_java_test_support',
1652             'content_shell_apk_java',
1653             'content.gyp:content_java',
1654             '../base/base.gyp:base_java',
1655             '../base/base.gyp:base_javatests',
1656             '../base/base.gyp:base_java_test_support',
1657             '../media/media.gyp:media_java',
1658             '../media/media.gyp:media_test_support',
1659             '../net/net.gyp:net_java',
1660             '../net/net.gyp:net_javatests',
1661           ],
1662           'variables': {
1663             'apk_name': 'ContentShellTest',
1664             'java_in_dir': 'shell/android/javatests',
1665             'resource_dir': 'shell/android/shell_apk/res',
1666             'additional_src_dirs': ['public/android/javatests/',],
1667             'is_test_apk': 1,
1668           },
1669           'includes': [ '../build/java_apk.gypi' ],
1670         },
1671       ],
1672     }],
1673     ['OS!="android" and OS!="ios" and OS!="linux"', {
1674       # npapi test plugin doesn't build on android or ios
1675       'targets': [
1676         {
1677           'target_name': 'npapi_test_plugin',
1678           'type': 'loadable_module',
1679           'variables': {
1680             'chromium_code': 1,
1681           },
1682           'mac_bundle': 1,
1683           'dependencies': [
1684             '<(DEPTH)/base/base.gyp:base',
1685             '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
1686             '<(DEPTH)/third_party/npapi/npapi.gyp:npapi',
1687           ],
1688           'sources': [
1689             'test/plugin/npapi_constants.cc',
1690             'test/plugin/npapi_constants.h',
1691             'test/plugin/npapi_test.cc',
1692             'test/plugin/npapi_test.def',
1693             'test/plugin/npapi_test.rc',
1694             'test/plugin/plugin_arguments_test.cc',
1695             'test/plugin/plugin_arguments_test.h',
1696             'test/plugin/plugin_client.cc',
1697             'test/plugin/plugin_client.h',
1698             'test/plugin/plugin_create_instance_in_paint.cc',
1699             'test/plugin/plugin_create_instance_in_paint.h',
1700             'test/plugin/plugin_delete_plugin_in_deallocate_test.cc',
1701             'test/plugin/plugin_delete_plugin_in_deallocate_test.h',
1702             'test/plugin/plugin_delete_plugin_in_stream_test.cc',
1703             'test/plugin/plugin_delete_plugin_in_stream_test.h',
1704             'test/plugin/plugin_execute_stream_javascript.cc',
1705             'test/plugin/plugin_execute_stream_javascript.h',
1706             'test/plugin/plugin_get_javascript_url_test.cc',
1707             'test/plugin/plugin_get_javascript_url_test.h',
1708             'test/plugin/plugin_get_javascript_url2_test.cc',
1709             'test/plugin/plugin_get_javascript_url2_test.h',
1710             'test/plugin/plugin_geturl_test.cc',
1711             'test/plugin/plugin_geturl_test.h',
1712             'test/plugin/plugin_javascript_open_popup.cc',
1713             'test/plugin/plugin_javascript_open_popup.h',
1714             'test/plugin/plugin_new_fails_test.cc',
1715             'test/plugin/plugin_new_fails_test.h',
1716             'test/plugin/plugin_npobject_identity_test.cc',
1717             'test/plugin/plugin_npobject_identity_test.h',
1718             'test/plugin/plugin_npobject_lifetime_test.cc',
1719             'test/plugin/plugin_npobject_lifetime_test.h',
1720             'test/plugin/plugin_npobject_proxy_test.cc',
1721             'test/plugin/plugin_npobject_proxy_test.h',
1722             'test/plugin/plugin_request_read_test.h',
1723             'test/plugin/plugin_request_read_test.cc',
1724             'test/plugin/plugin_schedule_timer_test.cc',
1725             'test/plugin/plugin_schedule_timer_test.h',
1726             'test/plugin/plugin_setup_test.cc',
1727             'test/plugin/plugin_setup_test.h',
1728             'test/plugin/plugin_test.cc',
1729             'test/plugin/plugin_test.h',
1730             'test/plugin/plugin_test_factory.h',
1731             'test/plugin/plugin_thread_async_call_test.cc',
1732             'test/plugin/plugin_thread_async_call_test.h',
1733             'test/plugin/plugin_windowed_test.cc',
1734             'test/plugin/plugin_windowed_test.h',
1735             'test/plugin/plugin_private_test.cc',
1736             'test/plugin/plugin_private_test.h',
1737             'test/plugin/plugin_test_factory.cc',
1738             'test/plugin/plugin_window_size_test.cc',
1739             'test/plugin/plugin_window_size_test.h',
1740             'test/plugin/plugin_windowless_test.cc',
1741             'test/plugin/plugin_windowless_test.h',
1742             'test/plugin/resource.h',
1743           ],
1744           'include_dirs': [
1745             '../..',
1746           ],
1747           'xcode_settings': {
1748             'INFOPLIST_FILE': '<(DEPTH)/content/test/plugin/Info.plist',
1749           },
1750           'conditions': [
1751             ['OS!="win"', {
1752               'sources!': [
1753                 # TODO(port):  Port these.
1754                 # plugin_npobject_lifetime_test.cc has win32-isms
1755                 #   (HWND, CALLBACK).
1756                 'test/plugin/plugin_npobject_lifetime_test.cc',
1757                  # The window APIs are necessarily platform-specific.
1758                 'test/plugin/plugin_window_size_test.cc',
1759                 'test/plugin/plugin_windowed_test.cc',
1760                  # Seems windows specific.
1761                 'test/plugin/plugin_create_instance_in_paint.cc',
1762                 'test/plugin/plugin_create_instance_in_paint.h',
1763                  # windows-specific resources
1764                 'test/plugin/npapi_test.def',
1765                 'test/plugin/npapi_test.rc',
1766               ],
1767             }],
1768             ['OS=="mac"', {
1769               'product_extension': 'plugin',
1770               'link_settings': {
1771                 'libraries': [
1772                   '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
1773                 ],
1774               },
1775             }],
1776             ['os_posix == 1 and OS != "mac" and (target_arch == "x64" or target_arch == "arm")', {
1777               # Shared libraries need -fPIC on x86-64
1778               'cflags': ['-fPIC']
1779             }],
1780           ],
1781         },
1782         {
1783           'target_name': 'copy_npapi_test_plugin',
1784           'type': 'none',
1785           'dependencies': [
1786             'npapi_test_plugin',
1787           ],
1788           'conditions': [
1789             ['OS=="win"', {
1790               'copies': [
1791                 {
1792                   'destination': '<(PRODUCT_DIR)/plugins',
1793                   'files': ['<(PRODUCT_DIR)/npapi_test_plugin.dll'],
1794                 },
1795               ],
1796             }],
1797             ['OS=="mac"', {
1798               'copies': [
1799                 {
1800                   'destination': '<(PRODUCT_DIR)/plugins/',
1801                   'files': ['<(PRODUCT_DIR)/npapi_test_plugin.plugin'],
1802                 },
1803               ]
1804             }],
1805             ['os_posix == 1 and OS != "mac"', {
1806               'copies': [
1807                 {
1808                   'destination': '<(PRODUCT_DIR)/plugins',
1809                   'files': ['<(PRODUCT_DIR)/libnpapi_test_plugin.so'],
1810                 },
1811               ],
1812             }],
1813           ],
1814         },
1815       ],
1816     }],
1817   ],