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.
8 'target_name': 'test_support_content',
9 'type': 'static_library',
10 'defines!': ['CONTENT_IMPLEMENTATION'],
12 '../build/temp_gyp/googleurl.gyp:googleurl',
16 '../media/media.gyp:media',
17 '../net/net.gyp:net_test_support',
18 '../skia/skia.gyp:skia',
19 '../testing/gmock.gyp:gmock',
20 '../testing/gtest.gyp:gtest',
21 '../ui/ui.gyp:ui_test_support',
27 'public/test/accessibility_test_utils_win.cc',
28 'public/test/accessibility_test_utils_win.h',
29 'public/test/browser_test.h',
30 'public/test/browser_test_base.cc',
31 'public/test/browser_test_base.h',
32 'public/test/browser_test_utils.cc',
33 'public/test/browser_test_utils.h',
34 'public/test/content_test_suite_base.cc',
35 'public/test/content_test_suite_base.h',
36 'public/test/download_test_observer.cc',
37 'public/test/download_test_observer.h',
38 'public/test/js_injection_ready_observer.h',
39 'public/test/layouttest_support.h',
40 'public/test/mock_download_item.cc',
41 'public/test/mock_download_item.h',
42 'public/test/mock_download_manager.cc',
43 'public/test/mock_download_manager.h',
44 'public/test/mock_notification_observer.cc',
45 'public/test/mock_notification_observer.h',
46 'public/test/mock_render_process_host.cc',
47 'public/test/mock_render_process_host.h',
48 'public/test/mock_render_thread.cc',
49 'public/test/mock_render_thread.h',
50 'public/test/mock_resource_context.cc',
51 'public/test/mock_resource_context.h',
52 'public/test/render_view_fake_resources_test.cc',
53 'public/test/render_view_fake_resources_test.h',
54 'public/test/render_view_test.cc',
55 'public/test/render_view_test.h',
56 'public/test/render_widget_test.cc',
57 'public/test/render_widget_test.h',
58 'public/test/test_browser_context.cc',
59 'public/test/test_browser_context.h',
60 'public/test/test_browser_thread.cc',
61 'public/test/test_browser_thread.h',
62 'public/test/test_content_client_initializer.cc',
63 'public/test/test_content_client_initializer.h',
64 'public/test/test_file_error_injector.cc',
65 'public/test/test_file_error_injector.h',
66 'public/test/test_launcher.cc',
67 'public/test/test_launcher.h',
68 'public/test/test_navigation_observer.cc',
69 'public/test/test_navigation_observer.h',
70 'public/test/test_notification_tracker.cc',
71 'public/test/test_notification_tracker.h',
72 'public/test/test_renderer_host.cc',
73 'public/test/test_renderer_host.h',
74 'public/test/test_utils.cc',
75 'public/test/test_utils.h',
76 'public/test/unittest_test_suite.cc',
77 'public/test/unittest_test_suite.h',
78 'public/test/web_contents_tester.cc',
79 'public/test/web_contents_tester.h',
80 'app/startup_helper_win.cc',
81 # TODO(phajdan.jr): All of those files should live in content/test (if
82 # they're only used by content) or content/public/test (if they're used
83 # by other embedders).
84 'browser/download/mock_download_file.cc',
85 'browser/download/mock_download_file.h',
86 'browser/geolocation/fake_access_token_store.cc',
87 'browser/geolocation/fake_access_token_store.h',
88 'browser/geolocation/mock_location_arbitrator.cc',
89 'browser/geolocation/mock_location_arbitrator.h',
90 'browser/geolocation/mock_location_provider.cc',
91 'browser/geolocation/mock_location_provider.h',
92 'browser/renderer_host/media/mock_media_observer.cc',
93 'browser/renderer_host/media/mock_media_observer.h',
94 'browser/renderer_host/test_backing_store.cc',
95 'browser/renderer_host/test_backing_store.h',
96 'browser/renderer_host/test_render_view_host.cc',
97 'browser/renderer_host/test_render_view_host.h',
98 'browser/web_contents/test_web_contents.cc',
99 'browser/web_contents/test_web_contents.h',
100 'gpu/gpu_idirect3d9_mock_win.cc',
101 'gpu/gpu_idirect3d9_mock_win.h',
102 'test/content_test_suite.cc',
103 'test/content_test_suite.h',
104 'test/gpu/gpu_test_config.cc',
105 'test/gpu/gpu_test_config.h',
106 'test/gpu/gpu_test_expectations_parser.cc',
107 'test/gpu/gpu_test_expectations_parser.h',
108 'test/layouttest_support.cc',
109 'test/mock_keyboard.cc',
110 'test/mock_keyboard_driver_win.cc',
111 'test/mock_keyboard_driver_win.h',
112 'test/mock_keyboard.h',
113 'test/mock_render_process.cc',
114 'test/mock_render_process.h',
115 'test/net/url_request_failed_job.cc',
116 'test/net/url_request_failed_job.h',
117 'test/net/url_request_mock_http_job.cc',
118 'test/net/url_request_mock_http_job.h',
119 'test/net/url_request_slow_download_job.cc',
120 'test/net/url_request_slow_download_job.h',
121 'test/net/url_request_slow_http_job.cc',
122 'test/net/url_request_slow_http_job.h',
123 'test/net/url_request_abort_on_end_job.cc',
124 'test/net/url_request_abort_on_end_job.h',
125 'test/test_content_browser_client.cc',
126 'test/test_content_browser_client.h',
127 'test/test_content_client.cc',
128 'test/test_content_client.h',
129 'test/test_render_view_host_factory.cc',
130 'test/test_render_view_host_factory.h',
131 'test/test_web_contents_view.cc',
132 'test/test_web_contents_view.h',
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',
144 # iOS only needs a small portion of content; exclude all the
145 # implementation, and re-include what is used.
146 ['exclude', '\\.(cc|mm)$'],
147 ['include', '_ios\\.(cc|mm)$'],
148 ['include', '^public/test/content_test_suite_base\\.cc$'],
149 ['include', '^public/test/mock_notification_observer\\.cc$'],
150 ['include', '^public/test/mock_resource_context\\.cc$'],
151 ['include', '^public/test/test_browser_thread\\.cc$'],
152 ['include', '^public/test/test_content_client_initializer\\.cc$'],
153 ['include', '^public/test/test_notification_tracker\\.cc$'],
154 ['include', '^public/test/test_utils\\.cc$'],
155 ['include', '^public/test/unittest_test_suite\\.cc$'],
156 ['include', '^test/content_test_suite\\.cc$'],
157 ['include', '^test/test_content_browser_client\\.cc$'],
158 ['include', '^test/test_content_client\\.cc$'],
162 'content_ppapi_plugin',
165 '../ppapi/ppapi_internal.gyp:ppapi_host',
166 '../ppapi/ppapi_internal.gyp:ppapi_proxy',
167 '../ppapi/ppapi_internal.gyp:ppapi_shared',
168 '../ppapi/ppapi_internal.gyp:ppapi_unittest_shared',
169 '<(webkit_src_dir)/Source/WebKit/chromium/WebKit.gyp:webkit',
170 '<(webkit_src_dir)/Tools/DumpRenderTree/DumpRenderTree.gyp/DumpRenderTree.gyp:TestRunner',
171 '../ui/surface/surface.gyp:surface',
172 '../webkit/compositor_bindings/compositor_bindings.gyp:webkit_compositor_support',
173 '../webkit/support/webkit_support.gyp:webkit_storage',
176 ['OS == "win" or (toolkit_uses_gtk == 1 and selinux == 0)', {
178 '../sandbox/sandbox.gyp:sandbox',
181 ['enable_webrtc==1', {
183 'renderer/media/mock_media_stream_dependency_factory.cc',
184 'renderer/media/mock_media_stream_dependency_factory.h',
185 'renderer/media/mock_media_stream_dispatcher.cc',
186 'renderer/media/mock_media_stream_dispatcher.h',
187 'renderer/media/mock_peer_connection_impl.cc',
188 'renderer/media/mock_peer_connection_impl.h',
189 'renderer/media/mock_web_rtc_peer_connection_handler_client.cc',
190 'renderer/media/mock_web_rtc_peer_connection_handler_client.h',
191 'test/webrtc_audio_device_test.cc',
192 'test/webrtc_audio_device_test.h',
195 '../third_party/libjingle/libjingle.gyp:libjingle_peerconnection',
196 '../third_party/webrtc/modules/modules.gyp:audio_device',
197 '../third_party/webrtc/modules/modules.gyp:video_capture_module',
198 '../third_party/webrtc/system_wrappers/source/system_wrappers.gyp:system_wrappers',
199 '../third_party/webrtc/video_engine/video_engine.gyp:video_engine_core',
200 '../third_party/webrtc/voice_engine/voice_engine.gyp:voice_engine_core'],
202 ['toolkit_uses_gtk == 1', {
204 '../build/linux/system.gyp:gtk',
209 '../build/linux/system.gyp:glib',
214 '../ui/aura/aura.gyp:test_support_aura',
215 '../ui/compositor/compositor.gyp:compositor',
220 '../third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
223 ['OS!="android" and OS!="ios"', {
225 '../third_party/libvpx/libvpx.gyp:libvpx',
231 'target_name': 'content_unittests',
232 'type': '<(gtest_target_type)',
233 'defines!': ['CONTENT_IMPLEMENTATION'],
236 'test_support_content',
237 'browser/speech/proto/speech_proto.gyp:speech_proto',
238 '../base/base.gyp:test_support_base',
239 '../crypto/crypto.gyp:crypto',
240 '../media/media.gyp:media_test_support',
241 '../net/net.gyp:net_test_support',
242 '../skia/skia.gyp:skia',
243 '../sql/sql.gyp:sql',
244 '../testing/gmock.gyp:gmock',
245 '../testing/gtest.gyp:gtest',
247 '../webkit/support/webkit_support.gyp:user_agent',
253 'browser/accessibility/browser_accessibility_mac_unittest.mm',
254 'browser/accessibility/browser_accessibility_manager_unittest.cc',
255 'browser/accessibility/browser_accessibility_win_unittest.cc',
256 'browser/appcache/chrome_appcache_service_unittest.cc',
257 'browser/browser_thread_unittest.cc',
258 'browser/browser_url_handler_impl_unittest.cc',
259 'browser/child_process_security_policy_unittest.cc',
260 'browser/debugger/devtools_http_handler_unittest.cc',
261 'browser/debugger/devtools_manager_unittest.cc',
262 'browser/device_orientation/provider_unittest.cc',
263 'browser/download/base_file_unittest.cc',
264 'browser/download/byte_stream_unittest.cc',
265 'browser/download/download_file_unittest.cc',
266 'browser/download/download_id_unittest.cc',
267 'browser/download/download_item_impl_unittest.cc',
268 'browser/download/download_manager_impl_unittest.cc',
269 'browser/download/file_metadata_unittest_linux.cc',
270 'browser/download/save_package_unittest.cc',
271 'browser/gamepad/gamepad_provider_unittest.cc',
272 'browser/gamepad/gamepad_test_helpers.cc',
273 'browser/gamepad/gamepad_test_helpers.h',
274 'browser/geolocation/device_data_provider_unittest.cc',
275 'browser/geolocation/geolocation_provider_unittest.cc',
276 'browser/geolocation/gps_location_provider_unittest_linux.cc',
277 'browser/geolocation/location_arbitrator_impl_unittest.cc',
278 'browser/geolocation/network_location_provider_unittest.cc',
279 'browser/geolocation/wifi_data_provider_common_unittest.cc',
280 'browser/geolocation/wifi_data_provider_linux_unittest.cc',
281 'browser/geolocation/wifi_data_provider_unittest_win.cc',
282 'browser/geolocation/win7_location_api_unittest_win.cc',
283 'browser/geolocation/win7_location_provider_unittest_win.cc',
284 'browser/gpu/gpu_blacklist_unittest.cc',
285 'browser/gpu/gpu_data_manager_impl_unittest.cc',
286 'browser/gpu/gpu_util_unittest.cc',
287 'browser/host_zoom_map_impl_unittest.cc',
288 'browser/hyphenator/hyphenator_message_filter_unittest.cc',
289 'browser/in_process_webkit/indexed_db_quota_client_unittest.cc',
290 'browser/in_process_webkit/indexed_db_unittest.cc',
291 'browser/in_process_webkit/webkit_thread_unittest.cc',
292 'browser/intents/intent_injector_unittest.cc',
293 'browser/intents/internal_web_intents_dispatcher_unittest.cc',
294 'browser/mach_broker_mac_unittest.cc',
295 'browser/notification_service_impl_unittest.cc',
296 'browser/plugin_loader_posix_unittest.cc',
297 'browser/renderer_host/gtk_key_bindings_handler_unittest.cc',
298 'browser/renderer_host/media/audio_input_device_manager_unittest.cc',
299 'browser/renderer_host/media/audio_renderer_host_unittest.cc',
300 'browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc',
301 'browser/renderer_host/media/media_stream_manager_unittest.cc',
302 'browser/renderer_host/media/media_stream_ui_controller_unittest.cc',
303 'browser/renderer_host/media/video_capture_controller_unittest.cc',
304 'browser/renderer_host/media/video_capture_host_unittest.cc',
305 'browser/renderer_host/media/video_capture_manager_unittest.cc',
306 'browser/renderer_host/media/web_contents_video_capture_device_unittest.cc',
307 'browser/renderer_host/pepper/browser_ppapi_host_test.cc',
308 'browser/renderer_host/pepper/browser_ppapi_host_test.h',
309 'browser/renderer_host/pepper/pepper_gamepad_host_unittest.cc',
310 'browser/renderer_host/pepper/pepper_printing_host_unittest.cc',
311 'browser/renderer_host/render_view_host_unittest.cc',
312 'browser/renderer_host/render_widget_host_unittest.cc',
313 'browser/renderer_host/render_widget_host_view_aura_unittest.cc',
314 'browser/renderer_host/render_widget_host_view_guest_unittest.cc',
315 'browser/renderer_host/render_widget_host_view_mac_editcommand_helper_unittest.mm',
316 'browser/renderer_host/render_widget_host_view_mac_unittest.mm',
317 'browser/renderer_host/resource_buffer_unittest.cc',
318 'browser/renderer_host/resource_dispatcher_host_unittest.cc',
319 'browser/renderer_host/text_input_client_mac_unittest.mm',
320 'browser/renderer_host/web_input_event_aura_unittest.cc',
321 'browser/resolve_proxy_msg_helper_unittest.cc',
322 'browser/site_instance_impl_unittest.cc',
323 'browser/speech/chunked_byte_buffer_unittest.cc',
324 'browser/speech/endpointer/endpointer_unittest.cc',
325 'browser/speech/google_one_shot_remote_engine_unittest.cc',
326 'browser/speech/google_streaming_remote_engine_unittest.cc',
327 'browser/speech/speech_recognizer_unittest.cc',
328 'browser/ssl/ssl_host_state_unittest.cc',
329 'browser/storage_partition_impl_map_unittest.cc',
330 'browser/system_message_window_win_unittest.cc',
331 'browser/trace_subscriber_stdio_unittest.cc',
332 'browser/web_contents/navigation_controller_impl_unittest.cc',
333 'browser/web_contents/navigation_entry_impl_unittest.cc',
334 'browser/web_contents/render_view_host_manager_unittest.cc',
335 'browser/web_contents/web_contents_delegate_unittest.cc',
336 'browser/web_contents/web_contents_impl_unittest.cc',
337 'browser/web_contents/web_contents_user_data_unittest.cc',
338 'browser/web_contents/web_contents_view_mac_unittest.mm',
339 'browser/web_contents/web_drag_dest_mac_unittest.mm',
340 'browser/web_contents/web_drag_source_mac_unittest.mm',
341 'browser/webui/web_ui_message_handler_unittest.cc',
342 'common/android/address_parser_unittest.cc',
343 'common/cc_messages_unittest.cc',
344 'common/mac/attributed_string_coder_unittest.mm',
345 'common/mac/font_descriptor_unittest.mm',
346 'common/gpu/gpu_info_unittest.cc',
347 'common/gpu/gpu_memory_manager_unittest.cc',
348 'common/gpu/media/avc_config_record_builder_unittest.cc',
349 'common/indexed_db/indexed_db_dispatcher_unittest.cc',
350 'common/inter_process_time_ticks_converter_unittest.cc',
351 'common/page_zoom_unittest.cc',
352 'common/resource_dispatcher_unittest.cc',
353 'common/sandbox_mac_diraccess_unittest.mm',
354 'common/sandbox_mac_fontloading_unittest.mm',
355 'common/sandbox_mac_unittest_helper.h',
356 'common/sandbox_mac_unittest_helper.mm',
357 'common/sandbox_mac_system_access_unittest.mm',
358 'components/navigation_interception/intercept_navigation_resource_throttle_unittest.cc',
359 'gpu/gpu_info_collector_unittest.cc',
360 'gpu/gpu_info_collector_unittest_win.cc',
361 'renderer/active_notification_tracker_unittest.cc',
362 'renderer/android/email_detector_unittest.cc',
363 'renderer/android/phone_number_detector_unittest.cc',
364 'renderer/disambiguation_popup_helper_unittest.cc',
365 'renderer/gpu/input_event_filter_unittest.cc',
366 'renderer/hyphenator/hyphenator_unittest.cc',
367 'renderer/media/audio_message_filter_unittest.cc',
368 'renderer/media/audio_renderer_mixer_manager_unittest.cc',
369 'renderer/media/video_capture_impl_unittest.cc',
370 'renderer/media/video_capture_message_filter_unittest.cc',
371 'renderer/paint_aggregator_unittest.cc',
372 'renderer/pepper/pepper_broker_impl_unittest.cc',
373 'renderer/render_thread_impl_unittest.cc',
374 'renderer/v8_value_converter_impl_unittest.cc',
375 'test/gpu/gpu_test_config_unittest.cc',
376 'test/gpu/gpu_test_expectations_parser_unittest.cc',
377 'test/run_all_unittests.cc',
378 '../webkit/appcache/manifest_parser_unittest.cc',
379 '../webkit/appcache/appcache_unittest.cc',
380 '../webkit/appcache/appcache_database_unittest.cc',
381 '../webkit/appcache/appcache_group_unittest.cc',
382 '../webkit/appcache/appcache_host_unittest.cc',
383 '../webkit/appcache/appcache_quota_client_unittest.cc',
384 '../webkit/appcache/appcache_request_handler_unittest.cc',
385 '../webkit/appcache/appcache_response_unittest.cc',
386 '../webkit/appcache/appcache_service_unittest.cc',
387 '../webkit/appcache/appcache_storage_unittest.cc',
388 '../webkit/appcache/appcache_storage_impl_unittest.cc',
389 '../webkit/appcache/appcache_update_job_unittest.cc',
390 '../webkit/appcache/appcache_url_request_job_unittest.cc',
391 '../webkit/appcache/mock_appcache_policy.h',
392 '../webkit/appcache/mock_appcache_policy.cc',
393 '../webkit/appcache/mock_appcache_service.cc',
394 '../webkit/appcache/mock_appcache_service.h',
395 '../webkit/appcache/mock_appcache_storage.cc',
396 '../webkit/appcache/mock_appcache_storage.h',
397 '../webkit/appcache/mock_appcache_storage_unittest.cc',
398 '../webkit/blob/blob_storage_controller_unittest.cc',
399 '../webkit/blob/blob_url_request_job_unittest.cc',
400 '../webkit/blob/local_file_stream_reader_unittest.cc',
401 '../webkit/blob/mock_blob_url_request_context.cc',
402 '../webkit/blob/mock_blob_url_request_context.h',
403 '../webkit/blob/shareable_file_reference_unittest.cc',
404 '../webkit/database/database_connections_unittest.cc',
405 '../webkit/database/database_quota_client_unittest.cc',
406 '../webkit/database/databases_table_unittest.cc',
407 '../webkit/database/database_tracker_unittest.cc',
408 '../webkit/database/database_util_unittest.cc',
409 '../webkit/dom_storage/dom_storage_area_unittest.cc',
410 '../webkit/dom_storage/dom_storage_cached_area_unittest.cc',
411 '../webkit/dom_storage/dom_storage_context_unittest.cc',
412 '../webkit/dom_storage/dom_storage_database_unittest.cc',
413 '../webkit/dom_storage/dom_storage_map_unittest.cc',
414 '../webkit/dom_storage/session_storage_database_unittest.cc',
415 '../webkit/fileapi/file_system_database_test_helper.cc',
416 '../webkit/fileapi/file_system_database_test_helper.h',
417 '../webkit/fileapi/file_system_directory_database_unittest.cc',
418 '../webkit/fileapi/file_system_dir_url_request_job_unittest.cc',
419 '../webkit/fileapi/file_system_file_stream_reader_unittest.cc',
420 '../webkit/fileapi/file_system_file_util_unittest.cc',
421 '../webkit/fileapi/file_system_mount_point_provider_unittest.cc',
422 '../webkit/fileapi/file_system_origin_database_unittest.cc',
423 '../webkit/fileapi/file_system_quota_client_unittest.cc',
424 '../webkit/fileapi/file_system_url_unittest.cc',
425 '../webkit/fileapi/file_system_url_request_job_unittest.cc',
426 '../webkit/fileapi/file_system_usage_cache_unittest.cc',
427 '../webkit/fileapi/file_system_util_unittest.cc',
428 '../webkit/fileapi/file_writer_delegate_unittest.cc',
429 '../webkit/fileapi/isolated_context_unittest.cc',
430 '../webkit/fileapi/isolated_file_util_unittest.cc',
431 '../webkit/fileapi/local_file_system_operation_write_unittest.cc',
432 '../webkit/fileapi/local_file_system_operation_unittest.cc',
433 '../webkit/fileapi/local_file_system_quota_unittest.cc',
434 '../webkit/fileapi/local_file_system_test_helper.cc',
435 '../webkit/fileapi/local_file_system_test_helper.h',
436 '../webkit/fileapi/local_file_stream_writer_unittest.cc',
437 '../webkit/fileapi/local_file_util_unittest.cc',
438 '../webkit/fileapi/media/native_media_file_util_unittest.cc',
439 '../webkit/fileapi/mock_file_change_observer.cc',
440 '../webkit/fileapi/mock_file_change_observer.h',
441 '../webkit/fileapi/obfuscated_file_util_unittest.cc',
442 '../webkit/fileapi/sandbox_mount_point_provider_unittest.cc',
443 '../webkit/fileapi/syncable/canned_syncable_file_system.cc',
444 '../webkit/fileapi/syncable/canned_syncable_file_system.h',
445 '../webkit/fileapi/syncable/file_change_unittest.cc',
446 '../webkit/fileapi/syncable/local_file_change_tracker_unittest.cc',
447 '../webkit/fileapi/syncable/local_file_sync_context_unittest.cc',
448 '../webkit/fileapi/syncable/local_file_sync_status_unittest.cc',
449 '../webkit/fileapi/syncable/syncable_file_system_unittest.cc',
450 '../webkit/fileapi/syncable/syncable_file_system_util_unittest.cc',
451 '../webkit/fileapi/syncable/syncable_file_operation_runner_unittest.cc',
452 '../webkit/fileapi/test_file_set.cc',
453 '../webkit/fileapi/test_file_set.h',
454 '../webkit/fileapi/webfilewriter_base_unittest.cc',
455 '../webkit/media/buffered_data_source_unittest.cc',
456 '../webkit/media/buffered_resource_loader_unittest.cc',
457 '../webkit/media/cache_util_unittest.cc',
458 '../webkit/media/crypto/proxy_decryptor_unittest.cc',
459 '../webkit/media/test_response_generator.cc',
460 '../webkit/media/test_response_generator.h',
461 '../webkit/mocks/mock_weburlloader.cc',
462 '../webkit/mocks/mock_weburlloader.h',
463 '../webkit/plugins/npapi/plugin_lib_unittest.cc',
464 '../webkit/plugins/npapi/plugin_list_unittest.cc',
465 '../webkit/plugins/npapi/plugin_utils_unittest.cc',
466 '../webkit/plugins/npapi/webplugin_impl_unittest.cc',
467 '../webkit/quota/mock_quota_manager.cc',
468 '../webkit/quota/mock_quota_manager.h',
469 '../webkit/quota/mock_quota_manager_unittest.cc',
470 '../webkit/quota/mock_storage_client.cc',
471 '../webkit/quota/mock_storage_client.h',
472 '../webkit/quota/quota_database_unittest.cc',
473 '../webkit/quota/quota_manager_unittest.cc',
474 '../webkit/quota/quota_temporary_storage_evictor_unittest.cc',
479 # iOS only needs a small portion of content; exclude all the
480 # implementation, and re-include what is used.
481 ['exclude', '\\.(cc|mm)$'],
482 ['include', '_ios\\.(cc|mm)$'],
483 ['include', '^browser/notification_service_impl_unittest\\.cc$'],
484 ['include', '^browser/speech/.*_unittest\\.cc$'],
485 ['include', '^browser/web_contents/navigation_entry_impl_unittest\\.cc$'],
486 ['include', '^test/run_all_unittests\\.cc$'],
494 'content_resources.gyp:content_resources',
495 'navigation_interception',
496 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
497 '../gpu/gpu.gyp:gpu_unittest_utils',
498 '../ipc/ipc.gyp:test_support_ipc',
499 '../jingle/jingle.gyp:jingle_glue_test_util',
500 '../media/media.gyp:shared_memory_support',
501 '../third_party/icu/icu.gyp:icui18n',
502 '../third_party/icu/icu.gyp:icuuc',
503 '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
504 '../third_party/libjingle/libjingle.gyp:libjingle',
505 '<(webkit_src_dir)/Source/WebKit/chromium/WebKit.gyp:webkit',
506 '../ui/gl/gl.gyp:gl',
507 '../v8/tools/gyp/v8.gyp:v8',
508 '../webkit/support/webkit_support.gyp:glue',
509 '../webkit/support/webkit_support.gyp:webkit_base',
510 '../webkit/support/webkit_support.gyp:webkit_media',
511 '../webkit/support/webkit_support.gyp:webkit_storage',
512 '../webkit/webkit.gyp:test_shell_test_support',
515 ['enable_webrtc==1', {
517 'browser/renderer_host/p2p/socket_host_test_utils.h',
518 'browser/renderer_host/p2p/socket_host_tcp_unittest.cc',
519 'browser/renderer_host/p2p/socket_host_tcp_server_unittest.cc',
520 'browser/renderer_host/p2p/socket_host_udp_unittest.cc',
521 'renderer/media/media_stream_dependency_factory_unittest.cc',
522 'renderer/media/media_stream_dispatcher_unittest.cc',
523 'renderer/media/media_stream_impl_unittest.cc',
524 'renderer/media/rtc_peer_connection_handler_unittest.cc',
525 'renderer/media/rtc_video_decoder_unittest.cc',
526 'renderer/media/webrtc_audio_device_unittest.cc',
529 '../third_party/libjingle/libjingle.gyp:libjingle_peerconnection',
530 '../third_party/webrtc/modules/modules.gyp:video_capture_module',
531 '../third_party/webrtc/system_wrappers/source/system_wrappers.gyp:system_wrappers',
532 '../third_party/webrtc/video_engine/video_engine.gyp:video_engine_core',
533 '../third_party/webrtc/voice_engine/voice_engine.gyp:voice_engine_core',
536 # TODO(jrg): remove the OS=="android" section?
537 # http://crbug.com/113172
538 # Understand better how media_stream_ is tied into Chromium.
539 ['enable_webrtc==0 and OS=="android"', {
541 ['exclude', '^renderer/media/media_stream_'],
544 ['input_speech==0', {
546 ['exclude', '^browser/speech/'],
549 ['notifications==0', {
551 'renderer/active_notification_tracker_unittest.cc',
556 '../build/linux/system.gyp:dbus',
557 '../dbus/dbus.gyp:dbus_test_support',
560 ['OS=="win" and win_use_allocator_shim==1', {
562 '../base/allocator/allocator.gyp:allocator',
567 '../third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
571 # These flags are needed to run the test on Mac.
572 # Search for comments about "xcode_settings" in chrome_tests.gypi.
573 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
577 ['exclude', '^browser/renderer_host/gtk_key_bindings_handler_unittest.cc'],
582 '../ui/aura/aura.gyp:aura',
585 'browser/accessibility/browser_accessibility_win_unittest.cc',
588 ['OS == "android"', {
590 'browser/geolocation/device_data_provider_unittest.cc',
591 'browser/geolocation/gps_location_provider_unittest_linux.cc',
592 'browser/geolocation/network_location_provider_unittest.cc',
593 'browser/geolocation/wifi_data_provider_common_unittest.cc',
594 'browser/geolocation/wifi_data_provider_linux_unittest.cc',
597 ['OS != "android" and OS != "ios"', {
599 '../third_party/libvpx/libvpx.gyp:libvpx',
602 ['OS == "android" and gtest_target_type == "shared_library"', {
604 '../testing/android/native_test.gyp:native_test_native_code',
614 'target_name': 'content_browsertests',
615 'type': 'executable',
616 'defines!': ['CONTENT_IMPLEMENTATION'],
624 'test_support_content',
625 '../base/base.gyp:test_support_base',
626 '../ipc/ipc.gyp:test_support_ipc',
627 '../net/net.gyp:net_test_support',
628 '../ppapi/ppapi_internal.gyp:ppapi_host',
629 '../ppapi/ppapi_internal.gyp:ppapi_proxy',
630 '../ppapi/ppapi_internal.gyp:ppapi_ipc',
631 '../ppapi/ppapi_internal.gyp:ppapi_shared',
632 '../ppapi/ppapi_internal.gyp:ppapi_unittest_shared',
633 '../skia/skia.gyp:skia',
634 '../testing/gmock.gyp:gmock',
635 '../testing/gtest.gyp:gtest',
636 '../third_party/mesa/mesa.gyp:osmesa',
637 '../ui/gl/gl.gyp:gl',
639 '../webkit/support/webkit_support.gyp:clearkeycdmplugin',
640 '../webkit/support/webkit_support.gyp:glue',
641 '<(webkit_src_dir)/Tools/DumpRenderTree/DumpRenderTree.gyp/DumpRenderTree.gyp:TestRunner_resources',
647 'browser/gpu/test_support_gpu.gypi',
650 'HAS_OUT_OF_PROC_TEST_RUNNER',
653 'browser/accessibility/cross_platform_accessibility_browsertest.cc',
654 'browser/accessibility/dump_accessibility_tree_browsertest.cc',
655 'browser/accessibility/dump_accessibility_tree_helper.cc',
656 'browser/accessibility/dump_accessibility_tree_helper.h',
657 'browser/accessibility/dump_accessibility_tree_helper_mac.mm',
658 'browser/accessibility/dump_accessibility_tree_helper_win.cc',
659 'browser/appcache/appcache_browsertest.cc',
660 'browser/audio_browsertest.cc',
661 'browser/bookmarklet_browsertest.cc',
662 'browser/browser_plugin/browser_plugin_host_browsertest.cc',
663 'browser/browser_plugin/test_browser_plugin_embedder.cc',
664 'browser/browser_plugin/test_browser_plugin_embedder.h',
665 'browser/browser_plugin/test_browser_plugin_guest.cc',
666 'browser/browser_plugin/test_browser_plugin_guest.h',
667 'browser/child_process_security_policy_browsertest.cc',
668 'browser/database_browsertest.cc',
669 'browser/device_orientation/device_orientation_browsertest.cc',
670 'browser/dom_storage/dom_storage_browsertest.cc',
671 'browser/download/download_browsertest.cc',
672 'browser/download/drag_download_file_browsertest.cc',
673 'browser/download/mhtml_generation_browsertest.cc',
674 'browser/download/save_package_browsertest.cc',
675 'browser/encrypted_media_browsertest.cc',
676 'browser/fileapi/blob_layout_browsertest.cc',
677 'browser/fileapi/file_system_browsertest.cc',
678 'browser/gpu/gpu_crash_browsertest.cc',
679 'browser/gpu/webgl_conformance_tests.cc',
680 'browser/gpu/webgl_conformance_test_list_autogen.h',
681 'browser/in_process_webkit/indexed_db_browsertest.cc',
682 'browser/in_process_webkit/indexed_db_layout_browsertest.cc',
683 'browser/media_browsertest.cc',
684 'browser/plugin_data_remover_impl_browsertest.cc',
685 'browser/plugin_browsertest.cc',
686 'browser/plugin_service_impl_browsertest.cc',
687 'browser/renderer_host/render_view_host_browsertest.cc',
688 'browser/renderer_host/render_view_host_manager_browsertest.cc',
689 'browser/renderer_host/render_widget_host_view_win_browsertest.cc',
690 'browser/renderer_host/resource_dispatcher_host_browsertest.cc',
691 'browser/session_history_browsertest.cc',
692 'browser/speech/speech_recognition_browsertest.cc',
693 'browser/web_contents/web_contents_view_aura_browsertest.cc',
694 'browser/webkit_browsertest.cc',
695 'browser/worker_host/test/worker_browsertest.cc',
696 'common/content_constants_internal.cc',
697 'common/content_constants_internal.h',
698 'renderer/browser_plugin/mock_browser_plugin.h',
699 'renderer/browser_plugin/mock_browser_plugin.cc',
700 'renderer/browser_plugin/mock_browser_plugin_manager.h',
701 'renderer/browser_plugin/mock_browser_plugin_manager.cc',
702 'renderer/browser_plugin/browser_plugin_browsertest.h',
703 'renderer/browser_plugin/browser_plugin_browsertest.cc',
704 'renderer/mouse_lock_dispatcher_browsertest.cc',
705 'renderer/pepper/mock_renderer_ppapi_host.cc',
706 'renderer/pepper/pepper_file_chooser_host_unittest.cc',
707 'renderer/pepper/pepper_url_request_unittest.cc',
708 'renderer/render_view_browsertest.cc',
709 'renderer/render_view_browsertest_mac.mm',
710 'renderer/render_widget_browsertest.cc',
711 'renderer/renderer_accessibility_browsertest.cc',
712 'renderer/web_intents_host_browsertest.cc',
713 'test/content_browser_test.h',
714 'test/content_browser_test.cc',
715 'test/content_browser_test_utils.cc',
716 'test/content_browser_test_utils.h',
717 'test/content_browser_test_utils_mac.mm',
718 'test/content_browser_test_test.cc',
719 'test/content_test_launcher.cc',
720 'test/layout_browsertest.cc',
721 'test/layout_browsertest.h',
722 'test/layout_test_http_server.cc',
723 'test/layout_test_http_server.h',
727 'resource_include_dirs': [
728 '<(SHARED_INTERMEDIATE_DIR)/webkit',
733 # TODO: It would be nice to have these pulled in
734 # automatically from direct_dependent_settings in
735 # their various targets (net.gyp:net_resources, etc.),
736 # but that causes errors in other targets when
737 # resulting .res files get referenced multiple times.
738 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc',
739 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.rc',
740 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.rc',
743 '<(DEPTH)/net/net.gyp:net_resources',
744 '<(DEPTH)/third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
745 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_resources',
746 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_strings',
752 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
759 'browser/renderer_host/render_widget_host_view_win_browsertest.cc',
762 ['OS=="win" and win_use_allocator_shim==1', {
764 '../base/allocator/allocator.gyp:allocator',
769 'browser/accessibility/dump_accessibility_tree_browsertest.cc',
770 'browser/accessibility/dump_accessibility_tree_helper.cc',
775 'content_shell', # Needed for Content Shell.app's Helper.
778 'renderer/external_popup_menu_browsertest.cc',
783 'browser/accessibility/dump_accessibility_tree_browsertest.cc',
784 'browser/accessibility/dump_accessibility_tree_helper_win.cc',
785 'browser/accessibility/dump_accessibility_tree_helper.cc',
786 'browser/plugin_browsertest.cc',
789 ['target_arch!="arm"', {
791 # Runtime dependencies
792 '../webkit/webkit.gyp:copy_npapi_test_plugin',
793 '../webkit/webkit.gyp:pull_in_copy_TestNetscapePlugIn',
796 ['enable_webrtc==1', {
798 'browser/webrtc_getusermedia_browsertest.cc',
805 ['chromeos==1 or OS=="win" or OS=="mac"', {
808 'target_name': 'video_decode_accelerator_unittest',
809 'type': 'executable',
812 '../base/base.gyp:base',
813 '../testing/gtest.gyp:gtest',
814 '../media/media.gyp:media',
818 '<(DEPTH)/third_party/angle/include',
821 'common/gpu/media/rendering_helper.h',
822 'common/gpu/media/rendering_helper_mac.mm',
823 'common/gpu/media/rendering_helper_gl.cc',
824 'common/gpu/media/video_decode_accelerator_unittest.cc',
827 ['target_arch=="arm"', {
829 '<(DEPTH)/third_party/openmax/il',
834 'common/gpu/media/rendering_helper_gl.cc',
839 '../third_party/angle/src/build_angle.gyp:libEGL',
840 '../third_party/angle/src/build_angle.gyp:libGLESv2',
843 ['(OS=="win" and win_use_allocator_shim==1) or '
844 '(os_posix == 1 and OS != "mac" and OS != "android" and '
845 ' linux_use_tcmalloc==1)', {
847 '../base/allocator/allocator.gyp:allocator',
850 ['target_arch != "arm"', {
852 '../ui/gl/gl.gyp:gl',
855 ['target_arch != "arm" and (OS=="linux" or chromeos == 1)', {
857 '<(DEPTH)/third_party/libva',
864 ['chromeos == 1 or OS == "linux"', {
867 'target_name': 'h264_parser_unittest',
868 'type': 'executable',
871 '../base/base.gyp:base',
872 '../testing/gtest.gyp:gtest',
875 'common/gpu/media/h264_bit_reader_unittest.cc',
876 'common/gpu/media/h264_parser_unittest.cc',
881 # Special target to wrap a gtest_target_type==shared_library
882 # content_unittests into an android apk for execution.
883 # See base.gyp for TODO(jrg)s about this strategy.
884 ['OS == "android" and gtest_target_type == "shared_library"', {
887 'target_name': 'content_unittests_apk',
894 'test_suite_name': 'content_unittests',
895 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)content_unittests<(SHARED_LIB_SUFFIX)',
897 'includes': [ '../build/apk_test.gypi' ],
901 ['OS == "android"', {
904 'target_name': 'content_java_test_support',
907 '../base/base.gyp:base',
908 '../base/base.gyp:base_java_test_support',
913 'package_name': 'content_java_test_support',
914 'java_in_dir': '../content/public/test/android/javatests',
916 'includes': [ '../build/java.gypi' ],
919 'target_name': 'content_shell_test_apk',
923 'content_java_test_support',
924 'content_shell_java',
925 '../base/base.gyp:base_java',
926 '../base/base.gyp:base_java_test_support',
927 '../media/media.gyp:media_java',
928 '../media/media.gyp:media_test_support',
929 '../net/net.gyp:net_java',
930 '../net/net.gyp:net_javatests',
931 '../tools/android/forwarder2/forwarder.gyp:forwarder2',
934 'package_name': 'content_shell_test',
935 'apk_name': 'ContentShellTest',
936 'java_in_dir': '../content/shell/android/javatests',
937 'resource_dir': '../res',
938 'additional_src_dirs': ['../content/public/android/javatests/'],
941 'includes': [ '../build/java_apk.gypi' ],