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