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