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