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