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