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