Run mojo apptests up to three attempts on failure.
[chromium-blink-merge.git] / content / content_tests.gypi
blob7fa0a89e0ca5d8d04525ef243e1d171da736ce39
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   'variables': {
7     'layouttest_support_content_sources': [
8       'public/test/layouttest_support.h',
9       'public/test/nested_message_pump_android.cc',
10       'public/test/nested_message_pump_android.h',
11       'test/layouttest_support.cc',
12     ],
13     'test_support_content_sources': [
14       # TODO(phajdan.jr): All of those files should live in content/test (if
15       # they're only used by content) or content/public/test (if they're used
16       # by other embedders).
17       'browser/download/mock_download_file.cc',
18       'browser/download/mock_download_file.h',
19       'browser/geolocation/fake_access_token_store.cc',
20       'browser/geolocation/fake_access_token_store.h',
21       'browser/geolocation/mock_location_arbitrator.cc',
22       'browser/geolocation/mock_location_arbitrator.h',
23       'browser/geolocation/mock_location_provider.cc',
24       'browser/geolocation/mock_location_provider.h',
25       'public/test/async_file_test_helper.cc',
26       'public/test/async_file_test_helper.h',
27       'public/test/browser_test.h',
28       'public/test/browser_test_base.cc',
29       'public/test/browser_test_base.h',
30       'public/test/browser_test_utils.cc',
31       'public/test/browser_test_utils.h',
32       'public/test/content_test_suite_base.cc',
33       'public/test/content_test_suite_base.h',
34       'public/test/download_test_observer.cc',
35       'public/test/download_test_observer.h',
36       'public/test/fake_speech_recognition_manager.cc',
37       'public/test/fake_speech_recognition_manager.h',
38       'public/test/frame_load_waiter.cc',
39       'public/test/frame_load_waiter.h',
40       'public/test/javascript_test_observer.cc',
41       'public/test/javascript_test_observer.h',
42       'public/test/mock_blob_url_request_context.cc',
43       'public/test/mock_blob_url_request_context.h',
44       'public/test/mock_download_item.cc',
45       'public/test/mock_download_item.h',
46       'public/test/mock_download_manager.cc',
47       'public/test/mock_download_manager.h',
48       'public/test/mock_notification_observer.cc',
49       'public/test/mock_notification_observer.h',
50       'public/test/mock_render_process_host.cc',
51       'public/test/mock_render_process_host.h',
52       'public/test/mock_render_thread.cc',
53       'public/test/mock_render_thread.h',
54       'public/test/mock_resource_context.cc',
55       'public/test/mock_resource_context.h',
56       'public/test/mock_special_storage_policy.cc',
57       'public/test/mock_special_storage_policy.h',
58       'public/test/mock_storage_client.cc',
59       'public/test/mock_storage_client.h',
60       'public/test/ppapi_test_utils.cc',
61       'public/test/ppapi_test_utils.h',
62       'public/test/render_view_test.cc',
63       'public/test/render_view_test.h',
64       'public/test/render_widget_test.cc',
65       'public/test/render_widget_test.h',
66       'public/test/sandbox_file_system_test_helper.cc',
67       'public/test/sandbox_file_system_test_helper.h',
68       'public/test/test_browser_context.cc',
69       'public/test/test_browser_context.h',
70       'public/test/test_browser_thread.cc',
71       'public/test/test_browser_thread.h',
72       'public/test/test_browser_thread_bundle.cc',
73       'public/test/test_browser_thread_bundle.h',
74       'public/test/test_content_client_initializer.cc',
75       'public/test/test_content_client_initializer.h',
76       'public/test/test_file_error_injector.cc',
77       'public/test/test_file_error_injector.h',
78       'public/test/test_file_system_backend.cc',
79       'public/test/test_file_system_backend.h',
80       'public/test/test_file_system_context.cc',
81       'public/test/test_file_system_context.h',
82       'public/test/test_file_system_options.cc',
83       'public/test/test_file_system_options.h',
84       'public/test/test_launcher.cc',
85       'public/test/test_launcher.h',
86       'public/test/test_mojo_app.cc',
87       'public/test/test_mojo_app.h',
88       'public/test/test_navigation_observer.cc',
89       'public/test/test_navigation_observer.h',
90       'public/test/test_notification_tracker.cc',
91       'public/test/test_notification_tracker.h',
92       'public/test/test_renderer_host.cc',
93       'public/test/test_renderer_host.h',
94       'public/test/test_synchronous_compositor_android.cc',
95       'public/test/test_synchronous_compositor_android.h',
96       'public/test/test_utils.cc',
97       'public/test/test_utils.h',
98       'public/test/test_web_contents_factory.h',
99       'public/test/test_web_ui.cc',
100       'public/test/test_web_ui.h',
101       'public/test/unittest_test_suite.cc',
102       'public/test/unittest_test_suite.h',
103       'public/test/web_contents_tester.cc',
104       'public/test/web_contents_tester.h',
105       'test/appcache_test_helper.cc',
106       'test/appcache_test_helper.h',
107       'test/blink_test_environment.cc',
108       'test/blink_test_environment.h',
109       'test/browser_side_navigation_test_utils.cc',
110       'test/browser_side_navigation_test_utils.h',
111       'test/content_browser_sanity_checker.cc',
112       'test/content_browser_sanity_checker.h',
113       'test/content_browser_test_utils_internal.cc',
114       'test/content_browser_test_utils_internal.h',
115       'test/content_test_suite.cc',
116       'test/content_test_suite.h',
117       'test/fake_compositor_dependencies.cc',
118       'test/fake_compositor_dependencies.h',
119       'test/fake_plugin_service.cc',
120       'test/fake_plugin_service.h',
121       'test/fake_renderer_scheduler.cc',
122       'test/fake_renderer_scheduler.h',
123       'test/mock_google_streaming_server.cc',
124       'test/mock_google_streaming_server.h',
125       'test/mock_keyboard.cc',
126       'test/mock_keyboard.h',
127       'test/mock_keyboard_driver_win.cc',
128       'test/mock_keyboard_driver_win.h',
129       'test/mock_render_process.cc',
130       'test/mock_render_process.h',
131       'test/mock_webblob_registry_impl.cc',
132       'test/mock_webblob_registry_impl.h',
133       'test/mock_webclipboard_impl.cc',
134       'test/mock_webclipboard_impl.h',
135       'test/mock_webframeclient.h',
136       'test/mock_weburlloader.cc',
137       'test/mock_weburlloader.h',
138       'test/net/url_request_abort_on_end_job.cc',
139       'test/net/url_request_abort_on_end_job.h',
140       'test/ppapi_unittest.cc',
141       'test/ppapi_unittest.h',
142       'test/render_thread_impl_browser_test_ipc_helper.cc',
143       'test/render_thread_impl_browser_test_ipc_helper.h',
144       'test/test_blink_web_unit_test_support.cc',
145       'test/test_blink_web_unit_test_support.h',
146       'test/test_content_browser_client.cc',
147       'test/test_content_browser_client.h',
148       'test/test_content_client.cc',
149       'test/test_content_client.h',
150       'test/test_frame_navigation_observer.cc',
151       'test/test_frame_navigation_observer.h',
152       'test/test_navigation_url_loader.cc',
153       'test/test_navigation_url_loader.h',
154       'test/test_navigation_url_loader_factory.cc',
155       'test/test_navigation_url_loader_factory.h',
156       'test/test_render_frame_host.cc',
157       'test/test_render_frame_host.h',
158       'test/test_render_frame_host_factory.cc',
159       'test/test_render_frame_host_factory.h',
160       'test/test_render_view_host.cc',
161       'test/test_render_view_host.h',
162       'test/test_render_view_host_factory.cc',
163       'test/test_render_view_host_factory.h',
164       'test/test_web_contents.cc',
165       'test/test_web_contents.h',
166       'test/test_web_contents_factory.cc',
167       'test/web_contents_observer_sanity_checker.cc',
168       'test/web_contents_observer_sanity_checker.h',
169       'test/web_gesture_curve_mock.cc',
170       'test/web_gesture_curve_mock.h',
171       'test/web_layer_tree_view_impl_for_testing.cc',
172       'test/web_layer_tree_view_impl_for_testing.h',
173       'test/weburl_loader_mock.cc',
174       'test/weburl_loader_mock.h',
175       'test/weburl_loader_mock_factory.cc',
176       'test/weburl_loader_mock_factory.h',
177     ],
178     'content_browsertests_sources': [
179       'app/mojo/mojo_browsertest.cc',
180       'browser/accessibility/accessibility_event_recorder.cc',
181       'browser/accessibility/accessibility_event_recorder.h',
182       'browser/accessibility/accessibility_event_recorder_mac.mm',
183       'browser/accessibility/accessibility_event_recorder_win.cc',
184       'browser/accessibility/accessibility_ipc_error_browsertest.cc',
185       'browser/accessibility/accessibility_mode_browsertest.cc',
186       'browser/accessibility/cross_platform_accessibility_browsertest.cc',
187       'browser/accessibility/dump_accessibility_browsertest_base.cc',
188       'browser/accessibility/dump_accessibility_browsertest_base.h',
189       'browser/accessibility/dump_accessibility_events_browsertest.cc',
190       'browser/accessibility/dump_accessibility_tree_browsertest.cc',
191       'browser/accessibility/site_per_process_accessibility_browsertest.cc',
192       'browser/accessibility/snapshot_ax_tree_browsertest.cc',
193       'browser/battery_status/battery_monitor_impl_browsertest.cc',
194       'browser/battery_status/battery_monitor_integration_browsertest.cc',
195       'browser/bookmarklet_browsertest.cc',
196       'browser/browser_side_navigation_browsertest.cc',
197       'browser/child_process_launcher_browsertest.cc',
198       'browser/child_process_security_policy_browsertest.cc',
199       'browser/compositor/image_transport_factory_browsertest.cc',
200       'browser/cross_site_transfer_browsertest.cc',
201       'browser/database_browsertest.cc',
202       'browser/device_sensors/device_inertial_sensor_browsertest.cc',
203       'browser/devtools/protocol/devtools_protocol_browsertest.cc',
204       'browser/devtools/site_per_process_devtools_browsertest.cc',
205       'browser/dom_storage/dom_storage_browsertest.cc',
206       'browser/download/download_browsertest.cc',
207       'browser/download/drag_download_file_browsertest.cc',
208       'browser/download/mhtml_generation_browsertest.cc',
209       'browser/download/save_package_browsertest.cc',
210       'browser/fileapi/file_system_browsertest.cc',
211       'browser/frame_host/frame_tree_browsertest.cc',
212       'browser/frame_host/navigation_controller_impl_browsertest.cc',
213       'browser/frame_host/render_frame_host_impl_browsertest.cc',
214       'browser/frame_host/render_frame_host_manager_browsertest.cc',
215       'browser/frame_host/render_widget_host_view_child_frame_browsertest.cc',
216       'browser/gpu/gpu_ipc_browsertests.cc',
217       'browser/host_zoom_map_impl_browsertest.cc',
218       'browser/indexed_db/indexed_db_browsertest.cc',
219       'browser/indexed_db/mock_browsertest_indexed_db_class_factory.cc',
220       'browser/indexed_db/mock_browsertest_indexed_db_class_factory.h',
221       'browser/loader/resource_dispatcher_host_browsertest.cc',
222       'browser/manifest/manifest_browsertest.cc',
223       'browser/media/android/media_session_browsertest.cc',
224       'browser/media/encrypted_media_browsertest.cc',
225       'browser/media/media_browsertest.cc',
226       'browser/media/media_browsertest.h',
227       'browser/media/media_canplaytype_browsertest.cc',
228       'browser/media/media_source_browsertest.cc',
229       'browser/message_port_provider_browsertest.cc',
230       'browser/mojo_shell_browsertest.cc',
231       'browser/net_info_browsertest.cc',
232       'browser/renderer_host/input/touch_action_browsertest.cc',
233       'browser/renderer_host/input/touch_input_browsertest.cc',
234       'browser/renderer_host/render_message_filter_browsertest.cc',
235       'browser/renderer_host/render_process_host_browsertest.cc',
236       'browser/renderer_host/render_view_host_browsertest.cc',
237       'browser/renderer_host/render_widget_host_view_browsertest.cc',
238       'browser/screen_orientation/screen_orientation_browsertest.cc',
239       'browser/security_exploit_browsertest.cc',
240       'browser/service_worker/service_worker_browsertest.cc',
241       'browser/session_history_browsertest.cc',
242       'browser/shared_worker/worker_browsertest.cc',
243       'browser/site_per_process_browsertest.cc',
244       'browser/site_per_process_browsertest.h',
245       'browser/tracing/background_tracing_manager_browsertest.cc',
246       'browser/tracing/tracing_controller_browsertest.cc',
247       'browser/web_contents/opened_by_dom_browsertest.cc',
248       'browser/web_contents/touch_editable_impl_aura_browsertest.cc',
249       'browser/web_contents/web_contents_impl_browsertest.cc',
250       'browser/web_contents/web_contents_view_aura_browsertest.cc',
251       'browser/webkit_browsertest.cc',
252       'browser/webui/web_ui_mojo_browsertest.cc',
253       'child/child_thread_impl_browsertest.cc',
254       'child/site_isolation_stats_gatherer_browsertest.cc',
255       'renderer/accessibility/renderer_accessibility_browsertest.cc',
256       'renderer/devtools/v8_sampling_profiler_browsertest.cc',
257       'renderer/gin_browsertest.cc',
258       'renderer/history_controller_browsertest.cc',
259       'renderer/mouse_lock_dispatcher_browsertest.cc',
260       'renderer/render_frame_impl_browsertest.cc',
261       'renderer/render_thread_impl_browsertest.cc',
262       'renderer/render_view_browsertest.cc',
263       'renderer/render_view_browsertest_mac.mm',
264       'renderer/render_widget_browsertest.cc',
265       'renderer/visual_state_browsertest.cc',
266       'test/accessibility_browser_test_utils.cc',
267       'test/accessibility_browser_test_utils.h',
268       'test/browser_test_utils_browsertest.cc',
269       'test/content_browser_test_test.cc',
270       'test/webui_resource_browsertest.cc',
272     ],
273     'content_browsertests_android_sources': [
274       'browser/accessibility/android_granularity_movement_browsertest.cc',
275       'browser/accessibility/android_hit_testing_browsertest.cc',
276       'shell/android/browsertests_apk/content_browser_tests_jni_onload.cc',
277     ],
278     'content_browsertests_webrtc_sources': [
279       'browser/media/webrtc_aecdump_browsertest.cc',
280       'browser/media/webrtc_browsertest.cc',
281       'browser/media/webrtc_getusermedia_browsertest.cc',
282       'browser/media/webrtc_internals_browsertest.cc',
283       'browser/media/webrtc_webcam_browsertest.cc',
284       'test/webrtc_content_browsertest_base.cc',
285       'test/webrtc_content_browsertest_base.h',
286     ],
287     'content_browsertests_plugins_sources': [
288       'renderer/pepper/fake_pepper_plugin_instance.cc',
289       'renderer/pepper/mock_renderer_ppapi_host.cc',
290       'renderer/pepper/pepper_device_enumeration_host_helper_unittest.cc',
291       'renderer/pepper/pepper_file_chooser_host_unittest.cc',
292       'renderer/pepper/pepper_graphics_2d_host_unittest.cc',
293       'renderer/pepper/pepper_url_request_unittest.cc',
294       'renderer/pepper/pepper_webplugin_impl_browsertest.cc',
295       'renderer/pepper/plugin_power_saver_helper_browsertest.cc',
296       'test/ppapi/ppapi_browsertest.cc',
297       'test/ppapi/ppapi_test.cc',
298       'test/ppapi/ppapi_test.h',
299     ],
300     'content_browsertests_speech_sources': [
301       'browser/speech/speech_recognition_browsertest.cc',
302     ],
303     'content_browsertests_unofficial_build_sources': [
304       # These tests depend on single process mode, which is disabled
305       # in official builds.
306       'renderer/browser_render_view_browsertest.cc',
307       'renderer/dom_serializer_browsertest.cc',
308       'renderer/resource_fetcher_browsertest.cc',
309       'renderer/savable_resources_browsertest.cc',
310     ],
311     'content_browsertests_win_sources': [
312       'browser/accessibility/accessibility_win_browsertest.cc',
313     ],
314     'content_unittests_sources': [
315       'browser/accessibility/accessibility_mode_helper_unittest.cc',
316       'browser/accessibility/browser_accessibility_mac_unittest.mm',
317       'browser/accessibility/browser_accessibility_manager_unittest.cc',
318       'browser/accessibility/browser_accessibility_win_unittest.cc',
319       'browser/accessibility/one_shot_accessibility_tree_search_unittest.cc',
320       'browser/appcache/appcache_database_unittest.cc',
321       'browser/appcache/appcache_disk_cache_unittest.cc',
322       'browser/appcache/appcache_group_unittest.cc',
323       'browser/appcache/appcache_host_unittest.cc',
324       'browser/appcache/appcache_manifest_parser_unittest.cc',
325       'browser/appcache/appcache_quota_client_unittest.cc',
326       'browser/appcache/appcache_request_handler_unittest.cc',
327       'browser/appcache/appcache_response_unittest.cc',
328       'browser/appcache/appcache_service_unittest.cc',
329       'browser/appcache/appcache_storage_impl_unittest.cc',
330       'browser/appcache/appcache_storage_unittest.cc',
331       'browser/appcache/appcache_unittest.cc',
332       'browser/appcache/appcache_update_job_unittest.cc',
333       'browser/appcache/appcache_url_request_job_unittest.cc',
334       'browser/appcache/chrome_appcache_service_unittest.cc',
335       'browser/appcache/mock_appcache_policy.cc',
336       'browser/appcache/mock_appcache_policy.h',
337       'browser/appcache/mock_appcache_service.cc',
338       'browser/appcache/mock_appcache_service.h',
339       'browser/appcache/mock_appcache_storage.cc',
340       'browser/appcache/mock_appcache_storage.h',
341       'browser/appcache/mock_appcache_storage_unittest.cc',
342       'browser/background_sync/background_sync_manager_unittest.cc',
343       'browser/background_sync/background_sync_network_observer_unittest.cc',
344       'browser/background_sync/background_sync_power_observer_unittest.cc',
345       'browser/background_sync/background_sync_service_impl_unittest.cc',
346       'browser/browser_io_surface_manager_mac_unittest.cc',
347       'browser/browser_thread_unittest.cc',
348       'browser/browser_url_handler_impl_unittest.cc',
349       'browser/byte_stream_unittest.cc',
350       'browser/cache_storage/cache_storage_blob_to_disk_cache_unittest.cc',
351       'browser/cache_storage/cache_storage_cache_unittest.cc',
352       'browser/cache_storage/cache_storage_manager_unittest.cc',
353       'browser/cache_storage/cache_storage_scheduler_unittest.cc',
354       'browser/child_process_security_policy_unittest.cc',
355       'browser/cocoa/system_hotkey_map_unittest.mm',
356       'browser/compositor/buffer_queue_unittest.cc',
357       'browser/compositor/reflector_impl_unittest.cc',
358       'browser/compositor/software_browser_compositor_output_surface_unittest.cc',
359       'browser/compositor/software_output_device_ozone_unittest.cc',
360       'browser/database_quota_client_unittest.cc',
361       'browser/database_tracker_unittest.cc',
362       'browser/database_util_unittest.cc',
363       'browser/databases_table_unittest.cc',
364       'browser/device_sensors/data_fetcher_shared_memory_base_unittest.cc',
365       'browser/device_sensors/sensor_manager_android_unittest.cc',
366       'browser/device_sensors/sensor_manager_chromeos_unittest.cc',
367       'browser/devtools/devtools_manager_unittest.cc',
368       'browser/devtools/shared_worker_devtools_manager_unittest.cc',
369       'browser/dom_storage/dom_storage_area_unittest.cc',
370       'browser/dom_storage/dom_storage_context_impl_unittest.cc',
371       'browser/dom_storage/dom_storage_database_unittest.cc',
372       'browser/dom_storage/session_storage_database_unittest.cc',
373       'browser/download/base_file_unittest.cc',
374       'browser/download/download_file_unittest.cc',
375       'browser/download/download_item_impl_unittest.cc',
376       'browser/download/download_manager_impl_unittest.cc',
377       'browser/download/file_metadata_unittest_linux.cc',
378       'browser/download/rate_estimator_unittest.cc',
379       'browser/download/save_package_unittest.cc',
380       'browser/fileapi/blob_storage_context_unittest.cc',
381       'browser/fileapi/blob_url_request_job_unittest.cc',
382       'browser/fileapi/copy_or_move_file_validator_unittest.cc',
383       'browser/fileapi/copy_or_move_operation_delegate_unittest.cc',
384       'browser/fileapi/dragged_file_util_unittest.cc',
385       'browser/fileapi/external_mount_points_unittest.cc',
386       'browser/fileapi/file_system_context_unittest.cc',
387       'browser/fileapi/file_system_dir_url_request_job_unittest.cc',
388       'browser/fileapi/file_system_file_stream_reader_unittest.cc',
389       'browser/fileapi/file_system_operation_impl_unittest.cc',
390       'browser/fileapi/file_system_operation_impl_write_unittest.cc',
391       'browser/fileapi/file_system_operation_runner_unittest.cc',
392       'browser/fileapi/file_system_quota_client_unittest.cc',
393       'browser/fileapi/file_system_url_request_job_unittest.cc',
394       'browser/fileapi/file_system_url_unittest.cc',
395       'browser/fileapi/file_system_usage_cache_unittest.cc',
396       'browser/fileapi/file_writer_delegate_unittest.cc',
397       'browser/fileapi/fileapi_message_filter_unittest.cc',
398       'browser/fileapi/isolated_context_unittest.cc',
399       'browser/fileapi/local_file_stream_reader_unittest.cc',
400       'browser/fileapi/local_file_stream_writer_unittest.cc',
401       'browser/fileapi/local_file_util_unittest.cc',
402       'browser/fileapi/mock_file_change_observer.cc',
403       'browser/fileapi/mock_file_change_observer.h',
404       'browser/fileapi/mock_file_update_observer.cc',
405       'browser/fileapi/mock_file_update_observer.h',
406       'browser/fileapi/mock_url_request_delegate.cc',
407       'browser/fileapi/mock_url_request_delegate.h',
408       'browser/fileapi/native_file_util_unittest.cc',
409       'browser/fileapi/obfuscated_file_util_unittest.cc',
410       'browser/fileapi/plugin_private_file_system_backend_unittest.cc',
411       'browser/fileapi/recursive_operation_delegate_unittest.cc',
412       'browser/fileapi/sandbox_database_test_helper.cc',
413       'browser/fileapi/sandbox_database_test_helper.h',
414       'browser/fileapi/sandbox_directory_database_unittest.cc',
415       'browser/fileapi/sandbox_file_system_backend_delegate_unittest.cc',
416       'browser/fileapi/sandbox_file_system_backend_unittest.cc',
417       'browser/fileapi/sandbox_isolated_origin_database_unittest.cc',
418       'browser/fileapi/sandbox_origin_database_unittest.cc',
419       'browser/fileapi/sandbox_prioritized_origin_database_unittest.cc',
420       'browser/fileapi/timed_task_helper_unittest.cc',
421       'browser/fileapi/transient_file_util_unittest.cc',
422       'browser/fileapi/upload_file_system_file_element_reader_unittest.cc',
423       'browser/frame_host/frame_tree_unittest.cc',
424       'browser/frame_host/navigation_controller_impl_unittest.cc',
425       'browser/frame_host/navigation_entry_impl_unittest.cc',
426       'browser/frame_host/navigator_impl_unittest.cc',
427       'browser/frame_host/render_frame_host_manager_unittest.cc',
428       'browser/frame_host/render_widget_host_view_child_frame_unittest.cc',
429       'browser/frame_host/render_widget_host_view_guest_unittest.cc',
430       'browser/gamepad/gamepad_provider_unittest.cc',
431       'browser/gamepad/gamepad_service_unittest.cc',
432       'browser/gamepad/gamepad_test_helpers.cc',
433       'browser/gamepad/gamepad_test_helpers.h',
434       'browser/geofencing/geofencing_manager_unittest.cc',
435       'browser/geofencing/geofencing_service_unittest.cc',
436       'browser/geolocation/geolocation_provider_impl_unittest.cc',
437       'browser/geolocation/location_arbitrator_impl_unittest.cc',
438       'browser/geolocation/network_location_provider_unittest.cc',
439       'browser/geolocation/wifi_data_provider_chromeos_unittest.cc',
440       'browser/geolocation/wifi_data_provider_common_unittest.cc',
441       'browser/geolocation/wifi_data_provider_linux_unittest.cc',
442       'browser/geolocation/wifi_data_provider_win_unittest.cc',
443       'browser/gpu/gpu_data_manager_impl_private_unittest.cc',
444       'browser/gpu/shader_disk_cache_unittest.cc',
445       'browser/host_zoom_map_impl_unittest.cc',
446       'browser/indexed_db/indexed_db_active_blob_registry_unittest.cc',
447       'browser/indexed_db/indexed_db_backing_store_unittest.cc',
448       'browser/indexed_db/indexed_db_cleanup_on_io_error_unittest.cc',
449       'browser/indexed_db/indexed_db_database_unittest.cc',
450       'browser/indexed_db/indexed_db_factory_unittest.cc',
451       'browser/indexed_db/indexed_db_fake_backing_store.cc',
452       'browser/indexed_db/indexed_db_fake_backing_store.h',
453       'browser/indexed_db/indexed_db_leveldb_coding_unittest.cc',
454       'browser/indexed_db/indexed_db_quota_client_unittest.cc',
455       'browser/indexed_db/indexed_db_transaction_unittest.cc',
456       'browser/indexed_db/indexed_db_unittest.cc',
457       'browser/indexed_db/leveldb/leveldb_unittest.cc',
458       'browser/indexed_db/leveldb/mock_leveldb_factory.cc',
459       'browser/indexed_db/leveldb/mock_leveldb_factory.h',
460       'browser/indexed_db/list_set_unittest.cc',
461       'browser/indexed_db/mock_indexed_db_callbacks.cc',
462       'browser/indexed_db/mock_indexed_db_callbacks.h',
463       'browser/indexed_db/mock_indexed_db_database_callbacks.cc',
464       'browser/indexed_db/mock_indexed_db_database_callbacks.h',
465       'browser/indexed_db/mock_indexed_db_factory.cc',
466       'browser/indexed_db/mock_indexed_db_factory.h',
467       'browser/loader/mime_type_resource_handler_unittest.cc',
468       'browser/loader/navigation_url_loader_unittest.cc',
469       'browser/loader/resource_buffer_unittest.cc',
470       'browser/loader/resource_dispatcher_host_unittest.cc',
471       'browser/loader/resource_loader_unittest.cc',
472       'browser/loader/resource_scheduler_unittest.cc',
473       'browser/loader/temporary_file_stream_unittest.cc',
474       'browser/loader/upload_data_stream_builder_unittest.cc',
475       'browser/mach_broker_mac_unittest.cc',
476       'browser/media/audio_stream_monitor_unittest.cc',
477       'browser/media/capture/audio_mirroring_manager_unittest.cc',
478       'browser/media/capture/web_contents_audio_input_stream_unittest.cc',
479       'browser/media/capture/web_contents_video_capture_device_unittest.cc',
480       'browser/media/media_internals_unittest.cc',
481       'browser/media/midi_host_unittest.cc',
482       'browser/media/webrtc_identity_store_unittest.cc',
483       'browser/net/quota_policy_cookie_store_unittest.cc',
484       'browser/notification_service_impl_unittest.cc',
485       'browser/notifications/notification_database_data_unittest.cc',
486       'browser/notifications/notification_database_unittest.cc',
487       'browser/notifications/notification_id_generator_unittest.cc',
488       'browser/notifications/platform_notification_context_unittest.cc',
489       'browser/power_monitor_message_broadcaster_unittest.cc',
490       'browser/power_profiler/power_profiler_service_unittest.cc',
491       'browser/power_usage_monitor_impl_unittest.cc',
492       'browser/presentation/presentation_service_impl_unittest.cc',
493       'browser/presentation/presentation_type_converters_unittest.cc',
494       'browser/quota/mock_quota_manager.cc',
495       'browser/quota/mock_quota_manager.h',
496       'browser/quota/mock_quota_manager_proxy.cc',
497       'browser/quota/mock_quota_manager_proxy.h',
498       'browser/quota/mock_quota_manager_unittest.cc',
499       'browser/quota/quota_backend_impl_unittest.cc',
500       'browser/quota/quota_database_unittest.cc',
501       'browser/quota/quota_manager_unittest.cc',
502       'browser/quota/quota_reservation_manager_unittest.cc',
503       'browser/quota/quota_temporary_storage_evictor_unittest.cc',
504       'browser/quota/storage_monitor_unittest.cc',
505       'browser/quota/usage_tracker_unittest.cc',
506       'browser/renderer_host/begin_frame_observer_proxy_unittest.cc',
507       'browser/renderer_host/clipboard_message_filter_unittest.cc',
508       'browser/renderer_host/input/gesture_event_queue_unittest.cc',
509       'browser/renderer_host/input/input_router_impl_unittest.cc',
510       'browser/renderer_host/input/mock_input_ack_handler.cc',
511       'browser/renderer_host/input/mock_input_ack_handler.h',
512       'browser/renderer_host/input/mock_input_router_client.cc',
513       'browser/renderer_host/input/mock_input_router_client.h',
514       'browser/renderer_host/input/mouse_wheel_rails_filter_unittest_mac.cc',
515       'browser/renderer_host/input/render_widget_host_latency_tracker_unittest.cc',
516       'browser/renderer_host/input/stylus_text_selector_unittest.cc',
517       'browser/renderer_host/input/synthetic_gesture_controller_unittest.cc',
518       'browser/renderer_host/input/tap_suppression_controller_unittest.cc',
519       'browser/renderer_host/input/touch_action_filter_unittest.cc',
520       'browser/renderer_host/input/touch_emulator_unittest.cc',
521       'browser/renderer_host/input/touch_event_queue_unittest.cc',
522       'browser/renderer_host/input/web_input_event_unittest.cc',
523       'browser/renderer_host/input/web_input_event_util_unittest.cc',
524       'browser/renderer_host/media/audio_input_device_manager_unittest.cc',
525       'browser/renderer_host/media/audio_renderer_host_unittest.cc',
526       'browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc',
527       'browser/renderer_host/media/media_stream_manager_unittest.cc',
528       'browser/renderer_host/media/media_stream_ui_proxy_unittest.cc',
529       'browser/renderer_host/media/video_capture_buffer_pool_unittest.cc',
530       'browser/renderer_host/media/video_capture_controller_unittest.cc',
531       'browser/renderer_host/media/video_capture_host_unittest.cc',
532       'browser/renderer_host/media/video_capture_manager_unittest.cc',
533       'browser/renderer_host/render_process_host_unittest.cc',
534       'browser/renderer_host/render_view_host_unittest.cc',
535       'browser/renderer_host/render_widget_host_unittest.cc',
536       'browser/renderer_host/render_widget_host_view_aura_unittest.cc',
537       'browser/renderer_host/render_widget_host_view_base_unittest.cc',
538       'browser/renderer_host/render_widget_host_view_mac_editcommand_helper_unittest.mm',
539       'browser/renderer_host/render_widget_host_view_mac_unittest.mm',
540       'browser/renderer_host/text_input_client_mac_unittest.mm',
541       'browser/renderer_host/web_input_event_aura_unittest.cc',
542       'browser/renderer_host/websocket_dispatcher_host_unittest.cc',
543       'browser/resolve_proxy_msg_helper_unittest.cc',
544       'browser/service_worker/embedded_worker_instance_unittest.cc',
545       'browser/service_worker/embedded_worker_test_helper.cc',
546       'browser/service_worker/embedded_worker_test_helper.h',
547       'browser/service_worker/service_worker_context_request_handler_unittest.cc',
548       'browser/service_worker/service_worker_context_unittest.cc',
549       'browser/service_worker/service_worker_controllee_request_handler_unittest.cc',
550       'browser/service_worker/service_worker_database_unittest.cc',
551       'browser/service_worker/service_worker_disk_cache_migrator_unittest.cc',
552       'browser/service_worker/service_worker_dispatcher_host_unittest.cc',
553       'browser/service_worker/service_worker_handle_unittest.cc',
554       'browser/service_worker/service_worker_job_unittest.cc',
555       'browser/service_worker/service_worker_process_manager_unittest.cc',
556       'browser/service_worker/service_worker_provider_host_unittest.cc',
557       'browser/service_worker/service_worker_registration_unittest.cc',
558       'browser/service_worker/service_worker_request_handler_unittest.cc',
559       'browser/service_worker/service_worker_storage_unittest.cc',
560       'browser/service_worker/service_worker_url_request_job_unittest.cc',
561       'browser/service_worker/service_worker_utils_unittest.cc',
562       'browser/service_worker/service_worker_version_unittest.cc',
563       'browser/service_worker/service_worker_write_to_cache_job_unittest.cc',
564       'browser/shareable_file_reference_unittest.cc',
565       'browser/shared_worker/shared_worker_instance_unittest.cc',
566       'browser/shared_worker/shared_worker_service_impl_unittest.cc',
567       'browser/site_instance_impl_unittest.cc',
568       'browser/startup_task_runner_unittest.cc',
569       'browser/storage_partition_impl_map_unittest.cc',
570       'browser/storage_partition_impl_unittest.cc',
571       'browser/streams/stream_unittest.cc',
572       'browser/streams/stream_url_request_job_unittest.cc',
573       'browser/system_message_window_win_unittest.cc',
574       'browser/tracing/background_tracing_config_unittest.cc',
575       'browser/web_contents/aura/overscroll_navigation_overlay_unittest.cc',
576       'browser/web_contents/aura/overscroll_window_animation_unittest.cc',
577       'browser/web_contents/aura/overscroll_window_delegate_unittest.cc',
578       'browser/web_contents/web_contents_delegate_unittest.cc',
579       'browser/web_contents/web_contents_impl_unittest.cc',
580       'browser/web_contents/web_contents_user_data_unittest.cc',
581       'browser/web_contents/web_contents_view_aura_unittest.cc',
582       'browser/web_contents/web_contents_view_mac_unittest.mm',
583       'browser/web_contents/web_drag_dest_mac_unittest.mm',
584       'browser/web_contents/web_drag_source_mac_unittest.mm',
585       'browser/webui/url_data_manager_backend_unittest.cc',
586       'browser/webui/web_ui_data_source_unittest.cc',
587       'browser/webui/web_ui_message_handler_unittest.cc',
588       'child/background_sync/background_sync_type_converters_unittest.cc',
589       'child/blink_platform_impl_unittest.cc',
590       'child/fileapi/webfilewriter_base_unittest.cc',
591       'child/indexed_db/indexed_db_dispatcher_unittest.cc',
592       'child/indexed_db/webidbcursor_impl_unittest.cc',
593       'child/multipart_response_delegate_unittest.cc',
594       'child/notifications/notification_data_conversions_unittest.cc',
595       'child/power_monitor_broadcast_source_unittest.cc',
596       'child/resource_dispatcher_unittest.cc',
597       'child/service_worker/service_worker_dispatcher_unittest.cc',
598       'child/shared_memory_data_consumer_handle_unittest.cc',
599       'child/shared_memory_received_data_factory_unittest.cc',
600       'child/simple_webmimeregistry_impl_unittest.cc',
601       'child/site_isolation_stats_gatherer_unittest.cc',
602       'child/v8_value_converter_impl_unittest.cc',
603       'child/web_data_consumer_handle_impl_unittest.cc',
604       'child/web_process_memory_dump_impl_unittest.cc',
605       'child/web_url_loader_impl_unittest.cc',
606       'child/worker_task_runner_unittest.cc',
607       'common/android/address_parser_unittest.cc',
608       'common/android/gin_java_bridge_value_unittest.cc',
609       'common/cc_messages_unittest.cc',
610       'common/common_param_traits_unittest.cc',
611       'common/cross_site_document_classifier_unittest.cc',
612       'common/cursors/webcursor_unittest.cc',
613       'common/database_connections_unittest.cc',
614       'common/database_identifier_unittest.cc',
615       'common/discardable_shared_memory_heap_unittest.cc',
616       'common/dom_storage/dom_storage_map_unittest.cc',
617       'common/dwrite_font_platform_win_unittest.cc',
618       'common/fileapi/file_system_util_unittest.cc',
619       'common/gpu/client/gpu_memory_buffer_impl_unittest.cc',
620       'common/gpu/gpu_channel_manager_unittest.cc',
621       'common/gpu/gpu_memory_buffer_factory_unittest.cc',
622       'common/gpu/gpu_memory_manager_unittest.cc',
623       'common/host_discardable_shared_memory_manager_unittest.cc',
624       'common/host_shared_bitmap_manager_unittest.cc',
625       'common/indexed_db/indexed_db_key_unittest.cc',
626       'common/input/gesture_event_stream_validator_unittest.cc',
627       'common/input/input_param_traits_unittest.cc',
628       'common/input/touch_event_stream_validator_unittest.cc',
629       'common/input/web_input_event_traits_unittest.cc',
630       'common/inter_process_time_ticks_converter_unittest.cc',
631       'common/mac/attributed_string_coder_unittest.mm',
632       'common/mac/font_descriptor_unittest.mm',
633       'common/one_writer_seqlock_unittest.cc',
634       'common/origin_util_unittest.cc',
635       'common/page_state_serialization_unittest.cc',
636       'common/page_zoom_unittest.cc',
637       'common/plugin_list_unittest.cc',
638       'common/sandbox_mac_diraccess_unittest.mm',
639       'common/sandbox_mac_fontloading_unittest.mm',
640       'common/sandbox_mac_system_access_unittest.mm',
641       'common/sandbox_mac_unittest_helper.h',
642       'common/sandbox_mac_unittest_helper.mm',
643       'common/webplugininfo_unittest.cc',
644       'renderer/android/email_detector_unittest.cc',
645       'renderer/android/phone_number_detector_unittest.cc',
646       'renderer/battery_status/battery_status_dispatcher_unittest.cc',
647       'renderer/bmp_image_decoder_unittest.cc',
648       'renderer/device_sensors/device_light_event_pump_unittest.cc',
649       'renderer/device_sensors/device_motion_event_pump_unittest.cc',
650       'renderer/device_sensors/device_orientation_event_pump_unittest.cc',
651       'renderer/disambiguation_popup_helper_unittest.cc',
652       'renderer/dom_storage/dom_storage_cached_area_unittest.cc',
653       'renderer/gpu/compositor_forwarding_message_filter_unittest.cc',
654       'renderer/gpu/frame_swap_message_queue_unittest.cc',
655       'renderer/gpu/queue_message_swap_promise_unittest.cc',
656       'renderer/gpu/render_widget_compositor_unittest.cc',
657       'renderer/ico_image_decoder_unittest.cc',
658       'renderer/input/input_event_filter_unittest.cc',
659       'renderer/input/input_handler_proxy_unittest.cc',
660       'renderer/input/input_scroll_elasticity_controller_unittest.cc',
661       'renderer/manifest/manifest_parser_unittest.cc',
662       'renderer/media/android/media_info_loader_unittest.cc',
663       'renderer/media/audio_message_filter_unittest.cc',
664       'renderer/media/audio_renderer_mixer_manager_unittest.cc',
665       'renderer/media/midi_message_filter_unittest.cc',
666       'renderer/media/render_media_client_unittest.cc',
667       'renderer/media/render_media_log_unittest.cc',
668       'renderer/media/video_capture_impl_manager_unittest.cc',
669       'renderer/media/video_capture_impl_unittest.cc',
670       'renderer/media/video_capture_message_filter_unittest.cc',
671       'renderer/render_thread_impl_unittest.cc',
672       'renderer/render_widget_unittest.cc',
673       'renderer/scheduler/resource_dispatch_throttler_unittest.cc',
674       'renderer/screen_orientation/screen_orientation_dispatcher_unittest.cc',
675       'renderer/skia_benchmarking_extension_unittest.cc',
676       'test/fileapi_test_file_set.cc',
677       'test/fileapi_test_file_set.h',
678       'test/image_decoder_test.cc',
679       'test/image_decoder_test.h',
680       'test/run_all_unittests.cc',
681     ],
682     'content_unittests_speech_sources': [
683       'browser/speech/chunked_byte_buffer_unittest.cc',
684       'browser/speech/endpointer/endpointer_unittest.cc',
685       'browser/speech/google_one_shot_remote_engine_unittest.cc',
686       'browser/speech/google_streaming_remote_engine_unittest.cc',
687       'browser/speech/speech_recognizer_impl_unittest.cc',
688     ],
689     'content_unittests_plugins_sources': [
690       'browser/plugin_loader_posix_unittest.cc',
691       'browser/renderer_host/pepper/browser_ppapi_host_test.cc',
692       'browser/renderer_host/pepper/browser_ppapi_host_test.h',
693       'browser/renderer_host/pepper/pepper_file_system_browser_host_unittest.cc',
694       'browser/renderer_host/pepper/pepper_gamepad_host_unittest.cc',
695       'browser/renderer_host/pepper/pepper_printing_host_unittest.cc',
696       'browser/renderer_host/pepper/quota_reservation_unittest.cc',
697       'child/npapi/plugin_lib_unittest.cc',
698       'renderer/media/webrtc/video_destination_handler_unittest.cc',
699       'renderer/npapi/webplugin_impl_unittest.cc',
700       'renderer/pepper/event_conversion_unittest.cc',
701       'renderer/pepper/host_var_tracker_unittest.cc',
702       'renderer/pepper/mock_resource.h',
703       'renderer/pepper/pepper_broker_unittest.cc',
704       'renderer/pepper/plugin_instance_throttler_impl_unittest.cc',
705       'renderer/pepper/v8_var_converter_unittest.cc',
706     ],
707     'content_unittests_webrtc_sources': [
708       'browser/media/webrtc_internals_unittest.cc',
709       'browser/renderer_host/media/webrtc_identity_service_host_unittest.cc',
710       'browser/renderer_host/p2p/socket_host_tcp_server_unittest.cc',
711       'browser/renderer_host/p2p/socket_host_tcp_unittest.cc',
712       'browser/renderer_host/p2p/socket_host_test_utils.cc',
713       'browser/renderer_host/p2p/socket_host_test_utils.h',
714       'browser/renderer_host/p2p/socket_host_udp_unittest.cc',
715       'browser/renderer_host/p2p/socket_host_unittest.cc',
716       'renderer/media/media_stream_audio_processor_unittest.cc',
717       'renderer/media/media_stream_constraints_util_unittest.cc',
718       'renderer/media/media_stream_dispatcher_unittest.cc',
719       'renderer/media/media_stream_video_capture_source_unittest.cc',
720       'renderer/media/media_stream_video_source_unittest.cc',
721       'renderer/media/media_stream_video_track_unittest.cc',
722       'renderer/media/mock_media_constraint_factory.cc',
723       'renderer/media/mock_media_stream_registry.cc',
724       'renderer/media/mock_media_stream_registry.h',
725       'renderer/media/mock_media_stream_video_sink.cc',
726       'renderer/media/mock_media_stream_video_sink.h',
727       'renderer/media/mock_media_stream_video_source.cc',
728       'renderer/media/mock_media_stream_video_source.h',
729       'renderer/media/rtc_data_channel_handler_unittest.cc',
730       'renderer/media/rtc_peer_connection_handler_unittest.cc',
731       'renderer/media/rtc_video_decoder_unittest.cc',
732       'renderer/media/speech_recognition_audio_sink_unittest.cc',
733       'renderer/media/user_media_client_impl_unittest.cc',
734       'renderer/media/video_source_handler_unittest.cc',
735       'renderer/media/webrtc/media_stream_remote_video_source_unittest.cc',
736       'renderer/media/webrtc/media_stream_track_metrics_unittest.cc',
737       'renderer/media/webrtc/peer_connection_dependency_factory_unittest.cc',
738       'renderer/media/webrtc/stun_field_trial_unittest.cc',
739       'renderer/media/webrtc/webrtc_local_audio_track_adapter_unittest.cc',
740       'renderer/media/webrtc/webrtc_media_stream_adapter_unittest.cc',
741       'renderer/media/webrtc/webrtc_video_capturer_adapter_unittest.cc',
742       'renderer/media/webrtc_audio_capturer_unittest.cc',
743       'renderer/media/webrtc_audio_renderer_unittest.cc',
744       'renderer/media/webrtc_identity_service_unittest.cc',
745       'renderer/media/webrtc_local_audio_source_provider_unittest.cc',
746       'renderer/media/webrtc_local_audio_track_unittest.cc',
747       'renderer/media/webrtc_uma_histograms_unittest.cc',
748       'renderer/p2p/ipc_network_manager_unittest.cc',
749     ],
750     'content_unittests_android_sources': [
751       'browser/android/java/gin_java_method_invocation_helper_unittest.cc',
752       'browser/android/java/java_type_unittest.cc',
753       'browser/android/java/jni_helper_unittest.cc',
754       'browser/android/overscroll_refresh_unittest.cc',
755       'browser/android/url_request_content_job_unittest.cc',
756       'browser/renderer_host/input/motion_event_android_unittest.cc',
757       'renderer/java/gin_java_bridge_value_converter_unittest.cc',
758     ],
759   },
760   'targets': [
761     {
762       # GN version: //content/test:layouttest_support
763       'target_name': 'layouttest_support_content',
764       'type': 'static_library',
765       'conditions': [
766         ['OS=="android"', {
767           'dependencies': [
768             'test_support_content_jni_headers',
769           ],
770         }],
771         ['OS!="ios"', {
772           # layouttest_support_content is not supported nor required on iOS.
773           'dependencies': [
774             'content.gyp:content_renderer',
775             'test_support_content',
776             '../components/test_runner/test_runner.gyp:test_runner',
777             '../skia/skia.gyp:skia',
778             '../ui/accessibility/accessibility.gyp:ax_gen',
779             '../ui/base/ime/ui_base_ime.gyp:ui_base_ime',
780             '../v8/tools/gyp/v8.gyp:v8',
781           ],
782           'include_dirs': [
783             '..',
784             '<(SHARED_INTERMEDIATE_DIR)',
785           ],
786           'sources': [ '<@(layouttest_support_content_sources)' ]
787         }],
788       ],
789     },
790     {
791       # GN version: //content/test:test_support
792       'target_name': 'test_support_content',
793       'type': 'static_library',
794       'dependencies': [
795         '../mojo/mojo_base.gyp:mojo_application_base',
796         '../mojo/mojo_base.gyp:mojo_environment_chromium',
797         '../net/net.gyp:net_test_support',
798         '../skia/skia.gyp:skia',
799         '../storage/storage_common.gyp:storage_common',
800         '../testing/gmock.gyp:gmock',
801         '../testing/gtest.gyp:gtest',
802         '../third_party/mojo/mojo_edk.gyp:mojo_system_impl',
803         '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
804         '../ui/accessibility/accessibility.gyp:ax_gen',
805         '../ui/base/ime/ui_base_ime.gyp:ui_base_ime',
806         '../ui/base/ui_base.gyp:ui_base',
807         '../ui/base/ui_base.gyp:ui_base_test_support',
808         '../ui/events/events.gyp:dom_keycode_converter',
809         '../ui/events/events.gyp:events_base',
810         '../ui/events/events.gyp:events_test_support',
811         '../ui/events/events.gyp:gesture_detection',
812         '../ui/gfx/gfx.gyp:gfx_test_support',
813         '../ui/resources/ui_resources.gyp:ui_resources',
814         '../url/url.gyp:url_lib',
815         'browser/speech/proto/speech_proto.gyp:speech_proto',
816         'content.gyp:content_app_both',
817         'content.gyp:content_browser',
818         'content.gyp:content_common',
819       ],
820       'export_dependent_settings': [
821         'content.gyp:content_browser',
822       ],
823       'include_dirs': [
824         '..',
825       ],
826       'sources': [ '<@(test_support_content_sources)' ],
827       'conditions': [
828         ['enable_plugins==0', {
829           'sources!': [
830             'public/test/ppapi_test_utils.cc',
831             'test/ppapi_unittest.cc',
832           ],
833         }],
834         ['enable_web_speech==0', {
835           'sources!': [
836             'test/mock_google_streaming_server.cc',
837           ],
838         }],
839         ['OS == "ios"', {
840           'sources/': [
841             # iOS only needs a small portion of content; exclude all the
842             # implementation, and re-include what is used.
843             ['exclude', '\\.(cc|mm)$'],
844             ['include', '_ios\\.(cc|mm)$'],
845             ['include', '^public/test/content_test_suite_base\\.cc$'],
846             ['include', '^public/test/mock_notification_observer\\.cc$'],
847             ['include', '^public/test/mock_resource_context\\.cc$'],
848             ['include', '^public/test/test_browser_thread\\.cc$'],
849             ['include', '^public/test/test_browser_thread_bundle\\.cc$'],
850             ['include', '^public/test/test_content_client_initializer\\.cc$'],
851             ['include', '^public/test/test_notification_tracker\\.cc$'],
852             ['include', '^public/test/test_utils\\.cc$'],
853             ['include', '^public/test/unittest_test_suite\\.cc$'],
854             ['include', '^test/content_test_suite\\.cc$'],
855             ['include', '^test/test_content_browser_client\\.cc$'],
856             ['include', '^test/test_content_client\\.cc$'],
857           ],
858         }, {  # OS != "ios"
859           'conditions': [
860             ['OS=="mac"', {
861               'copies': [{
862                 'destination': '<(SHARED_INTERMEDIATE_DIR)/webkit',
863                 'files': [
864                   'shell/resources/missingImage.png',
865                   'shell/resources/textAreaResizeCorner.png',
866                 ],
867               }],
868             }],
869           ],
870           'dependencies': [
871             'content_test_mojo_bindings',
872             'content.gyp:content_child',
873             'content.gyp:content_common',
874             'content.gyp:content_gpu',
875             'content.gyp:content_plugin',
876             'content.gyp:content_ppapi_plugin',
877             'content.gyp:content_renderer',
878             'content.gyp:content_utility',
879             'content_shell_and_tests.gyp:content_shell_pak',
880             '../cc/blink/cc_blink.gyp:cc_blink',
881             '../cc/cc.gyp:cc',
882             '../cc/cc_tests.gyp:cc_test_support',
883             '../components/scheduler/scheduler.gyp:scheduler',
884             '../components/scheduler/scheduler.gyp:scheduler_test_support',
885             '../gpu/blink/gpu_blink.gyp:gpu_blink',
886             '../ipc/mojo/ipc_mojo.gyp:*',
887             '../media/blink/media_blink.gyp:media_blink',
888             '../media/media.gyp:media',
889             '../media/midi/midi.gyp:midi',
890             '../mojo/mojo_base.gyp:mojo_application_base',
891             '../mojo/mojo_base.gyp:mojo_environment_chromium',
892             '../ppapi/ppapi_internal.gyp:ppapi_host',
893             '../ppapi/ppapi_internal.gyp:ppapi_proxy',
894             '../ppapi/ppapi_internal.gyp:ppapi_shared',
895             '../ppapi/ppapi_internal.gyp:ppapi_unittest_shared',
896             '../storage/storage_browser.gyp:storage',
897             '../storage/storage_common.gyp:storage_common',
898             '../third_party/WebKit/public/blink.gyp:blink',
899             '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
900             '../ui/compositor/compositor.gyp:compositor_test_support',
901             '../ui/surface/surface.gyp:surface',
902             '../v8/tools/gyp/v8.gyp:v8',
903           ],
904           'export_dependent_settings': [
905             '../third_party/WebKit/public/blink.gyp:blink',
906           ],
907         }],
908         ['OS == "win"', {
909           'dependencies': [
910             '../sandbox/sandbox.gyp:sandbox',
911             'content.gyp:content_startup_helper_win',
912           ],
913         }],
914         ['enable_webrtc==1', {
915           'sources': [
916             'renderer/media/mock_data_channel_impl.cc',
917             'renderer/media/mock_data_channel_impl.h',
918             'renderer/media/mock_media_stream_dispatcher.cc',
919             'renderer/media/mock_media_stream_dispatcher.h',
920             'renderer/media/mock_peer_connection_impl.cc',
921             'renderer/media/mock_peer_connection_impl.h',
922             'renderer/media/mock_web_rtc_peer_connection_handler_client.cc',
923             'renderer/media/mock_web_rtc_peer_connection_handler_client.h',
924             'renderer/media/webrtc/mock_peer_connection_dependency_factory.cc',
925             'renderer/media/webrtc/mock_peer_connection_dependency_factory.h',
926           ],
927           'dependencies': [
928             '../third_party/libjingle/libjingle.gyp:libjingle_webrtc',
929             '../third_party/libjingle/libjingle.gyp:libpeerconnection',
930             '../third_party/webrtc/modules/modules.gyp:video_capture_module',
931           ],
932         }],
933         ['use_glib == 1', {
934           'dependencies': [
935             '../build/linux/system.gyp:glib',
936           ],
937         }],
938         ['use_aura==1', {
939           'dependencies': [
940             '../ui/aura/aura.gyp:aura_test_support',
941             '../ui/resources/ui_resources.gyp:ui_test_pak',
942             '../ui/wm/wm.gyp:wm',
943           ],
944         }],
945         ['use_ozone==1', {
946           'dependencies': [
947             '../ui/ozone/ozone.gyp:ozone',
948             '../ui/platform_window/platform_window.gyp:platform_window',
949           ],
950         }],
951         ['OS=="win"', {
952           'dependencies': [
953             '../third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
954           ],
955         }],
956         ['OS!="android" and OS!="ios"', {
957           'sources': [
958             'browser/compositor/test/no_transport_image_transport_factory.cc',
959             'browser/compositor/test/no_transport_image_transport_factory.h',
960           ],
961           'dependencies': [
962             '../ui/compositor/compositor.gyp:compositor',
963             '../third_party/libvpx/libvpx.gyp:libvpx',
964           ],
965         }],
966         ['OS=="android"', {
967           'dependencies': [
968             '../ui/android/ui_android.gyp:ui_android',
969             '../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs',
970             'content.gyp:content_v8_external_data',
971           ],
972         }],
973         ['v8_use_external_startup_data==1 and OS!="ios"', {
974           'dependencies': [
975             '../gin/gin.gyp:gin',
976           ],
977         }],
978       ],
979     },
980     {
981       # GN version: //content/test:content_unittests
982       'target_name': 'content_unittests',
983       'type': '<(gtest_target_type)',
984       'dependencies': [
985         'browser/background_sync/background_sync_proto.gyp:background_sync_proto',
986         'browser/notifications/notification_proto.gyp:notification_proto',
987         'browser/service_worker/service_worker_proto.gyp:service_worker_proto',
988         'browser/speech/proto/speech_proto.gyp:speech_proto',
989         'content.gyp:content_browser',
990         'content.gyp:content_common',
991         'content_common_mojo_bindings.gyp:content_common_mojo_bindings',
992         'test_support_content',
993         '../base/base.gyp:test_support_base',
994         '../crypto/crypto.gyp:crypto',
995         '../device/battery/battery.gyp:device_battery',
996         '../device/battery/battery.gyp:device_battery_mojo_bindings',
997         '../mojo/mojo_base.gyp:mojo_environment_chromium',
998         '../net/net.gyp:net_extras',
999         '../net/net.gyp:net_test_support',
1000         '../skia/skia.gyp:skia',
1001         '../sql/sql.gyp:sql',
1002         '../sql/sql.gyp:test_support_sql',
1003         '../testing/gmock.gyp:gmock',
1004         '../testing/gtest.gyp:gtest',
1005         '../third_party/mojo/mojo_edk.gyp:mojo_common_test_support',
1006         '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
1007         '../third_party/re2/re2.gyp:re2',
1008         '../ui/accessibility/accessibility.gyp:accessibility',
1009         '../ui/base/ui_base.gyp:ui_base',
1010         '../ui/events/events.gyp:blink',
1011         '../ui/gfx/gfx.gyp:gfx',
1012         '../ui/gfx/gfx.gyp:gfx_geometry',
1013         '../ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
1014       ],
1015       'include_dirs': [
1016         '..',
1017         '<(SHARED_INTERMEDIATE_DIR)',  # Needed by render_media_client_unittest.cc.
1018       ],
1019       'sources': [ '<@(content_unittests_sources)' ],
1020       'conditions': [
1021         ['OS == "ios"', {
1022           'sources/': [
1023             # iOS only needs a small portion of content; exclude all the
1024             # implementation, and re-include what is used.
1025             ['exclude', '\\.(cc|mm)$'],
1026             ['include', '_ios\\.(cc|mm)$'],
1027             ['include', '^browser/notification_service_impl_unittest\\.cc$'],
1028             ['include', '^browser/web_contents/navigation_entry_impl_unittest\\.cc$'],
1029             ['include', '^test/run_all_unittests\\.cc$'],
1030           ],
1031         }, {  # OS != "ios"
1032           'dependencies': [
1033             'content.gyp:content_browser',
1034             'content.gyp:content_child',
1035             'content.gyp:content_gpu',
1036             'content.gyp:content_plugin',
1037             'content.gyp:content_renderer',
1038             'content.gyp:content_resources',
1039             '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
1040             '../cc/cc.gyp:cc',
1041             '../cc/cc.gyp:cc_surfaces',
1042             '../cc/cc_tests.gyp:cc_test_support',
1043             '../gin/gin.gyp:gin',
1044             '../gpu/gpu.gyp:gpu',
1045             '../gpu/gpu.gyp:gpu_unittest_utils',
1046             '../ipc/ipc.gyp:test_support_ipc',
1047             '../media/media.gyp:media_test_support',
1048             '../media/media.gyp:shared_memory_support',
1049             '../storage/storage_browser.gyp:storage',
1050             '../storage/storage_common.gyp:storage_common',
1051             '../third_party/WebKit/public/blink.gyp:blink',
1052             '../third_party/icu/icu.gyp:icui18n',
1053             '../third_party/icu/icu.gyp:icuuc',
1054             '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
1055             '../third_party/libjingle/libjingle.gyp:libjingle',
1056             '../ui/gl/gl.gyp:gl',
1057           ],
1058         }],
1059         ['OS != "win"', {
1060           'sources': [
1061             'browser/file_descriptor_info_impl_unittest.cc',
1062           ],
1063         }],
1064         ['OS == "mac"', {
1065           'dependencies': [
1066             '../third_party/ocmock/ocmock.gyp:ocmock',
1067           ],
1068         }],
1069         ['enable_plugins==1', {
1070           'sources': [ '<@(content_unittests_plugins_sources)' ],
1071         }],
1072         ['enable_webrtc==1', {
1073           'sources': [ '<@(content_unittests_webrtc_sources)' ],
1074           'dependencies': [
1075             '../third_party/libjingle/libjingle.gyp:libjingle_webrtc',
1076             '../third_party/libjingle/libjingle.gyp:libpeerconnection',
1077             '../third_party/webrtc/modules/modules.gyp:video_capture_module',
1078           ]
1079         }, {
1080           'sources!': [
1081             'renderer/media/webrtc/video_destination_handler_unittest.cc',
1082           ],
1083         }],
1084         ['enable_webrtc==1 and (OS=="linux" or OS=="mac" or OS=="win")', {
1085           'sources': [
1086             'browser/media/capture/desktop_capture_device_unittest.cc',
1087           ],
1088           'dependencies': [
1089             '../third_party/webrtc/modules/modules.gyp:desktop_capture',
1090           ],
1091         }],
1092         ['enable_webrtc==1 and chromeos==1', {
1093           'sources': [
1094             'browser/media/capture/desktop_capture_device_aura_unittest.cc',
1095           ],
1096         }],
1097         ['enable_web_speech==1', {
1098           'sources': [ '<@(content_unittests_speech_sources)' ],
1099         }],
1100         ['OS=="linux" and use_dbus==1', {
1101           'dependencies': [
1102             '../build/linux/system.gyp:dbus',
1103             '../dbus/dbus.gyp:dbus_test_support',
1104           ],
1105         }],
1106         ['OS=="win" and win_use_allocator_shim==1', {
1107           'dependencies': [
1108             '../base/allocator/allocator.gyp:allocator',
1109           ],
1110         }],
1111         ['OS=="win"', {
1112           'dependencies': [
1113             '../third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
1114           ],
1115         }],
1116         ['OS=="mac"', {
1117           # These flags are needed to run the test on Mac.
1118           # Search for comments about "xcode_settings" in chrome_tests.gypi.
1119           'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
1120         }],
1121         ['chromeos==1', {
1122           'dependencies': [
1123             '../chromeos/chromeos.gyp:chromeos',
1124           ],
1125           'sources!': [
1126             'browser/geolocation/wifi_data_provider_linux_unittest.cc',
1127           ],
1128         }],
1129         ['use_aura==1', {
1130           'dependencies': [
1131             '../ui/aura/aura.gyp:aura',
1132             '../ui/aura_extra/aura_extra.gyp:aura_extra',
1133             '../ui/wm/wm.gyp:wm',
1134           ]
1135         }],
1136         ['use_aura==1 or toolkit_views==1', {
1137           'dependencies': [
1138             '../ui/events/events.gyp:events_test_support',
1139           ],
1140         }],
1141         ['use_aura!=1 and OS!="mac"', {
1142           'sources/': [
1143             ['exclude', '^browser/compositor/'],
1144           ],
1145         }],
1146         ['OS == "android"', {
1147           'sources': [ '<@(content_unittests_android_sources)' ],
1148           'sources!': [
1149             'browser/geolocation/network_location_provider_unittest.cc',
1150             'browser/geolocation/wifi_data_provider_common_unittest.cc',
1151             'browser/media/audio_stream_monitor_unittest.cc',
1152             'browser/renderer_host/begin_frame_observer_proxy_unittest.cc',
1153             'browser/webui/url_data_manager_backend_unittest.cc',
1154           ],
1155           'dependencies': [
1156             '../testing/android/native_test.gyp:native_test_native_code',
1157           ],
1158         }],
1159         ['OS != "android" and OS != "ios"', {
1160           'dependencies': [
1161             '../third_party/libvpx/libvpx.gyp:libvpx',
1162           ],
1163         }],
1164         ['use_aura!=1 and OS!="android"', {
1165           'sources!': [
1166             'browser/renderer_host/input/tap_suppression_controller_unittest.cc',
1167           ],
1168         }],
1169         ['use_dbus==0', {
1170           'sources!': [
1171             'browser/geolocation/wifi_data_provider_linux_unittest.cc',
1172           ],
1173         }],
1174         ['OS!="win" and OS!="mac"', {
1175           'sources!': [
1176             'common/plugin_list_unittest.cc',
1177           ],
1178         }],
1179         ['use_ozone==1', {
1180           'dependencies': [
1181             '../ui/ozone/ozone.gyp:ozone',
1182             '../ui/ozone/ozone.gyp:ozone_base',
1183           ],
1184         }],
1185         ['OS == "mac" and use_openssl==1', {
1186           'dependencies': [
1187             '../third_party/boringssl/boringssl.gyp:boringssl',
1188           ],
1189         }],
1190       ],
1191     },
1192   ],
1193   'conditions': [
1194     ['test_isolation_mode != "noop"', {
1195       'targets': [
1196         {
1197           'target_name': 'content_browsertests_run',
1198           'type': 'none',
1199           'dependencies': [
1200             'content_browsertests',
1201           ],
1202           'includes': [
1203             '../build/isolate.gypi',
1204           ],
1205           'sources': [
1206             'content_browsertests.isolate',
1207           ],
1208         },
1209         {
1210           'target_name': 'content_unittests_run',
1211           'type': 'none',
1212           'dependencies': [
1213             'content_unittests',
1214           ],
1215           'includes': [
1216             '../build/isolate.gypi',
1217           ],
1218           'sources': [
1219             'content_unittests.isolate',
1220           ],
1221           'conditions': [
1222             ['use_x11==1', {
1223               'dependencies': [
1224                 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
1225               ],
1226             }],
1227           ],
1228         },
1229       ],
1230       'conditions': [
1231         ['archive_gpu_tests==1', {
1232           'targets': [
1233             {
1234               'target_name': 'content_gl_tests_run',
1235               'type': 'none',
1236               'dependencies': [
1237                 'content_shell_and_tests.gyp:content_gl_tests',
1238               ],
1239               'includes': [
1240                 '../build/isolate.gypi',
1241               ],
1242               'sources': [
1243                 'content_gl_tests.isolate',
1244               ],
1245             },
1246           ],
1247         }],
1248       ],
1249     }],
1250     ['OS!="ios"', {
1251       'targets': [
1252         {
1253           # GN version: //content/test:content_perftests
1254           'target_name': 'content_perftests',
1255           'type': '<(gtest_target_type)',
1256           'defines!': ['CONTENT_IMPLEMENTATION'],
1257           'dependencies': [
1258             'content.gyp:content_browser',
1259             'content.gyp:content_common',
1260             'test_support_content',
1261             '../base/base.gyp:test_support_base',
1262             '../cc/cc.gyp:cc',
1263             '../skia/skia.gyp:skia',
1264             '../testing/gtest.gyp:gtest',
1265             '../testing/perf/perf_test.gyp:*',
1266             '../ui/gfx/gfx.gyp:gfx',
1267             '../ui/gfx/gfx.gyp:gfx_geometry',
1268           ],
1269           'include_dirs': [
1270             '..',
1271           ],
1272           'sources': [
1273             'browser/renderer_host/input/input_router_impl_perftest.cc',
1274             'common/cc_messages_perftest.cc',
1275             'common/discardable_shared_memory_heap_perftest.cc',
1276             'test/run_all_perftests.cc',
1277           ],
1278           'conditions': [
1279             ['OS == "android"', {
1280               'dependencies': [
1281                 '../testing/android/native_test.gyp:native_test_native_code',
1282               ],
1283             }],
1284             ['OS=="win" and component!="shared_library" and win_use_allocator_shim==1', {
1285               'dependencies': [
1286                 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
1287               ],
1288             }],
1289           ],
1290         },
1291         {
1292           # GN version: //content/tests:browsertest_support
1293           'target_name': 'content_browser_test_support',
1294           'type': 'static_library',
1295           'dependencies': [
1296             'content_shell_lib',
1297             '../skia/skia.gyp:skia',
1298             '../testing/gtest.gyp:gtest',
1299             '../ui/accessibility/accessibility.gyp:ax_gen',
1300             '../ui/base/ime/ui_base_ime.gyp:ui_base_ime',
1301           ],
1302           'sources': [
1303             # Source list duplicated in GN build.
1304             'public/test/content_browser_test.cc',
1305             'public/test/content_browser_test.h',
1306             'public/test/content_browser_test_utils.cc',
1307             'public/test/content_browser_test_utils.h',
1308             'public/test/content_browser_test_utils_mac.mm',
1309             'test/content_test_launcher.cc',
1310           ],
1311           'include_dirs': [
1312             '<(SHARED_INTERMEDIATE_DIR)',
1313           ],
1314           'conditions': [
1315             ['OS=="android"', {
1316               'dependencies': [
1317                 'content.gyp:content_app_both',
1318               ],
1319             }, {
1320               'dependencies': [
1321                 'content.gyp:content_browser',
1322               ],
1323             }],
1324           ],
1325         },
1326         {
1327           # GN version: //content/test:test_mojo_bindings
1328           'target_name': 'content_test_mojo_bindings',
1329           'type': 'static_library',
1330           'sources': [
1331             'public/test/test_mojo_service.mojom',
1332           ],
1333           'includes': [ '../third_party/mojo/mojom_bindings_generator.gypi' ],
1334         },
1335         {
1336           # GN version: //content/test:web_ui_test_mojo_bindings
1337           'target_name': 'web_ui_test_mojo_bindings',
1338           'type': 'static_library',
1339           'dependencies': [
1340             '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
1341           ],
1342           'sources': [
1343             'test/data/web_ui_test_mojo_bindings.mojom',
1344           ],
1345           'includes': [ '../third_party/mojo/mojom_bindings_generator.gypi' ],
1346           'export_dependent_settings': [
1347             '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
1348           ],
1349         },
1350         {
1351           # GN version: //content/tests:content_browsertests
1352           'target_name': 'content_browsertests',
1353           'type': '<(gtest_target_type)',
1354           'dependencies': [
1355             'content.gyp:content_common',
1356             'content.gyp:content_gpu',
1357             'content.gyp:content_plugin',
1358             'content.gyp:content_renderer',
1359             'content.gyp:content_resources',
1360             'content_browser_test_support',
1361             'content_common_mojo_bindings.gyp:content_common_mojo_bindings',
1362             'content_shell_lib',
1363             'content_shell_pak',
1364             'test_support_content',
1365             'web_ui_test_mojo_bindings',
1366             '../base/base.gyp:test_support_base',
1367             '../device/battery/battery.gyp:device_battery',
1368             '../device/battery/battery.gyp:device_battery_mojo_bindings',
1369             '../gin/gin.gyp:gin',
1370             '../gpu/gpu.gyp:gpu',
1371             '../ipc/ipc.gyp:test_support_ipc',
1372             '../media/media.gyp:media_test_support',
1373             '../media/media.gyp:shared_memory_support',
1374             '../mojo/mojo_base.gyp:mojo_application_base',
1375             '../mojo/mojo_base.gyp:mojo_environment_chromium',
1376             '../net/net.gyp:net_test_support',
1377             '../ppapi/ppapi_internal.gyp:ppapi_host',
1378             '../ppapi/ppapi_internal.gyp:ppapi_ipc',
1379             '../ppapi/ppapi_internal.gyp:ppapi_proxy',
1380             '../ppapi/ppapi_internal.gyp:ppapi_shared',
1381             '../ppapi/ppapi_internal.gyp:ppapi_unittest_shared',
1382             '../testing/gmock.gyp:gmock',
1383             '../testing/gtest.gyp:gtest',
1384             '../third_party/WebKit/public/blink.gyp:blink',
1385             '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
1386             '../third_party/mesa/mesa.gyp:osmesa',
1387             '../third_party/mojo/mojo_edk.gyp:mojo_common_test_support',
1388             '../third_party/mojo/mojo_edk.gyp:mojo_system_impl',
1389             '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
1390             '../third_party/mojo/mojo_public.gyp:mojo_js_bindings',
1391             '../third_party/zlib/zlib.gyp:zlib',
1392             '../ui/accessibility/accessibility.gyp:accessibility',
1393             '../ui/base/ui_base.gyp:ui_base',
1394             '../ui/gfx/gfx.gyp:gfx',
1395             '../ui/gfx/gfx.gyp:gfx_geometry',
1396             '../ui/gl/gl.gyp:gl',
1397             '../ui/resources/ui_resources.gyp:ui_resources',
1398             '../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs',
1399             '../ui/snapshot/snapshot.gyp:snapshot',
1400             '../ui/accessibility/accessibility.gyp:ax_gen',
1401           ],
1402           'include_dirs': [
1403             '..',
1404             '<(SHARED_INTERMEDIATE_DIR)',  # Needed by encrypted_media_browsertest.cc
1405           ],
1406           'includes': [
1407             'browser/gpu/test_support_gpu.gypi',
1408           ],
1409           'defines': [
1410             'HAS_OUT_OF_PROC_TEST_RUNNER',
1411           ],
1412           'sources': [ '<@(content_browsertests_sources)' ],
1413           'conditions': [
1414             ['chromeos==0', {
1415               'sources!': [
1416                 'browser/web_contents/touch_editable_impl_aura_browsertest.cc',
1417               ],
1418             }],
1419             ['OS=="win"', {
1420               'resource_include_dirs': [
1421                 '<(SHARED_INTERMEDIATE_DIR)/webkit',
1422               ],
1423               'sources': [
1424                 '<@(content_browsertests_win_sources)',
1425                 # TODO:  It would be nice to have these pulled in
1426                 # automatically from direct_dependent_settings in
1427                 # their various targets (net.gyp:net_resources, etc.),
1428                 # but that causes errors in other targets when
1429                 # resulting .res files get referenced multiple times.
1430                 '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_resources.rc',
1431                 '<(SHARED_INTERMEDIATE_DIR)/content/app/strings/content_strings_en-US.rc',
1432                 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc',
1433                 'shell/app/resource.h',
1434                 'shell/app/shell.rc',
1435               ],
1436               'dependencies': [
1437                 '<(DEPTH)/content/app/strings/content_strings.gyp:content_strings',
1438                 '<(DEPTH)/net/net.gyp:net_resources',
1439                 '<(DEPTH)/third_party/WebKit/public/blink_resources.gyp:blink_resources',
1440                 '<(DEPTH)/third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
1441                 '<(DEPTH)/third_party/isimpledom/isimpledom.gyp:isimpledom',
1442               ],
1443               'configurations': {
1444                 'Debug_Base': {
1445                   'msvs_settings': {
1446                     'VCLinkerTool': {
1447                       'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
1448                     },
1449                   },
1450                 },
1451               },
1452               # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1453               'msvs_disabled_warnings': [ 4267, ],
1454             }],
1455             ['OS=="win" and win_use_allocator_shim==1', {
1456               'dependencies': [
1457                 '../base/allocator/allocator.gyp:allocator',
1458               ],
1459             }],
1460             ['OS=="linux"', {
1461               'sources!': [
1462                 'browser/accessibility/dump_accessibility_tree_browsertest.cc',
1463               ],
1464             }],
1465             ['OS=="android"', {
1466               'sources': [ '<@(content_browsertests_android_sources)' ],
1467               'sources!': [
1468                 'browser/battery_status/battery_monitor_impl_browsertest.cc',
1469               ],
1470               'dependencies': [
1471                 'content_shell_jni_headers',
1472                 'content_shell_lib',
1473                 '../testing/android/native_test.gyp:native_test_support',
1474               ],
1475             }],
1476             ['OS=="mac"', {
1477               'dependencies': [
1478                 'content_shell',  # Needed for Content Shell.app's Helper.
1479               ],
1480               'sources': [
1481                 'renderer/external_popup_menu_browsertest.cc',
1482               ],
1483             }],
1484             ['use_aura==1 or toolkit_views==1', {
1485               'dependencies': [
1486                 '../ui/events/events.gyp:events_test_support',
1487               ],
1488             }],
1489             ['use_aura!=1 and OS!="mac"', {
1490               'sources!' :[
1491                 'browser/compositor/image_transport_factory_browsertest.cc',
1492               ],
1493             }],
1494             ['enable_webrtc==1', {
1495               'sources': [ '<@(content_browsertests_webrtc_sources)' ],
1496               'dependencies': [
1497                 '../testing/perf/perf_test.gyp:perf_test',
1498               ],
1499             }],
1500             ['enable_plugins==1', {
1501               'sources': [ '<@(content_browsertests_plugins_sources)' ],
1502               'dependencies': [
1503                 '../ppapi/ppapi_internal.gyp:ppapi_tests',
1504               ]
1505             }],
1506             ['enable_web_speech == 1', {
1507               'sources': [ '<@(content_browsertests_speech_sources)' ],
1508             }],
1509             ['branding != "Chrome"', {
1510               'sources': [ '<@(content_browsertests_unofficial_build_sources)' ],
1511             }],
1512           ],
1513         },
1514         {
1515           # GN version: //content/test:content_gl_tests
1516           'target_name': 'content_gl_tests',
1517           'type': '<(gtest_target_type)',
1518           'dependencies': [
1519             'content.gyp:content_common',
1520             'test_support_content',
1521             '../base/base.gyp:test_support_base',
1522             '../gpu/gpu.gyp:command_buffer_common',
1523             '../testing/gtest.gyp:gtest',
1524             '../third_party/WebKit/public/blink.gyp:blink',
1525             '../ui/base/ui_base.gyp:ui_base',
1526             '../ui/gfx/gfx.gyp:gfx',
1527             '../ui/gfx/gfx.gyp:gfx_geometry',
1528             '../ui/gfx/gfx.gyp:gfx_test_support',
1529             '../ui/gl/gl.gyp:gl',
1530             '../v8/tools/gyp/v8.gyp:v8',
1531           ],
1532           'include_dirs': [
1533             '..',
1534           ],
1535           'sources': [
1536             'common/gpu/client/gl_helper_unittest.cc',
1537             'common/gpu/client/gpu_in_process_context_tests.cc',
1538           ],
1539           'conditions': [
1540             ['OS=="android"', {
1541               'dependencies': [
1542                 '../testing/android/native_test.gyp:native_test_native_code',
1543               ],
1544             }, {
1545               'dependencies': [
1546                 # Runtime dependencis.
1547                 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
1548                 '../third_party/mesa/mesa.gyp:osmesa',
1549               ],
1550             }],
1551             ['OS=="win" and component!="shared_library" and win_use_allocator_shim==1', {
1552               'dependencies': [
1553                 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
1554               ],
1555             }],
1556           ],
1557         },
1558         {
1559           # GN version: //content/test:content_gl_benchmark
1560           'target_name': 'content_gl_benchmark',
1561           'type': '<(gtest_target_type)',
1562           'dependencies': [
1563             'content.gyp:content_common',
1564             'test_support_content',
1565             '../base/base.gyp:test_support_base',
1566             '../testing/gtest.gyp:gtest',
1567             '../third_party/WebKit/public/blink.gyp:blink',
1568             '../ui/base/ui_base.gyp:ui_base',
1569             '../ui/gfx/gfx.gyp:gfx',
1570             '../ui/gfx/gfx.gyp:gfx_geometry',
1571             '../ui/gl/gl.gyp:gl',
1572           ],
1573           'include_dirs': [
1574             '..',
1575           ],
1576           'sources': [
1577             'common/gpu/client/gl_helper_benchmark.cc',
1578           ],
1579           'conditions': [
1580             ['OS=="win" and component!="shared_library" and win_use_allocator_shim==1', {
1581               'dependencies': [
1582                 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
1583               ],
1584             }],
1585           ],
1586         },
1587       ],
1588     }],
1589     ['chromeos==1 or OS=="win" or OS=="android"', {
1590       'targets': [
1591           {
1592             'target_name': 'video_decode_accelerator_unittest',
1593             'type': '<(gtest_target_type)',
1594             'dependencies': [
1595               '../base/base.gyp:base',
1596               '../media/media.gyp:media',
1597               '../testing/gtest.gyp:gtest',
1598               '../ui/base/ui_base.gyp:ui_base',
1599               '../ui/gfx/gfx.gyp:gfx',
1600               '../ui/gfx/gfx.gyp:gfx_test_support',
1601               '../ui/gfx/gfx.gyp:gfx_geometry',
1602               '../ui/gl/gl.gyp:gl',
1603               'content.gyp:content',
1604             ],
1605             'include_dirs': [
1606               '<(DEPTH)/third_party/khronos',
1607             ],
1608             'sources': [
1609               'common/gpu/media/android_video_decode_accelerator_unittest.cc',
1610               'common/gpu/media/rendering_helper.cc',
1611               'common/gpu/media/rendering_helper.h',
1612               'common/gpu/media/video_accelerator_unittest_helpers.h',
1613               'common/gpu/media/video_decode_accelerator_unittest.cc',
1614             ],
1615             'conditions': [
1616               ['OS=="android"', {
1617                 'sources/': [
1618                   ['exclude', '^common/gpu/media/rendering_helper.h'],
1619                   ['exclude', '^common/gpu/media/rendering_helper.cc'],
1620                   ['exclude', '^common/gpu/media/video_decode_accelerator_unittest.cc'],
1621                 ],
1622                 'dependencies': [
1623                   '../media/media.gyp:player_android',
1624                   '../testing/gmock.gyp:gmock',
1625                   '../testing/android/native_test.gyp:native_test_native_code',
1626                   '../gpu/gpu.gyp:gpu_unittest_utils',
1627                 ],
1628               }, {  # OS!="android"
1629                 'sources/': [
1630                   ['exclude', '^common/gpu/media/android_video_decode_accelerator_unittest.cc'],
1631                 ],
1632               }],
1633               ['OS=="win"', {
1634                 'dependencies': [
1635                   '<(angle_path)/src/angle.gyp:libEGL',
1636                   '<(angle_path)/src/angle.gyp:libGLESv2',
1637                 ],
1638               }],
1639               ['(OS=="win" and win_use_allocator_shim==1) or '
1640                '(os_posix == 1 and OS != "android" and '
1641                ' use_allocator!="none")', {
1642                 'dependencies': [
1643                   '../base/allocator/allocator.gyp:allocator',
1644                 ],
1645               }],
1646               ['target_arch != "arm" and (OS=="linux" or chromeos == 1)', {
1647                 'include_dirs': [
1648                   '<(DEPTH)/third_party/libva',
1649                 ],
1650               }],
1651               ['use_x11==1', {
1652                 'dependencies': [
1653                   '../build/linux/system.gyp:x11',  # Used by rendering_helper.cc
1654                   '../ui/gfx/x/gfx_x11.gyp:gfx_x11',
1655                 ],
1656               }],
1657               ['use_ozone==1 and chromeos==1', {
1658                 'dependencies': [
1659                   '../ui/display/display.gyp:display',  # Used by rendering_helper.cc
1660                   '../ui/ozone/ozone.gyp:ozone',  # Used by rendering_helper.cc
1661                 ],
1662               }],
1663             ],
1664             # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1665             'msvs_disabled_warnings': [ 4267, ],
1666           },
1667         ]
1668     }],
1669     ['chromeos==1 and target_arch != "arm"', {
1670       'targets': [
1671           {
1672             'target_name': 'vaapi_jpeg_decoder_unittest',
1673             'type': '<(gtest_target_type)',
1674             'dependencies': [
1675               'content.gyp:content_common',
1676               '../base/base.gyp:base',
1677               '../media/media.gyp:media',
1678               '../media/media.gyp:media_test_support',
1679               '../testing/gtest.gyp:gtest',
1680             ],
1681             'sources': [
1682               'common/gpu/media/vaapi_jpeg_decoder_unittest.cc',
1683             ],
1684             'include_dirs': [
1685               '<(DEPTH)/third_party/libva',
1686             ],
1687             'conditions': [
1688               ['use_x11==1', {
1689                 'dependencies': [
1690                   '../build/linux/system.gyp:x11',
1691                 ]
1692               }, {
1693                 'dependencies': [
1694                   '../build/linux/system.gyp:libdrm',
1695                 ]
1696               }],
1697             ],
1698           }
1699         ]
1700     }],
1701     ['chromeos==1', {
1702       'targets': [
1703         {
1704           'target_name': 'video_encode_accelerator_unittest',
1705           'type': 'executable',
1706           'dependencies': [
1707             '../base/base.gyp:base',
1708             '../media/media.gyp:media',
1709             '../media/media.gyp:media_test_support',
1710             '../testing/gtest.gyp:gtest',
1711             '../ui/base/ui_base.gyp:ui_base',
1712             '../ui/gfx/gfx.gyp:gfx',
1713             '../ui/gfx/gfx.gyp:gfx_geometry',
1714             '../ui/gfx/gfx.gyp:gfx_test_support',
1715             '../ui/gl/gl.gyp:gl',
1716             'content.gyp:content',
1717           ],
1718           'sources': [
1719             'common/gpu/media/video_accelerator_unittest_helpers.h',
1720             'common/gpu/media/video_encode_accelerator_unittest.cc',
1721           ],
1722           'include_dirs': [
1723             '<(DEPTH)/third_party/libva',
1724             '<(DEPTH)/third_party/libyuv',
1725           ],
1726           'conditions': [
1727             ['use_x11==1', {
1728               'dependencies': [
1729                 '../ui/gfx/x/gfx_x11.gyp:gfx_x11',
1730               ],
1731             }],
1732             ['use_ozone==1', {
1733               'dependencies': [
1734                 '../ui/ozone/ozone.gyp:ozone',
1735               ],
1736             }],
1737           ],
1738         },
1739       ]
1740     }],
1741     ['OS == "android"', {
1742       'targets': [
1743         {
1744           # TODO(GN)
1745           'target_name': 'content_gl_tests_apk',
1746           'type': 'none',
1747           'dependencies': [
1748             'content_gl_tests',
1749             'content_java_test_support',
1750           ],
1751           'variables': {
1752             'test_suite_name': 'content_gl_tests',
1753           },
1754           'includes': [
1755             '../build/apk_test.gypi',
1756           ],
1757         },
1758         {
1759           # TODO(GN)
1760           'target_name': 'content_unittests_apk',
1761           'type': 'none',
1762           'dependencies': [
1763             'content.gyp:content_java',
1764             'content_unittests',
1765           ],
1766           'conditions': [
1767             ['v8_use_external_startup_data==1', {
1768               'dependencies': [
1769                 '../v8/tools/gyp/v8.gyp:v8_external_snapshot',
1770               ],
1771               'copies': [
1772                 {
1773                 'destination': '<(asset_location)',
1774                   'files': [
1775                     '<(PRODUCT_DIR)/natives_blob.bin',
1776                     '<(PRODUCT_DIR)/snapshot_blob.bin',
1777                   ],
1778                 },
1779               ],
1780             }],
1781           ],
1782           'variables': {
1783             'test_suite_name': 'content_unittests',
1784             'isolate_file': 'content_unittests.isolate',
1785             'conditions': [
1786               ['v8_use_external_startup_data==1', {
1787                 'asset_location': '<(PRODUCT_DIR)/content_unittests_apk/assets',
1788                 'additional_input_paths': [
1789                   '<(PRODUCT_DIR)/content_unittests_apk/assets/natives_blob.bin',
1790                   '<(PRODUCT_DIR)/content_unittests_apk/assets/snapshot_blob.bin',
1791                 ],
1792                 'inputs': [
1793                   '<(PRODUCT_DIR)/natives_blob.bin',
1794                   '<(PRODUCT_DIR)/snapshot_blob.bin',
1795                 ],
1796               }],
1797             ],
1798           },
1799           'includes': [ '../build/apk_test.gypi' ],
1800         },
1801         {
1802           'target_name': 'content_shell_browsertests_java',
1803           'type': 'none',
1804           'dependencies': [
1805             'content.gyp:content_java',
1806             'content_shell_java',
1807             '../base/base.gyp:base_java',
1808             '../testing/android/native_test.gyp:native_test_java',
1809             '../ui/android/ui_android.gyp:ui_java',
1810           ],
1811           'variables': {
1812             'java_in_dir': 'shell/android/browsertests',
1813           },
1814           'includes': [ '../build/java.gypi' ],
1815         },
1816         {
1817           # TODO(GN)
1818           'target_name': 'content_browsertests_manifest',
1819           'type': 'none',
1820           'variables': {
1821             'jinja_inputs': ['shell/android/browsertests_apk/AndroidManifest.xml.jinja2'],
1822             'jinja_output': '<(SHARED_INTERMEDIATE_DIR)/content_browsertests_manifest/AndroidManifest.xml',
1823           },
1824           'includes': [ '../build/android/jinja_template.gypi' ],
1825         },
1826         {
1827           # TODO(GN)
1828           'target_name': 'content_browsertests_apk',
1829           'type': 'none',
1830           'dependencies': [
1831             'content.gyp:content_icudata',
1832             'content.gyp:content_java',
1833             'content.gyp:content_v8_external_data',
1834             'content_browsertests',
1835             'content_shell_browsertests_java',
1836             'content_java_test_support',
1837             'content_shell_java',
1838           ],
1839           'variables': {
1840             'test_suite_name': 'content_browsertests',
1841             'isolate_file': 'content_browsertests.isolate',
1842             'java_in_dir': 'shell/android/browsertests_apk',
1843             'android_manifest_path': '<(SHARED_INTERMEDIATE_DIR)/content_browsertests_manifest/AndroidManifest.xml',
1844             'resource_dir': 'shell/android/browsertests_apk/res',
1845             'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'],
1846             'asset_location': '<(PRODUCT_DIR)/content_shell/assets',
1847             'conditions': [
1848               ['icu_use_data_file_flag==1', {
1849                 'additional_input_paths': [
1850                   '<(PRODUCT_DIR)/icudtl.dat',
1851                 ],
1852               }],
1853               ['v8_use_external_startup_data==1', {
1854                 'additional_input_paths': [
1855                   '<(PRODUCT_DIR)/natives_blob.bin',
1856                   '<(PRODUCT_DIR)/snapshot_blob.bin',
1857                 ],
1858               }],
1859             ],
1860           },
1861           'includes': [ '../build/apk_browsertest.gypi' ],
1862         },
1863         {
1864           # TODO(GN)
1865           'target_name': 'content_perftests_apk',
1866           'type': 'none',
1867           'dependencies': [
1868             'content.gyp:content_java',
1869             'content_perftests',
1870           ],
1871           'variables': {
1872             'test_suite_name': 'content_perftests',
1873           },
1874           'includes': [ '../build/apk_test.gypi' ],
1875         },
1876         {
1877           # GN: //content/shell/android:chromium_linker_test_manifest
1878           'target_name': 'chromium_linker_test_manifest',
1879           'type': 'none',
1880           'variables': {
1881             'jinja_inputs': ['shell/android/linker_test_apk/AndroidManifest.xml.jinja2'],
1882             'jinja_output': '<(SHARED_INTERMEDIATE_DIR)/chromium_linker_test_manifest/AndroidManifest.xml',
1883           },
1884           'includes': [ '../build/android/jinja_template.gypi' ],
1885         },
1886         {
1887           # GN: //content/shell/android:chromium_linker_test_apk
1888           'target_name': 'chromium_linker_test_apk',
1889           'type': 'none',
1890           'conditions': [
1891             ['target_arch != "x64" and target_arch != "arm64"', {
1892               'dependencies': [
1893                 'chromium_android_linker_test',
1894                 'content.gyp:content_icudata',
1895                 'content.gyp:content_java',
1896                 'content.gyp:content_v8_external_data',
1897                 'content_shell_java',
1898               ],
1899               'variables': {
1900                 'apk_name': 'ChromiumLinkerTest',
1901                 'android_manifest_path': '<(SHARED_INTERMEDIATE_DIR)/chromium_linker_test_manifest/AndroidManifest.xml',
1902                 'java_in_dir': 'shell/android/linker_test_apk',
1903                 'resource_dir': 'shell/android/linker_test_apk/res',
1904                 'native_lib_target': 'libchromium_android_linker_test',
1905                 'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'],
1906                 'asset_location': '<(PRODUCT_DIR)/content_shell/assets',
1907                 'use_chromium_linker': '1',
1908                 'enable_chromium_linker_tests': '1',
1909                 'conditions': [
1910                   ['icu_use_data_file_flag==1', {
1911                     'additional_input_paths': [
1912                       '<(PRODUCT_DIR)/icudtl.dat',
1913                     ],
1914                   }],
1915                   ['v8_use_external_startup_data==1', {
1916                     'additional_input_paths': [
1917                       '<(PRODUCT_DIR)/natives_blob.bin',
1918                       '<(PRODUCT_DIR)/snapshot_blob.bin',
1919                     ],
1920                   }],
1921                 ],
1922               },
1923               'includes': [ '../build/java_apk.gypi' ],
1924             },
1925            ],
1926           ],
1927         },
1928         {
1929           # GN: //content/shell/android:linker_test
1930           'target_name': 'chromium_android_linker_test',
1931           'type': 'shared_library',
1932           'defines!': ['CONTENT_IMPLEMENTATION'],
1933           'dependencies': [
1934             'chromium_android_linker_test_jni_headers',
1935             'content_shell_lib',
1936             # Required to include "content/public/browser/android/compositor.h"
1937             # in chromium_linker_test_android.cc :-(
1938             '../skia/skia.gyp:skia',
1939           ],
1940           'sources': [
1941             'shell/android/linker_test_apk/chromium_linker_test_android.cc',
1942             'shell/android/linker_test_apk/chromium_linker_test_linker_tests.cc',
1943           ],
1944         },
1945         {
1946           # GN: //content/shell/android:linker_test_jni_headers
1947           'target_name': 'chromium_android_linker_test_jni_headers',
1948           'type': 'none',
1949           'sources': [
1950             'shell/android/linker_test_apk/src/org/chromium/chromium_linker_test_apk/LinkerTests.java',
1951           ],
1952           'variables': {
1953             'jni_gen_package': 'content/shell',
1954           },
1955           'includes': [ '../build/jni_generator.gypi' ],
1956         },
1957         {
1958           # TODO(GN)
1959           'target_name': 'video_decode_accelerator_unittest_apk',
1960           'type': 'none',
1961           'dependencies': [
1962             'video_decode_accelerator_unittest',
1963           ],
1964           'variables': {
1965             'test_suite_name': 'video_decode_accelerator_unittest',
1966           },
1967           'includes': [ '../build/apk_test.gypi' ],
1968         },
1969         {
1970           # GN: //content/public/test/android:test_support_content_jni_headers
1971           'target_name': 'test_support_content_jni_headers',
1972           'type': 'none',
1973           'sources': [
1974             'public/test/android/javatests/src/org/chromium/content/browser/test/NestedSystemMessageHandler.java',
1975           ],
1976           'variables': {
1977             'jni_gen_package': 'content/public/test',
1978           },
1979           'includes': [ '../build/jni_generator.gypi' ],
1980         },
1981         {
1982           # GN: //content/public/test/android:content_java_test_support
1983           'target_name': 'content_java_test_support',
1984           'type': 'none',
1985           'dependencies': [
1986             '../base/base.gyp:base',
1987             '../base/base.gyp:base_java_test_support',
1988             'content.gyp:content_java',
1989           ],
1990           'variables': {
1991             'java_in_dir': '../content/public/test/android/javatests',
1992           },
1993           'includes': [ '../build/java.gypi' ],
1994         },
1995         {
1996           # GN: //content/shell/android:content_shell_test_apk
1997           #     and //content/public/android:content_javatests
1998           'target_name': 'content_shell_test_apk',
1999           'type': 'none',
2000           'dependencies': [
2001             'content_java_test_support',
2002             'content_shell_apk_java',
2003             'content.gyp:content_java',
2004             '../base/base.gyp:base_java',
2005             '../base/base.gyp:base_javatests',
2006             '../base/base.gyp:base_java_test_support',
2007             '../device/battery/battery.gyp:device_battery_javatests',
2008             '../media/media.gyp:media_java',
2009             '../media/media.gyp:media_test_support',
2010             '../net/net.gyp:net_java',
2011             '../net/net.gyp:net_javatests',
2012             '../net/net.gyp:net_java_test_support',
2013             '../testing/android/on_device_instrumentation.gyp:broker_java',
2014             '../testing/android/on_device_instrumentation.gyp:require_driver_apk',
2015             '../third_party/mojo/mojo_public.gyp:mojo_public_test_interfaces',
2016           ],
2017           'variables': {
2018             'apk_name': 'ContentShellTest',
2019             'java_in_dir': 'shell/android/javatests',
2020             'resource_dir': 'shell/android/shell_apk/res',
2021             'additional_src_dirs': ['public/android/javatests/', ],
2022             'is_test_apk': 1,
2023             'test_type': 'instrumentation',
2024             'isolate_file': 'content_shell_test_apk.isolate',
2025           },
2026           'includes': [
2027             '../build/java_apk.gypi',
2028             '../build/android/test_runner.gypi',
2029           ],
2030         },
2031         {
2032           # GN: //content/public/android:content_junit_tests
2033           'target_name': 'content_junit_tests',
2034           'type': 'none',
2035           'dependencies': [
2036             'content.gyp:content_java',
2037             '../base/base.gyp:base_java',
2038             '../base/base.gyp:base_java_test_support',
2039             '../testing/android/junit/junit_test.gyp:junit_test_support',
2040           ],
2041           'variables': {
2042             'main_class': 'org.chromium.testing.local.JunitTestMain',
2043             'src_paths': [
2044               'public/android/junit/',
2045             ],
2046           },
2047           'includes': [
2048             '../build/host_jar.gypi',
2049           ],
2050         },
2051       ],
2052     }],
2053   ],