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