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