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