Removing instances of profile_->GetBookmarkModel() as part of converting BookmarkMode...
[chromium-blink-merge.git] / content / content_tests.gypi
blob87e4703c0665936204849df191770058180e7053
1 # Copyright (c) 2012 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': 'test_support_content',
9       'type': 'static_library',
10       'defines!': ['CONTENT_IMPLEMENTATION'],
11       'dependencies': [
12         '../build/temp_gyp/googleurl.gyp:googleurl',
13         'content_app',
14         'content_browser',
15         'content_common',
16         '../net/net.gyp:net_test_support',
17         '../skia/skia.gyp:skia',
18         '../testing/gmock.gyp:gmock',
19         '../testing/gtest.gyp:gtest',
20         '<(webkit_src_dir)/Source/WebKit/chromium/WebKit.gyp:webkit',
21         '../ui/surface/surface.gyp:surface',
22         '../ui/ui.gyp:ui_test_support',
23         '../webkit/support/webkit_support.gyp:appcache',
24       ],
25       'include_dirs': [
26         '..',
27       ],
28       'sources': [
29         'public/test/accessibility_test_utils_win.h',
30         'public/test/browser_test.h',
31         'public/test/browser_test_utils.h',
32         'public/test/content_test_suite_base.h',
33         'public/test/js_injection_ready_observer.h',
34         'public/test/mock_download_item.h',
35         'public/test/mock_download_manager.h',
36         'public/test/mock_notification_observer.h',
37         'public/test/mock_render_process_host.h',
38         'public/test/mock_render_thread.h',
39         'public/test/mock_resource_context.h',
40         'public/test/render_view_fake_resources_test.h',
41         'public/test/render_view_test.h',
42         'public/test/render_widget_browsertest.h',
43         'public/test/test_browser_context.h',
44         'public/test/test_browser_thread.h',
45         'public/test/test_content_client_initializer.h',
46         'public/test/test_file_error_injector.h',
47         'public/test/test_launcher.h',
48         'public/test/test_navigation_observer.h',
49         'public/test/test_notification_tracker.h',
50         'public/test/test_renderer_host.h',
51         'public/test/test_utils.h',
52         'public/test/unittest_test_suite.h',
53         'public/test/web_contents_tester.h',
54         'app/startup_helper_win.cc',
55         # TODO(phajdan.jr): All of those files should live in content/test (if
56         # they're only used by content) or content/public/test (if they're used
57         # by other embedders).
58         'browser/download/mock_download_file.cc',
59         'browser/download/mock_download_file.h',
60         'browser/geolocation/arbitrator_dependency_factories_for_test.cc',
61         'browser/geolocation/arbitrator_dependency_factories_for_test.h',
62         'browser/geolocation/fake_access_token_store.cc',
63         'browser/geolocation/fake_access_token_store.h',
64         'browser/geolocation/mock_location_provider.cc',
65         'browser/geolocation/mock_location_provider.h',
66         'browser/renderer_host/media/mock_media_observer.cc',
67         'browser/renderer_host/media/mock_media_observer.h',
68         'browser/renderer_host/test_backing_store.cc',
69         'browser/renderer_host/test_backing_store.h',
70         'browser/renderer_host/test_render_view_host.cc',
71         'browser/renderer_host/test_render_view_host.h',
72         'browser/web_contents/test_web_contents.cc',
73         'browser/web_contents/test_web_contents.h',
74         'common/test_url_constants.cc',
75         'common/test_url_constants.h',
76         'gpu/gpu_idirect3d9_mock_win.cc',
77         'gpu/gpu_idirect3d9_mock_win.h',
78         'test/accessibility_test_utils_win.cc',
79         'test/browser_test_base.cc',
80         'test/browser_test_base.h',
81         'test/browser_test_utils.cc',
82         'test/content_test_suite.cc',
83         'test/content_test_suite.h',
84         'test/content_test_suite_base.cc',
85         'test/gpu/gpu_test_config.cc',
86         'test/gpu/gpu_test_config.h',
87         'test/gpu/gpu_test_expectations_parser.cc',
88         'test/gpu/gpu_test_expectations_parser.h',
89         'test/mock_download_item.cc',
90         'test/mock_download_manager.cc',
91         'test/mock_keyboard.cc',
92         'test/mock_keyboard_driver_win.cc',
93         'test/mock_keyboard_driver_win.h',
94         'test/mock_keyboard.h',
95         'test/mock_notification_observer.cc',
96         'test/mock_render_process.cc',
97         'test/mock_render_process.h',
98         'test/mock_render_process_host.cc',
99         'test/mock_render_thread.cc',
100         'test/mock_resource_context.cc',
101         'test/net/url_request_failed_job.cc',
102         'test/net/url_request_failed_job.h',
103         'test/net/url_request_mock_http_job.cc',
104         'test/net/url_request_mock_http_job.h',
105         'test/net/url_request_slow_download_job.cc',
106         'test/net/url_request_slow_download_job.h',
107         'test/net/url_request_slow_http_job.cc',
108         'test/net/url_request_slow_http_job.h',
109         'test/net/url_request_abort_on_end_job.cc',
110         'test/net/url_request_abort_on_end_job.h',
111         'test/render_view_fake_resources_test.cc',
112         'test/render_view_test.cc',
113         'test/render_widget_browsertest.cc',
114         'test/test_browser_context.cc',
115         'test/test_browser_thread.cc',
116         'test/test_content_browser_client.cc',
117         'test/test_content_browser_client.h',
118         'test/test_content_client.cc',
119         'test/test_content_client.h',
120         'test/test_content_client_initializer.cc',
121         'test/test_file_error_injector.cc',
122         'test/test_navigation_observer.cc',
123         'test/test_notification_tracker.cc',
124         'test/test_renderer_host.cc',
125         'test/test_render_view_host_factory.cc',
126         'test/test_render_view_host_factory.h',
127         'test/test_launcher.cc',
128         'test/test_utils.cc',
129         'test/test_web_contents_view.cc',
130         'test/test_web_contents_view.h',
131         'test/unittest_test_suite.cc',
132         'test/web_contents_tester.cc',
134         # TODO(phajdan.jr): Those files should be moved to webkit
135         # test support target.
136         '../webkit/appcache/appcache_test_helper.cc',
137         '../webkit/appcache/appcache_test_helper.h',
138         '../webkit/quota/mock_special_storage_policy.cc',
139         '../webkit/quota/mock_special_storage_policy.h',
140       ],
141       'conditions': [
142         ['OS == "win" or (toolkit_uses_gtk == 1 and selinux == 0)', {
143           'dependencies': [
144             '../sandbox/sandbox.gyp:sandbox',
145           ],
146         }],
147         ['enable_webrtc==1', {
148           'sources': [
149             'renderer/media/mock_media_stream_dependency_factory.cc',
150             'renderer/media/mock_media_stream_dependency_factory.h',
151             'renderer/media/mock_media_stream_dispatcher.cc',
152             'renderer/media/mock_media_stream_dispatcher.h',
153             'renderer/media/mock_peer_connection_impl.cc',
154             'renderer/media/mock_peer_connection_impl.h',
155             'renderer/media/mock_web_peer_connection_00_handler_client.cc',
156             'renderer/media/mock_web_peer_connection_00_handler_client.h',
157             'renderer/media/mock_web_peer_connection_handler_client.cc',
158             'renderer/media/mock_web_peer_connection_handler_client.h',
159             'test/webrtc_audio_device_test.cc',
160             'test/webrtc_audio_device_test.h',
161           ],
162           'dependencies': [
163             '../third_party/libjingle/libjingle.gyp:libjingle_peerconnection',
164             '../third_party/webrtc/modules/modules.gyp:audio_device',
165             '../third_party/webrtc/modules/modules.gyp:video_capture_module',
166             '../third_party/webrtc/system_wrappers/source/system_wrappers.gyp:system_wrappers',
167             '../third_party/webrtc/video_engine/video_engine.gyp:video_engine_core',
168             '../third_party/webrtc/voice_engine/voice_engine.gyp:voice_engine_core'],
169         }],
170         ['toolkit_uses_gtk == 1', {
171           'dependencies': [
172             '../build/linux/system.gyp:gtk',
173           ],
174         }],
175         ['use_glib == 1', {
176           'dependencies': [
177             '../build/linux/system.gyp:glib',
178           ],
179         }],
180         ['use_aura==1', {
181           'dependencies': [
182             '../ui/aura/aura.gyp:test_support_aura',
183             '../ui/compositor/compositor.gyp:compositor',
184           ],
185         }],
186         ['OS=="win"', {
187           'dependencies': [
188             '../third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
189           ],
190         }],
191         ['OS!="android"', {
192           'dependencies': [
193             '../third_party/libvpx/libvpx.gyp:libvpx',
194           ],
195         }],
196       ],
197     },
198     {
199       'target_name': 'content_unittests',
200       'type': '<(gtest_target_type)',
201       'defines!': ['CONTENT_IMPLEMENTATION'],
202       'dependencies': [
203         'content_common',
204         'content_gpu',
205         'content_plugin',
206         'content_renderer',
207         'test_support_content',
208         'browser/speech/proto/speech_proto.gyp:speech_proto',
209         'content_resources.gyp:content_resources',
210         '../base/base.gyp:test_support_base',
211         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
212         '../crypto/crypto.gyp:crypto',
213         '../gpu/gpu.gyp:gpu_unittest_utils',
214         '../ipc/ipc.gyp:test_support_ipc',
215         '../jingle/jingle.gyp:jingle_glue_test_util',
216         '../media/media.gyp:media_test_support',
217         '../net/net.gyp:net_test_support',
218         '../skia/skia.gyp:skia',
219         '../testing/gmock.gyp:gmock',
220         '../testing/gtest.gyp:gtest',
221         '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
222         '../third_party/libjingle/libjingle.gyp:libjingle',
223         '<(webkit_src_dir)/Source/WebKit/chromium/WebKit.gyp:webkit',
224         '../ui/gl/gl.gyp:gl',
225         '../ui/ui.gyp:ui',
226         '../v8/tools/gyp/v8.gyp:v8',
227         '../webkit/support/webkit_support.gyp:appcache',
228         '../webkit/support/webkit_support.gyp:blob',
229         '../webkit/support/webkit_support.gyp:database',
230         '../webkit/support/webkit_support.gyp:dom_storage',
231         '../webkit/support/webkit_support.gyp:fileapi',
232         '../webkit/support/webkit_support.gyp:glue',
233         '../webkit/support/webkit_support.gyp:quota',
234         '../webkit/support/webkit_support.gyp:webkit_media',
235         '../webkit/webkit.gyp:test_shell_test_support',
236       ],
237       'include_dirs': [
238         '..',
239       ],
240       'sources': [
241         'browser/accessibility/browser_accessibility_mac_unittest.mm',
242         'browser/accessibility/browser_accessibility_manager_unittest.cc',
243         'browser/accessibility/browser_accessibility_win_unittest.cc',
244         'browser/appcache/chrome_appcache_service_unittest.cc',
245         'browser/browser_thread_unittest.cc',
246         'browser/browser_url_handler_impl_unittest.cc',
247         'browser/child_process_security_policy_unittest.cc',
248         'browser/debugger/devtools_manager_unittest.cc',
249         'browser/device_orientation/provider_unittest.cc',
250         'browser/download/base_file_unittest.cc',
251         'browser/download/byte_stream_unittest.cc',
252         'browser/download/download_file_manager_unittest.cc',
253         'browser/download/download_file_unittest.cc',
254         'browser/download/download_id_unittest.cc',
255         'browser/download/download_item_impl_unittest.cc',
256         'browser/download/download_manager_impl_unittest.cc',
257         'browser/download/file_metadata_unittest_linux.cc',
258         'browser/download/save_package_unittest.cc',
259         'browser/gamepad/gamepad_provider_unittest.cc',
260         'browser/geolocation/device_data_provider_unittest.cc',
261         'browser/geolocation/geolocation_provider_unittest.cc',
262         'browser/geolocation/gps_location_provider_unittest_linux.cc',
263         'browser/geolocation/location_arbitrator_unittest.cc',
264         'browser/geolocation/network_location_provider_unittest.cc',
265         'browser/geolocation/wifi_data_provider_common_unittest.cc',
266         'browser/geolocation/wifi_data_provider_linux_unittest.cc',
267         'browser/geolocation/wifi_data_provider_unittest_win.cc',
268         'browser/geolocation/win7_location_api_unittest_win.cc',
269         'browser/geolocation/win7_location_provider_unittest_win.cc',
270         'browser/host_zoom_map_impl_unittest.cc',
271         'browser/in_process_webkit/indexed_db_quota_client_unittest.cc',
272         'browser/in_process_webkit/indexed_db_unittest.cc',
273         'browser/in_process_webkit/webkit_thread_unittest.cc',
274         'browser/intents/intent_injector_unittest.cc',
275         'browser/intents/internal_web_intents_dispatcher_unittest.cc',
276         'browser/mach_broker_mac_unittest.cc',
277         'browser/notification_service_impl_unittest.cc',
278         'browser/plugin_loader_posix_unittest.cc',
279         'browser/renderer_host/gtk_key_bindings_handler_unittest.cc',
280         'browser/renderer_host/media/audio_input_device_manager_unittest.cc',
281         'browser/renderer_host/media/audio_renderer_host_unittest.cc',
282         'browser/renderer_host/media/media_stream_device_settings_unittest.cc',
283         'browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc',
284         'browser/renderer_host/media/video_capture_controller_unittest.cc',
285         'browser/renderer_host/media/video_capture_host_unittest.cc',
286         'browser/renderer_host/media/video_capture_manager_unittest.cc',
287         'browser/renderer_host/render_view_host_unittest.cc',
288         'browser/renderer_host/render_widget_host_unittest.cc',
289         'browser/renderer_host/render_widget_host_view_aura_unittest.cc',
290         'browser/renderer_host/render_widget_host_view_mac_editcommand_helper_unittest.mm',
291         'browser/renderer_host/render_widget_host_view_mac_unittest.mm',
292         'browser/renderer_host/resource_dispatcher_host_unittest.cc',
293         'browser/renderer_host/text_input_client_mac_unittest.mm',
294         'browser/renderer_host/web_input_event_aura_unittest.cc',
295         'browser/resolve_proxy_msg_helper_unittest.cc',
296         'browser/site_instance_impl_unittest.cc',
297         'browser/speech/chunked_byte_buffer_unittest.cc',
298         'browser/speech/endpointer/endpointer_unittest.cc',
299         'browser/speech/google_one_shot_remote_engine_unittest.cc',
300         'browser/speech/google_streaming_remote_engine_unittest.cc',
301         'browser/speech/speech_recognizer_unittest.cc',
302         'browser/ssl/ssl_host_state_unittest.cc',
303         'browser/system_message_window_win_unittest.cc',
304         'browser/trace_subscriber_stdio_unittest.cc',
305         'browser/web_contents/navigation_controller_impl_unittest.cc',
306         'browser/web_contents/navigation_entry_impl_unittest.cc',
307         'browser/web_contents/render_view_host_manager_unittest.cc',
308         'browser/web_contents/web_contents_delegate_unittest.cc',
309         'browser/web_contents/web_contents_impl_unittest.cc',
310         'browser/web_contents/web_contents_view_mac_unittest.mm',
311         'browser/web_contents/web_drag_dest_mac_unittest.mm',
312         'browser/web_contents/web_drag_source_mac_unittest.mm',
313         'browser/webui/web_ui_message_handler_unittest.cc',
314         'common/android/address_parser_unittest.cc',
315         'common/mac/attributed_string_coder_unittest.mm',
316         'common/mac/font_descriptor_unittest.mm',
317         'common/gpu/gpu_info_unittest.cc',
318         'common/gpu/gpu_memory_manager_unittest.cc',
319         'common/gpu/media/avc_config_record_builder_unittest.cc',
320         'common/indexed_db/indexed_db_dispatcher_unittest.cc',
321         'common/inter_process_time_ticks_converter_unittest.cc',
322         'common/page_zoom_unittest.cc',
323         'common/resource_dispatcher_unittest.cc',
324         'common/sandbox_mac_diraccess_unittest.mm',
325         'common/sandbox_mac_fontloading_unittest.mm',
326         'common/sandbox_mac_unittest_helper.h',
327         'common/sandbox_mac_unittest_helper.mm',
328         'common/sandbox_mac_system_access_unittest.mm',
329         'gpu/gpu_info_collector_unittest.cc',
330         'gpu/gpu_info_collector_unittest_win.cc',
331         'renderer/active_notification_tracker_unittest.cc',
332         'renderer/android/email_detector_unittest.cc',
333         'renderer/android/phone_number_detector_unittest.cc',
334         'renderer/gpu/input_event_filter_unittest.cc',
335         'renderer/hyphenator/hyphenator_unittest.cc',
336         'renderer/media/audio_message_filter_unittest.cc',
337         'renderer/media/audio_renderer_mixer_manager_unittest.cc',
338         'renderer/media/capture_video_decoder_unittest.cc',
339         'renderer/media/video_capture_impl_unittest.cc',
340         'renderer/media/video_capture_message_filter_unittest.cc',
341         'renderer/paint_aggregator_unittest.cc',
342         'renderer/pepper/pepper_broker_impl_unittest.cc',
343         'renderer/v8_value_converter_impl_unittest.cc',
344         'test/gpu/gpu_test_config_unittest.cc',
345         'test/gpu/gpu_test_expectations_parser_unittest.cc',
346         'test/run_all_unittests.cc',
347         '../webkit/appcache/manifest_parser_unittest.cc',
348         '../webkit/appcache/appcache_unittest.cc',
349         '../webkit/appcache/appcache_database_unittest.cc',
350         '../webkit/appcache/appcache_group_unittest.cc',
351         '../webkit/appcache/appcache_host_unittest.cc',
352         '../webkit/appcache/appcache_quota_client_unittest.cc',
353         '../webkit/appcache/appcache_request_handler_unittest.cc',
354         '../webkit/appcache/appcache_response_unittest.cc',
355         '../webkit/appcache/appcache_service_unittest.cc',
356         '../webkit/appcache/appcache_storage_unittest.cc',
357         '../webkit/appcache/appcache_storage_impl_unittest.cc',
358         '../webkit/appcache/appcache_update_job_unittest.cc',
359         '../webkit/appcache/appcache_url_request_job_unittest.cc',
360         '../webkit/appcache/mock_appcache_policy.h',
361         '../webkit/appcache/mock_appcache_policy.cc',
362         '../webkit/appcache/mock_appcache_service.cc',
363         '../webkit/appcache/mock_appcache_service.h',
364         '../webkit/appcache/mock_appcache_storage.cc',
365         '../webkit/appcache/mock_appcache_storage.h',
366         '../webkit/appcache/mock_appcache_storage_unittest.cc',
367         '../webkit/blob/blob_storage_controller_unittest.cc',
368         '../webkit/blob/blob_url_request_job_unittest.cc',
369         '../webkit/blob/local_file_stream_reader_unittest.cc',
370         '../webkit/blob/shareable_file_reference_unittest.cc',
371         '../webkit/database/database_connections_unittest.cc',
372         '../webkit/database/database_quota_client_unittest.cc',
373         '../webkit/database/databases_table_unittest.cc',
374         '../webkit/database/database_tracker_unittest.cc',
375         '../webkit/database/database_util_unittest.cc',
376         '../webkit/database/quota_table_unittest.cc',
377         '../webkit/dom_storage/dom_storage_area_unittest.cc',
378         '../webkit/dom_storage/dom_storage_cached_area_unittest.cc',
379         '../webkit/dom_storage/dom_storage_context_unittest.cc',
380         '../webkit/dom_storage/dom_storage_database_unittest.cc',
381         '../webkit/dom_storage/dom_storage_map_unittest.cc',
382         '../webkit/dom_storage/session_storage_database_unittest.cc',
383         '../webkit/fileapi/file_system_database_test_helper.cc',
384         '../webkit/fileapi/file_system_database_test_helper.h',
385         '../webkit/fileapi/file_system_directory_database_unittest.cc',
386         '../webkit/fileapi/file_system_dir_url_request_job_unittest.cc',
387         '../webkit/fileapi/file_system_file_util_unittest.cc',
388         '../webkit/fileapi/file_system_mount_point_provider_unittest.cc',
389         '../webkit/fileapi/file_system_origin_database_unittest.cc',
390         '../webkit/fileapi/file_system_quota_client_unittest.cc',
391         '../webkit/fileapi/file_system_url_request_job_unittest.cc',
392         '../webkit/fileapi/file_system_usage_cache_unittest.cc',
393         '../webkit/fileapi/file_system_util_unittest.cc',
394         '../webkit/fileapi/file_writer_delegate_unittest.cc',
395         '../webkit/fileapi/isolated_context_unittest.cc',
396         '../webkit/fileapi/isolated_file_util_unittest.cc',
397         '../webkit/fileapi/local_file_system_operation_write_unittest.cc',
398         '../webkit/fileapi/local_file_system_operation_unittest.cc',
399         '../webkit/fileapi/local_file_system_quota_unittest.cc',
400         '../webkit/fileapi/local_file_system_test_helper.cc',
401         '../webkit/fileapi/local_file_system_test_helper.h',
402         '../webkit/fileapi/local_file_stream_writer_unittest.cc',
403         '../webkit/fileapi/local_file_util_unittest.cc',
404         '../webkit/fileapi/mock_file_system_options.cc',
405         '../webkit/fileapi/mock_file_system_options.h',
406         '../webkit/fileapi/obfuscated_file_util_unittest.cc',
407         '../webkit/fileapi/sandbox_mount_point_provider_unittest.cc',
408         '../webkit/fileapi/test_file_set.cc',
409         '../webkit/fileapi/test_file_set.h',
410         '../webkit/fileapi/webfilewriter_base_unittest.cc',
411         '../webkit/media/buffered_data_source_unittest.cc',
412         '../webkit/media/buffered_resource_loader_unittest.cc',
413         '../webkit/media/cache_util_unittest.cc',
414         '../webkit/media/skcanvas_video_renderer_unittest.cc',
415         '../webkit/media/test_response_generator.cc',
416         '../webkit/media/test_response_generator.h',
417         '../webkit/mocks/mock_weburlloader.cc',
418         '../webkit/mocks/mock_weburlloader.h',
419         '../webkit/plugins/npapi/plugin_group_unittest.cc',
420         '../webkit/plugins/npapi/plugin_lib_unittest.cc',
421         '../webkit/plugins/npapi/plugin_list_unittest.cc',
422         '../webkit/plugins/npapi/webplugin_impl_unittest.cc',
423         '../webkit/quota/mock_quota_manager.cc',
424         '../webkit/quota/mock_quota_manager.h',
425         '../webkit/quota/mock_quota_manager_unittest.cc',
426         '../webkit/quota/mock_storage_client.cc',
427         '../webkit/quota/mock_storage_client.h',
428         '../webkit/quota/quota_database_unittest.cc',
429         '../webkit/quota/quota_manager_unittest.cc',
430         '../webkit/quota/quota_temporary_storage_evictor_unittest.cc',
431       ],
432       'conditions': [
433         ['enable_webrtc==1', {
434           'sources': [
435             'browser/renderer_host/p2p/socket_host_test_utils.h',
436             'browser/renderer_host/p2p/socket_host_tcp_unittest.cc',
437             'browser/renderer_host/p2p/socket_host_tcp_server_unittest.cc',
438             'browser/renderer_host/p2p/socket_host_udp_unittest.cc',
439             'renderer/media/media_stream_dispatcher_unittest.cc',
440             'renderer/media/media_stream_impl_unittest.cc',
441             'renderer/media/peer_connection_handler_jsep_unittest.cc',
442             'renderer/media/rtc_video_decoder_unittest.cc',
443             'renderer/media/webrtc_audio_device_unittest.cc',
444             'renderer/p2p/p2p_transport_impl_unittest.cc',
445           ],
446           'dependencies': [
447             '../third_party/libjingle/libjingle.gyp:libjingle_peerconnection',
448             '../third_party/webrtc/modules/modules.gyp:video_capture_module',
449             '../third_party/webrtc/system_wrappers/source/system_wrappers.gyp:system_wrappers',
450             '../third_party/webrtc/video_engine/video_engine.gyp:video_engine_core',
451             '../third_party/webrtc/voice_engine/voice_engine.gyp:voice_engine_core',
452           ]
453         }],
454         # TODO(jrg): remove the OS=="android" section?
455         # http://crbug.com/113172
456         # Understand better how media_stream_ is tied into Chromium.
457         ['enable_webrtc==0 and OS=="android"', {
458           'sources/': [
459             ['exclude', '^renderer/media/media_stream_'],
460           ],
461         }],
462         ['input_speech==0', {
463           'sources/': [
464             ['exclude', '^browser/speech/'],
465           ]
466         }],
467         ['notifications==0', {
468            'sources!': [
469              'renderer/active_notification_tracker_unittest.cc',
470            ],
471         }],
472         ['use_x11 == 1', {
473           'dependencies': [
474             '../build/linux/system.gyp:dbus',
475             '../dbus/dbus.gyp:dbus_test_support',
476           ],
477         }],
478         ['OS=="win" and win_use_allocator_shim==1', {
479           'dependencies': [
480             '../base/allocator/allocator.gyp:allocator',
481           ],
482         }],
483         ['OS=="win"', {
484           'dependencies': [
485             '../third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
486           ],
487         }],
488         ['OS=="mac"', {
489           # These flags are needed to run the test on Mac.
490           # Search for comments about "xcode_settings" in chrome_tests.gypi.
491           'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
492         }],
493         ['chromeos==1', {
494           'sources/': [
495             ['exclude', '^browser/renderer_host/gtk_key_bindings_handler_unittest.cc'],
496           ],
497         }],
498         ['use_aura==1', {
499           'dependencies': [
500             '../ui/aura/aura.gyp:aura',
501           ],
502           'sources!': [
503             'browser/accessibility/browser_accessibility_win_unittest.cc',
504           ],
505         }],
506         ['OS == "android"', {
507           'sources!': [
508             'browser/geolocation/device_data_provider_unittest.cc',
509             'browser/geolocation/gps_location_provider_unittest_linux.cc',
510             'browser/geolocation/network_location_provider_unittest.cc',
511             'browser/geolocation/wifi_data_provider_common_unittest.cc',
512             'browser/geolocation/wifi_data_provider_linux_unittest.cc',
513           ],
514         }, { # OS != "android"
515           'dependencies': [
516             '../third_party/libvpx/libvpx.gyp:libvpx',
517           ],
518         }],
519         ['OS == "android" and gtest_target_type == "shared_library"', {
520           'dependencies': [
521             '../testing/android/native_test.gyp:native_test_native_code',
522           ],
523         }],
524       ],
525     },
526     {
527       'target_name': 'content_browsertests',
528       'type': 'executable',
529       'defines!': ['CONTENT_IMPLEMENTATION'],
530       'dependencies': [
531         'content_gpu',
532         'content_plugin',
533         'content_renderer',
534         'content_shell_lib',
535         'content_shell_pak',
536         'test_support_content',
537         '../base/base.gyp:test_support_base',
538         '../ipc/ipc.gyp:test_support_ipc',
539         '../net/net.gyp:net_test_support',
540         '../ppapi/ppapi_internal.gyp:ppapi_host',
541         '../ppapi/ppapi_internal.gyp:ppapi_proxy',
542         '../ppapi/ppapi_internal.gyp:ppapi_shared',
543         '../ppapi/ppapi_internal.gyp:ppapi_unittest_shared',
544         '../skia/skia.gyp:skia',
545         '../testing/gmock.gyp:gmock',
546         '../testing/gtest.gyp:gtest',
547         '../ui/ui.gyp:ui',
548         '../webkit/support/webkit_support.gyp:glue',
549       ],
550       'include_dirs': [
551         '..',
552       ],
553       'defines': [
554         'HAS_OUT_OF_PROC_TEST_RUNNER',
555       ],
556       'sources': [
557         'browser/accessibility/cross_platform_accessibility_browsertest.cc',
558         'browser/accessibility/dump_accessibility_tree_browsertest.cc',
559         'browser/accessibility/dump_accessibility_tree_helper.cc',
560         'browser/accessibility/dump_accessibility_tree_helper.h',
561         'browser/accessibility/dump_accessibility_tree_helper_mac.mm',
562         'browser/accessibility/dump_accessibility_tree_helper_win.cc',
563         'browser/appcache/appcache_browsertest.cc',
564         'browser/audio_browsertest.cc',
565         'browser/child_process_security_policy_browsertest.cc',
566         'browser/device_orientation/device_orientation_browsertest.cc',
567         'browser/dom_storage/dom_storage_browsertest.cc',
568         'browser/download/mhtml_generation_browsertest.cc',
569         'browser/download/save_package_browsertest.cc',
570         'browser/fileapi/file_system_browsertest.cc',
571         'browser/in_process_webkit/indexed_db_browsertest.cc',
572         'browser/in_process_webkit/indexed_db_layout_browsertest.cc',
573         'browser/indexed_db/idbbindingutilities_browsertest.cc',
574         'browser/media_browsertest.cc',
575         'browser/plugin_data_remover_impl_browsertest.cc',
576         'browser/plugin_browsertest.cc',
577         'browser/plugin_service_impl_browsertest.cc',
578         'browser/renderer_host/render_view_host_browsertest.cc',
579         'browser/renderer_host/render_view_host_manager_browsertest.cc',
580         'browser/renderer_host/resource_dispatcher_host_browsertest.cc',
581         'browser/session_history_browsertest.cc',
582         'browser/speech/speech_recognition_browsertest.cc',
583         'browser/webkit_browsertest.cc',
584         'browser/worker_host/test/worker_browsertest.cc',
585         'renderer/mouse_lock_dispatcher_browsertest.cc',
586         'renderer/pepper/pepper_file_chooser_host_unittest.cc',
587         'renderer/render_view_browsertest.cc',
588         'renderer/render_view_browsertest_mac.mm',
589         'renderer/renderer_accessibility_browsertest.cc',
590         'test/content_browser_test.h',
591         'test/content_browser_test.cc',
592         'test/content_browser_test_utils.cc',
593         'test/content_browser_test_utils.h',
594         'test/content_browser_test_utils_mac.mm',
595         'test/content_browser_test_test.cc',
596         'test/content_test_launcher.cc',
597         'test/layout_browsertest.cc',
598         'test/layout_browsertest.h',
599         'test/layout_test_http_server.cc',
600         'test/layout_test_http_server.h',
601       ],
602       'conditions': [
603         ['OS=="win"', {
604           'resource_include_dirs': [
605             '<(SHARED_INTERMEDIATE_DIR)/webkit',
606           ],
607           'sources': [
608             'shell/resource.h',
609             'shell/shell.rc',
610             # TODO:  It would be nice to have these pulled in
611             # automatically from direct_dependent_settings in
612             # their various targets (net.gyp:net_resources, etc.),
613             # but that causes errors in other targets when
614             # resulting .res files get referenced multiple times.
615             '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc',
616             '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.rc',
617             '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.rc',
618             '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.rc',
619           ],
620           'dependencies': [
621             '<(DEPTH)/net/net.gyp:net_resources',
622             '<(DEPTH)/third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
623             '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_resources',
624             '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_strings',
625           ],
626           'configurations': {
627             'Debug_Base': {
628               'msvs_settings': {
629                 'VCLinkerTool': {
630                   'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
631                 },
632               },
633             },
634           },
635         }],
636         ['OS=="win" and win_use_allocator_shim==1', {
637           'dependencies': [
638             '../base/allocator/allocator.gyp:allocator',
639           ],
640         }],
641         ['OS=="linux"', {
642           'sources!': [
643             'browser/accessibility/dump_accessibility_tree_browsertest.cc',
644             'browser/accessibility/dump_accessibility_tree_helper.cc',
645           ],
646         }],
647         ['OS=="mac"', {
648           'dependencies': [
649             'content_shell',  # Needed for Content Shell.app's Helper.
650           ],
651         }],
652         ['use_aura==1', {
653           'sources!': [
654             'browser/accessibility/dump_accessibility_tree_browsertest.cc',
655             'browser/accessibility/dump_accessibility_tree_helper_win.cc',
656             'browser/accessibility/dump_accessibility_tree_helper.cc',
657             'browser/plugin_browsertest.cc',
658           ],
659         }],
660         ['target_arch!="arm"', {
661           'dependencies': [
662             # Runtime dependencies
663             '../webkit/webkit.gyp:copy_npapi_test_plugin',
664             '../webkit/webkit.gyp:pull_in_copy_TestNetscapePlugIn',
665           ],
666         }],
667       ],
668     },
669   ],
670   'conditions': [
671     ['chromeos==1 or OS=="linux" or OS=="win" or OS=="mac"', {
672       'targets': [
673           {
674             'target_name': 'video_decode_accelerator_unittest',
675             'type': 'executable',
676             'dependencies': [
677               'content',
678               '../base/base.gyp:base',
679               '../testing/gtest.gyp:gtest',
680               '../media/media.gyp:media',
681               '../ui/ui.gyp:ui',
682             ],
683             'include_dirs': [
684               '<(DEPTH)/third_party/angle/include',
685             ],
686             'sources': [
687               'common/gpu/media/rendering_helper.h',
688               'common/gpu/media/rendering_helper_mac.mm',
689               'common/gpu/media/rendering_helper_gl.cc',
690               'common/gpu/media/video_decode_accelerator_unittest.cc',
691             ],
692             'conditions': [
693               ['target_arch=="arm"', {
694                 'include_dirs': [
695                   '<(DEPTH)/third_party/openmax/il',
696                 ],
697               }],
698               ['OS=="mac"', {
699                 'sources!': [
700                   'common/gpu/media/rendering_helper_gl.cc',
701                 ],
702               }],
703               ['OS=="win"', {
704                 'dependencies': [
705                   '../third_party/angle/src/build_angle.gyp:libEGL',
706                   '../third_party/angle/src/build_angle.gyp:libGLESv2',
707                 ],
708               }],
709               ['(OS=="win" and win_use_allocator_shim==1) or '
710                '(os_posix == 1 and OS != "mac" and OS != "android" and '
711                ' linux_use_tcmalloc==1)', {
712                 'dependencies': [
713                   '../base/allocator/allocator.gyp:allocator',
714                 ],
715               }],
716               ['target_arch != "arm"', {
717                  'dependencies': [
718                    '../ui/gl/gl.gyp:gl',
719                  ],
720               }],
721               ['target_arch != "arm" and (OS=="linux" or chromeos == 1)', {
722                 'include_dirs': [
723                   '<(DEPTH)/third_party/libva',
724                 ],
725               }],
726             ],
727           },
728         ]
729     }],
730     ['chromeos == 1 or OS == "linux"', {
731       'targets': [
732         {
733           'target_name': 'h264_parser_unittest',
734           'type': 'executable',
735           'dependencies': [
736             'content_common',
737             '../base/base.gyp:base',
738             '../testing/gtest.gyp:gtest',
739           ],
740           'sources': [
741             'common/gpu/media/h264_parser_unittest.cc',
742           ],
743         }
744       ],
745     }],
746     # Special target to wrap a gtest_target_type==shared_library
747     # content_unittests into an android apk for execution.
748     # See base.gyp for TODO(jrg)s about this strategy.
749     ['OS == "android" and gtest_target_type == "shared_library"', {
750       'targets': [
751         {
752           'target_name': 'content_unittests_apk',
753           'type': 'none',
754           'dependencies': [
755             '../base/base.gyp:base_java',
756             'content_java',
757             'content_unittests',
758             '../net/net.gyp:net_java',
759           ],
760           'variables': {
761             'test_suite_name': 'content_unittests',
762             'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)content_unittests<(SHARED_LIB_SUFFIX)',
763             'input_jars_paths': [
764               '<(PRODUCT_DIR)/lib.java/chromium_base.jar',
765               '<(PRODUCT_DIR)/lib.java/chromium_content.jar',
766               '<(PRODUCT_DIR)/lib.java/chromium_net.jar',
767             ],
768           },
769           'includes': [ '../build/apk_test.gypi' ],
770         },
771       ],
772     }],
773     ['OS == "android"', {
774       'targets': [
775         {
776           'target_name': 'content_javatests',
777           'type': 'none',
778           'dependencies': [
779             '../base/base.gyp:base_java',
780             '../base/base.gyp:base_java_test_support',
781             'content_common',
782             'content_java',
783           ],
784           'variables': {
785             'package_name': 'content_javatests',
786             'java_in_dir': '../content/public/android/javatests',
787           },
788           'includes': [ '../build/java.gypi' ],
789         },
790         {
791           'target_name': 'content_shell_test_apk',
792           'type': 'none',
793           'dependencies': [
794             'content_shell_apk',
795             'content_javatests',
796             '../tools/android/forwarder/forwarder.gyp:forwarder',
797           ],
798           'actions': [
799             {
800               'action_name': 'copy_base_javatests_jar',
801               'inputs': ['<(PRODUCT_DIR)/lib.java/chromium_base_javatests.jar'],
802               'outputs': ['<(PRODUCT_DIR)/content_shell_test/java/libs/chromium_base_javatests.jar'],
803               'action': ['cp', '<@(_inputs)', '<@(_outputs)'],
804             },
805             {
806               'action_name': 'copy_content_javatests_jar',
807               'inputs': ['<(PRODUCT_DIR)/lib.java/chromium_content_javatests.jar'],
808               'outputs': ['<(PRODUCT_DIR)/content_shell_test/java/libs/chromium_content_javatests.jar'],
809               'action': ['cp', '<@(_inputs)', '<@(_outputs)'],
810             },
811             {
812               'action_name': 'content_shell_test_generate_apk',
813               'inputs': [
814                 '<(DEPTH)/content/shell/android/javatests/content_shell_test_apk.xml',
815                 '<(DEPTH)/content/shell/android/javatests/AndroidManifest.xml',
816               ],
817               'outputs': [
818                 '<(PRODUCT_DIR)/content_shell_test/ContentShellTest-debug.apk',
819               ],
820               'action': [
821                 'ant',
822                 '-DPRODUCT_DIR=<(ant_build_out)',
823                 '-DAPP_ABI=<(android_app_abi)',
824                 '-buildfile',
825                 '<(DEPTH)/content/shell/android/javatests/content_shell_test_apk.xml',
826               ]
827             }
828           ],
829         },
830       ],
831     }],
832   ],