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