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