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/browser_test.h',
28 'public/test/browser_test_base.cc',
29 'public/test/browser_test_base.h',
30 'public/test/browser_test_utils.cc',
31 'public/test/browser_test_utils.h',
32 'public/test/content_test_suite_base.cc',
33 'public/test/content_test_suite_base.h',
34 'public/test/download_test_observer.cc',
35 'public/test/download_test_observer.h',
36 'public/test/fake_speech_recognition_manager.cc',
37 'public/test/fake_speech_recognition_manager.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/compositing_iosurface_shader_programs_mac.cc',
93 'browser/renderer_host/compositing_iosurface_shader_programs_mac.h',
94 'browser/renderer_host/compositing_iosurface_transformer_mac.cc',
95 'browser/renderer_host/compositing_iosurface_transformer_mac.h',
96 'browser/renderer_host/media/mock_media_observer.cc',
97 'browser/renderer_host/media/mock_media_observer.h',
98 'browser/renderer_host/test_backing_store.cc',
99 'browser/renderer_host/test_backing_store.h',
100 'browser/renderer_host/test_render_view_host.cc',
101 'browser/renderer_host/test_render_view_host.h',
102 'gpu/gpu_idirect3d9_mock_win.cc',
103 'gpu/gpu_idirect3d9_mock_win.h',
104 'test/content_test_suite.cc',
105 'test/content_test_suite.h',
106 'test/gpu/gpu_test_config.cc',
107 'test/gpu/gpu_test_config.h',
108 'test/gpu/gpu_test_expectations_parser.cc',
109 'test/gpu/gpu_test_expectations_parser.h',
110 'test/layouttest_support.cc',
111 'test/mock_keyboard.cc',
112 'test/mock_keyboard_driver_win.cc',
113 'test/mock_keyboard_driver_win.h',
114 'test/mock_keyboard.h',
115 'test/mock_render_process.cc',
116 'test/mock_render_process.h',
117 'test/net/url_request_failed_job.cc',
118 'test/net/url_request_failed_job.h',
119 'test/net/url_request_mock_http_job.cc',
120 'test/net/url_request_mock_http_job.h',
121 'test/net/url_request_prepackaged_interceptor.cc',
122 'test/net/url_request_prepackaged_interceptor.h',
123 'test/net/url_request_slow_download_job.cc',
124 'test/net/url_request_slow_download_job.h',
125 'test/net/url_request_abort_on_end_job.cc',
126 'test/net/url_request_abort_on_end_job.h',
127 'test/test_content_browser_client.cc',
128 'test/test_content_browser_client.h',
129 'test/test_content_client.cc',
130 'test/test_content_client.h',
131 'test/test_render_view_host_factory.cc',
132 'test/test_render_view_host_factory.h',
133 'test/test_web_contents.cc',
134 'test/test_web_contents.h',
135 'test/test_web_contents_view.cc',
136 'test/test_web_contents_view.h',
138 # TODO(phajdan.jr): Those files should be moved to webkit
139 # test support target.
140 '../webkit/appcache/appcache_test_helper.cc',
141 '../webkit/appcache/appcache_test_helper.h',
142 '../webkit/quota/mock_special_storage_policy.cc',
143 '../webkit/quota/mock_special_storage_policy.h',
148 # iOS only needs a small portion of content; exclude all the
149 # implementation, and re-include what is used.
150 ['exclude', '\\.(cc|mm)$'],
151 ['include', '_ios\\.(cc|mm)$'],
152 ['include', '^public/test/content_test_suite_base\\.cc$'],
153 ['include', '^public/test/mock_notification_observer\\.cc$'],
154 ['include', '^public/test/mock_resource_context\\.cc$'],
155 ['include', '^public/test/test_browser_thread\\.cc$'],
156 ['include', '^public/test/test_content_client_initializer\\.cc$'],
157 ['include', '^public/test/test_notification_tracker\\.cc$'],
158 ['include', '^public/test/test_utils\\.cc$'],
159 ['include', '^public/test/unittest_test_suite\\.cc$'],
160 ['include', '^test/content_test_suite\\.cc$'],
161 ['include', '^test/test_content_browser_client\\.cc$'],
162 ['include', '^test/test_content_client\\.cc$'],
166 'content_ppapi_plugin',
169 '../ppapi/ppapi_internal.gyp:ppapi_host',
170 '../ppapi/ppapi_internal.gyp:ppapi_proxy',
171 '../ppapi/ppapi_internal.gyp:ppapi_shared',
172 '../ppapi/ppapi_internal.gyp:ppapi_unittest_shared',
173 '<(webkit_src_dir)/Source/WebKit/chromium/WebKit.gyp:webkit',
174 '<(webkit_src_dir)/Tools/DumpRenderTree/DumpRenderTree.gyp/DumpRenderTree.gyp:TestRunner',
175 '../ui/surface/surface.gyp:surface',
176 '../webkit/compositor_bindings/compositor_bindings.gyp:webkit_compositor_support',
177 '../webkit/gpu/webkit_gpu.gyp:webkit_gpu',
178 '../webkit/support/webkit_support.gyp:webkit_storage',
179 '../webkit/support/webkit_support.gyp:webkit_support_common',
182 ['OS == "win" or (toolkit_uses_gtk == 1 and selinux == 0)', {
184 '../sandbox/sandbox.gyp:sandbox',
187 ['enable_webrtc==1', {
189 'renderer/media/mock_media_stream_dependency_factory.cc',
190 'renderer/media/mock_media_stream_dependency_factory.h',
191 'renderer/media/mock_media_stream_dispatcher.cc',
192 'renderer/media/mock_media_stream_dispatcher.h',
193 'renderer/media/mock_peer_connection_impl.cc',
194 'renderer/media/mock_peer_connection_impl.h',
195 'renderer/media/mock_web_rtc_peer_connection_handler_client.cc',
196 'renderer/media/mock_web_rtc_peer_connection_handler_client.h',
197 'test/webrtc_audio_device_test.cc',
198 'test/webrtc_audio_device_test.h',
201 '../third_party/libjingle/libjingle.gyp:libjingle_webrtc',
202 '../third_party/libjingle/libjingle.gyp:libpeerconnection',
203 '../third_party/webrtc/modules/modules.gyp:audio_device',
204 '../third_party/webrtc/modules/modules.gyp:video_capture_module',
207 ['toolkit_uses_gtk == 1', {
209 '../build/linux/system.gyp:gtk',
214 '../build/linux/system.gyp:glib',
219 '../ui/aura/aura.gyp:aura_test_support',
220 '../ui/compositor/compositor.gyp:compositor',
225 '../third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
228 ['OS!="android" and OS!="ios"', {
230 '../third_party/libvpx/libvpx.gyp:libvpx',
236 'target_name': 'content_unittests',
237 'type': '<(gtest_target_type)',
238 'defines!': ['CONTENT_IMPLEMENTATION'],
241 'test_support_content',
242 'browser/speech/proto/speech_proto.gyp:speech_proto',
243 '../base/base.gyp:test_support_base',
244 '../crypto/crypto.gyp:crypto',
245 '../media/media.gyp:media_test_support',
246 '../net/net.gyp:net_test_support',
247 '../skia/skia.gyp:skia',
248 '../sql/sql.gyp:sql',
249 '../testing/gmock.gyp:gmock',
250 '../testing/gtest.gyp:gtest',
252 '../webkit/support/webkit_support.gyp:user_agent',
256 '<(SHARED_INTERMEDIATE_DIR)', # Needed by key_systems_unittest.cc.
259 'browser/accessibility/browser_accessibility_mac_unittest.mm',
260 'browser/accessibility/browser_accessibility_manager_unittest.cc',
261 'browser/accessibility/browser_accessibility_win_unittest.cc',
262 'browser/appcache/chrome_appcache_service_unittest.cc',
263 'browser/browser_thread_unittest.cc',
264 'browser/browser_url_handler_impl_unittest.cc',
265 'browser/byte_stream_unittest.cc',
266 'browser/child_process_security_policy_unittest.cc',
267 'browser/devtools/devtools_http_handler_unittest.cc',
268 'browser/devtools/devtools_manager_unittest.cc',
269 'browser/device_orientation/provider_unittest.cc',
270 'browser/download/base_file_unittest.cc',
271 'browser/download/download_file_unittest.cc',
272 'browser/download/download_id_unittest.cc',
273 'browser/download/download_item_impl_unittest.cc',
274 'browser/download/download_manager_impl_unittest.cc',
275 'browser/download/file_metadata_unittest_linux.cc',
276 'browser/download/save_package_unittest.cc',
277 'browser/gamepad/gamepad_provider_unittest.cc',
278 'browser/gamepad/gamepad_test_helpers.cc',
279 'browser/gamepad/gamepad_test_helpers.h',
280 'browser/geolocation/device_data_provider_unittest.cc',
281 'browser/geolocation/geolocation_provider_unittest.cc',
282 'browser/geolocation/gps_location_provider_unittest_linux.cc',
283 'browser/geolocation/location_arbitrator_impl_unittest.cc',
284 'browser/geolocation/network_location_provider_unittest.cc',
285 'browser/geolocation/wifi_data_provider_chromeos_unittest.cc',
286 'browser/geolocation/wifi_data_provider_common_unittest.cc',
287 'browser/geolocation/wifi_data_provider_linux_unittest.cc',
288 'browser/geolocation/wifi_data_provider_unittest_win.cc',
289 'browser/geolocation/win7_location_api_unittest_win.cc',
290 'browser/geolocation/win7_location_provider_unittest_win.cc',
291 'browser/gpu/gpu_blacklist_unittest.cc',
292 'browser/gpu/gpu_control_list_entry_unittest.cc',
293 'browser/gpu/gpu_control_list_machine_model_info_unittest.cc',
294 'browser/gpu/gpu_control_list_number_info_unittest.cc',
295 'browser/gpu/gpu_control_list_os_info_unittest.cc',
296 'browser/gpu/gpu_control_list_string_info_unittest.cc',
297 'browser/gpu/gpu_control_list_unittest.cc',
298 'browser/gpu/gpu_control_list_version_info_unittest.cc',
299 'browser/gpu/gpu_data_manager_impl_unittest.cc',
300 'browser/gpu/gpu_driver_bug_list_unittest.cc',
301 'browser/gpu/gpu_switching_list_unittest.cc',
302 'browser/gpu/gpu_util_unittest.cc',
303 'browser/gpu/shader_disk_cache_unittest.cc',
304 'browser/host_zoom_map_impl_unittest.cc',
305 'browser/hyphenator/hyphenator_message_filter_unittest.cc',
306 'browser/in_process_webkit/webkit_thread_unittest.cc',
307 'browser/indexed_db/indexed_db_unittest.cc',
308 'browser/indexed_db/indexed_db_quota_client_unittest.cc',
309 'browser/loader/resource_buffer_unittest.cc',
310 'browser/loader/resource_dispatcher_host_unittest.cc',
311 'browser/loader/resource_loader_unittest.cc',
312 'browser/loader/resource_scheduler_unittest.cc',
313 'browser/mach_broker_mac_unittest.cc',
314 'browser/media/media_internals_unittest.cc',
315 'browser/media/webrtc_internals_unittest.cc',
316 'browser/net/sqlite_persistent_cookie_store_unittest.cc',
317 'browser/notification_service_impl_unittest.cc',
318 'browser/plugin_loader_posix_unittest.cc',
319 'browser/renderer_host/compositing_iosurface_transformer_mac_unittest.cc',
320 'browser/renderer_host/gtk_key_bindings_handler_unittest.cc',
321 'browser/renderer_host/media/audio_input_device_manager_unittest.cc',
322 'browser/renderer_host/media/audio_mirroring_manager_unittest.cc',
323 'browser/renderer_host/media/audio_renderer_host_unittest.cc',
324 'browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc',
325 'browser/renderer_host/media/media_stream_manager_unittest.cc',
326 'browser/renderer_host/media/media_stream_ui_controller_unittest.cc',
327 'browser/renderer_host/media/video_capture_buffer_pool_unittest.cc',
328 'browser/renderer_host/media/video_capture_controller_unittest.cc',
329 'browser/renderer_host/media/video_capture_host_unittest.cc',
330 'browser/renderer_host/media/video_capture_manager_unittest.cc',
331 'browser/renderer_host/media/web_contents_audio_input_stream_unittest.cc',
332 'browser/renderer_host/media/web_contents_video_capture_device_unittest.cc',
333 'browser/renderer_host/pepper/browser_ppapi_host_test.cc',
334 'browser/renderer_host/pepper/browser_ppapi_host_test.h',
335 'browser/renderer_host/pepper/pepper_gamepad_host_unittest.cc',
336 'browser/renderer_host/pepper/pepper_printing_host_unittest.cc',
337 'browser/renderer_host/render_view_host_unittest.cc',
338 'browser/renderer_host/render_widget_host_unittest.cc',
339 'browser/renderer_host/render_widget_host_view_aura_unittest.cc',
340 'browser/renderer_host/render_widget_host_view_guest_unittest.cc',
341 'browser/renderer_host/render_widget_host_view_mac_editcommand_helper_unittest.mm',
342 'browser/renderer_host/render_widget_host_view_mac_unittest.mm',
343 'browser/renderer_host/text_input_client_mac_unittest.mm',
344 'browser/renderer_host/web_input_event_aura_unittest.cc',
345 'browser/resolve_proxy_msg_helper_unittest.cc',
346 'browser/site_instance_impl_unittest.cc',
347 'browser/speech/chunked_byte_buffer_unittest.cc',
348 'browser/speech/endpointer/endpointer_unittest.cc',
349 'browser/speech/google_one_shot_remote_engine_unittest.cc',
350 'browser/speech/google_streaming_remote_engine_unittest.cc',
351 'browser/speech/speech_recognizer_unittest.cc',
352 'browser/ssl/ssl_host_state_unittest.cc',
353 'browser/storage_partition_impl_unittest.cc',
354 'browser/storage_partition_impl_map_unittest.cc',
355 'browser/streams/stream_unittest.cc',
356 'browser/streams/stream_url_request_job_unittest.cc',
357 'browser/system_message_window_win_unittest.cc',
358 'browser/tracing/trace_subscriber_stdio_unittest.cc',
359 'browser/web_contents/navigation_controller_impl_unittest.cc',
360 'browser/web_contents/navigation_entry_impl_unittest.cc',
361 'browser/web_contents/render_view_host_manager_unittest.cc',
362 'browser/web_contents/web_contents_delegate_unittest.cc',
363 'browser/web_contents/web_contents_impl_unittest.cc',
364 'browser/web_contents/web_contents_user_data_unittest.cc',
365 'browser/web_contents/web_contents_view_mac_unittest.mm',
366 'browser/web_contents/web_drag_dest_mac_unittest.mm',
367 'browser/web_contents/web_drag_source_mac_unittest.mm',
368 'browser/webui/web_ui_data_source_unittest.cc',
369 'browser/webui/web_ui_message_handler_unittest.cc',
370 'common/android/address_parser_unittest.cc',
371 'common/cc_messages_unittest.cc',
372 'common/common_param_traits_unittest.cc',
373 'common/mac/attributed_string_coder_unittest.mm',
374 'common/mac/font_descriptor_unittest.mm',
375 'common/gpu/gpu_info_unittest.cc',
376 'common/gpu/gpu_memory_manager_unittest.cc',
377 'common/gpu/media/avc_config_record_builder_unittest.cc',
378 'common/indexed_db/indexed_db_dispatcher_unittest.cc',
379 'common/indexed_db/proxy_webidbcursor_impl_unittest.cc',
380 'common/inter_process_time_ticks_converter_unittest.cc',
381 'common/page_zoom_unittest.cc',
382 'common/resource_dispatcher_unittest.cc',
383 'common/sandbox_mac_diraccess_unittest.mm',
384 'common/sandbox_mac_fontloading_unittest.mm',
385 'common/sandbox_mac_unittest_helper.h',
386 'common/sandbox_mac_unittest_helper.mm',
387 'common/sandbox_mac_system_access_unittest.mm',
388 'gpu/gpu_info_collector_unittest.cc',
389 'renderer/active_notification_tracker_unittest.cc',
390 'renderer/android/email_detector_unittest.cc',
391 'renderer/android/phone_number_detector_unittest.cc',
392 'renderer/bmp_image_decoder_unittest.cc',
393 'renderer/date_time_formatter_unittest.cc',
394 'renderer/disambiguation_popup_helper_unittest.cc',
395 'renderer/gpu/input_event_filter_unittest.cc',
396 'renderer/hyphenator/hyphenator_unittest.cc',
397 'renderer/ico_image_decoder_unittest.cc',
398 'renderer/media/audio_message_filter_unittest.cc',
399 'renderer/media/audio_renderer_mixer_manager_unittest.cc',
400 'renderer/media/video_capture_impl_unittest.cc',
401 'renderer/media/video_capture_message_filter_unittest.cc',
402 'renderer/paint_aggregator_unittest.cc',
403 'renderer/pepper/pepper_broker_impl_unittest.cc',
404 'renderer/render_thread_impl_unittest.cc',
405 'renderer/render_view_impl_unittest.cc',
406 'renderer/v8_value_converter_impl_unittest.cc',
407 'test/gpu/gpu_test_config_unittest.cc',
408 'test/gpu/gpu_test_expectations_parser_unittest.cc',
409 'test/image_decoder_test.cc',
410 'test/image_decoder_test.h',
411 'test/run_all_unittests.cc',
412 '../webkit/appcache/manifest_parser_unittest.cc',
413 '../webkit/appcache/appcache_unittest.cc',
414 '../webkit/appcache/appcache_database_unittest.cc',
415 '../webkit/appcache/appcache_group_unittest.cc',
416 '../webkit/appcache/appcache_host_unittest.cc',
417 '../webkit/appcache/appcache_quota_client_unittest.cc',
418 '../webkit/appcache/appcache_request_handler_unittest.cc',
419 '../webkit/appcache/appcache_response_unittest.cc',
420 '../webkit/appcache/appcache_service_unittest.cc',
421 '../webkit/appcache/appcache_storage_unittest.cc',
422 '../webkit/appcache/appcache_storage_impl_unittest.cc',
423 '../webkit/appcache/appcache_update_job_unittest.cc',
424 '../webkit/appcache/appcache_url_request_job_unittest.cc',
425 '../webkit/appcache/mock_appcache_policy.h',
426 '../webkit/appcache/mock_appcache_policy.cc',
427 '../webkit/appcache/mock_appcache_service.cc',
428 '../webkit/appcache/mock_appcache_service.h',
429 '../webkit/appcache/mock_appcache_storage.cc',
430 '../webkit/appcache/mock_appcache_storage.h',
431 '../webkit/appcache/mock_appcache_storage_unittest.cc',
432 '../webkit/blob/blob_storage_controller_unittest.cc',
433 '../webkit/blob/blob_url_request_job_unittest.cc',
434 '../webkit/blob/local_file_stream_reader_unittest.cc',
435 '../webkit/blob/mock_blob_url_request_context.cc',
436 '../webkit/blob/mock_blob_url_request_context.h',
437 '../webkit/blob/shareable_file_reference_unittest.cc',
438 '../webkit/chromeos/fileapi/cros_mount_point_provider_unittest.cc',
439 '../webkit/database/database_connections_unittest.cc',
440 '../webkit/database/database_quota_client_unittest.cc',
441 '../webkit/database/databases_table_unittest.cc',
442 '../webkit/database/database_tracker_unittest.cc',
443 '../webkit/database/database_util_unittest.cc',
444 '../webkit/dom_storage/dom_storage_area_unittest.cc',
445 '../webkit/dom_storage/dom_storage_cached_area_unittest.cc',
446 '../webkit/dom_storage/dom_storage_context_unittest.cc',
447 '../webkit/dom_storage/dom_storage_database_unittest.cc',
448 '../webkit/dom_storage/dom_storage_map_unittest.cc',
449 '../webkit/dom_storage/session_storage_database_unittest.cc',
450 '../webkit/fileapi/async_file_test_helper.cc',
451 '../webkit/fileapi/async_file_test_helper.h',
452 '../webkit/fileapi/copy_or_move_file_validator_unittest.cc',
453 '../webkit/fileapi/external_mount_points_unittest.cc',
454 '../webkit/fileapi/file_system_context_unittest.cc',
455 '../webkit/fileapi/file_system_database_test_helper.cc',
456 '../webkit/fileapi/file_system_database_test_helper.h',
457 '../webkit/fileapi/file_system_directory_database_unittest.cc',
458 '../webkit/fileapi/file_system_dir_url_request_job_unittest.cc',
459 '../webkit/fileapi/file_system_file_stream_reader_unittest.cc',
460 '../webkit/fileapi/file_system_mount_point_provider_unittest.cc',
461 '../webkit/fileapi/file_system_origin_database_unittest.cc',
462 '../webkit/fileapi/file_system_quota_client_unittest.cc',
463 '../webkit/fileapi/file_system_url_unittest.cc',
464 '../webkit/fileapi/file_system_url_request_job_unittest.cc',
465 '../webkit/fileapi/file_system_usage_cache_unittest.cc',
466 '../webkit/fileapi/file_system_util_unittest.cc',
467 '../webkit/fileapi/file_writer_delegate_unittest.cc',
468 '../webkit/fileapi/isolated_context_unittest.cc',
469 '../webkit/fileapi/isolated_file_util_unittest.cc',
470 '../webkit/fileapi/local_file_system_cross_operation_unittest.cc',
471 '../webkit/fileapi/local_file_system_operation_unittest.cc',
472 '../webkit/fileapi/local_file_system_operation_write_unittest.cc',
473 '../webkit/fileapi/local_file_system_quota_unittest.cc',
474 '../webkit/fileapi/local_file_system_test_helper.cc',
475 '../webkit/fileapi/local_file_system_test_helper.h',
476 '../webkit/fileapi/local_file_stream_writer_unittest.cc',
477 '../webkit/fileapi/local_file_util_unittest.cc',
478 '../webkit/fileapi/media/native_media_file_util_unittest.cc',
479 '../webkit/fileapi/media/picasa/pmp_column_reader_unittest.cc',
480 '../webkit/fileapi/media/picasa/pmp_table_reader_unittest.cc',
481 '../webkit/fileapi/media/picasa/pmp_test_helper.cc',
482 '../webkit/fileapi/media/picasa/pmp_test_helper.h',
483 '../webkit/fileapi/mock_file_change_observer.cc',
484 '../webkit/fileapi/mock_file_change_observer.h',
485 '../webkit/fileapi/native_file_util_unittest.cc',
486 '../webkit/fileapi/obfuscated_file_util_unittest.cc',
487 '../webkit/fileapi/sandbox_mount_point_provider_unittest.cc',
488 '../webkit/fileapi/syncable/canned_syncable_file_system.cc',
489 '../webkit/fileapi/syncable/canned_syncable_file_system.h',
490 '../webkit/fileapi/syncable/file_change_unittest.cc',
491 '../webkit/fileapi/syncable/local_file_change_tracker_unittest.cc',
492 '../webkit/fileapi/syncable/local_file_sync_context_unittest.cc',
493 '../webkit/fileapi/syncable/local_file_sync_status_unittest.cc',
494 '../webkit/fileapi/syncable/syncable_file_system_unittest.cc',
495 '../webkit/fileapi/syncable/syncable_file_system_util_unittest.cc',
496 '../webkit/fileapi/syncable/syncable_file_operation_runner_unittest.cc',
497 '../webkit/fileapi/test_file_set.cc',
498 '../webkit/fileapi/test_file_set.h',
499 '../webkit/fileapi/upload_file_system_file_element_reader_unittest.cc',
500 '../webkit/fileapi/webfilewriter_base_unittest.cc',
501 '../webkit/glue/cpp_variant_unittest.cc',
502 '../webkit/glue/glue_serialize_unittest.cc',
503 '../webkit/glue/resource_request_body_unittest.cc',
504 '../webkit/glue/multipart_response_delegate_unittest.cc',
505 '../webkit/glue/touch_fling_gesture_curve_unittest.cc',
506 '../webkit/glue/webcursor_unittest.cc',
507 '../webkit/glue/webkit_glue_unittest.cc',
508 '../webkit/glue/worker_task_runner_unittest.cc',
509 '../webkit/media/buffered_data_source_unittest.cc',
510 '../webkit/media/buffered_resource_loader_unittest.cc',
511 '../webkit/media/cache_util_unittest.cc',
512 '../webkit/media/crypto/key_systems_unittest.cc',
513 '../webkit/media/test_response_generator.cc',
514 '../webkit/media/test_response_generator.h',
515 '../webkit/mocks/mock_weburlloader.cc',
516 '../webkit/mocks/mock_weburlloader.h',
517 '../webkit/plugins/npapi/plugin_lib_unittest.cc',
518 '../webkit/plugins/npapi/plugin_list_unittest.cc',
519 '../webkit/plugins/npapi/plugin_utils_unittest.cc',
520 '../webkit/plugins/npapi/webplugin_impl_unittest.cc',
521 '../webkit/quota/mock_quota_manager.cc',
522 '../webkit/quota/mock_quota_manager.h',
523 '../webkit/quota/mock_quota_manager_unittest.cc',
524 '../webkit/quota/mock_storage_client.cc',
525 '../webkit/quota/mock_storage_client.h',
526 '../webkit/quota/quota_database_unittest.cc',
527 '../webkit/quota/quota_manager_unittest.cc',
528 '../webkit/quota/quota_temporary_storage_evictor_unittest.cc',
533 # iOS only needs a small portion of content; exclude all the
534 # implementation, and re-include what is used.
535 ['exclude', '\\.(cc|mm)$'],
536 ['include', '_ios\\.(cc|mm)$'],
537 ['include', '^browser/notification_service_impl_unittest\\.cc$'],
538 ['include', '^browser/speech/.*_unittest\\.cc$'],
539 ['include', '^browser/web_contents/navigation_entry_impl_unittest\\.cc$'],
540 ['include', '^test/run_all_unittests\\.cc$'],
548 'content_resources.gyp:content_resources',
549 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
550 '../gpu/gpu.gyp:gpu',
551 '../gpu/gpu.gyp:gpu_unittest_utils',
552 '../ipc/ipc.gyp:test_support_ipc',
553 '../jingle/jingle.gyp:jingle_glue_test_util',
554 '../media/media.gyp:shared_memory_support',
555 '../third_party/icu/icu.gyp:icui18n',
556 '../third_party/icu/icu.gyp:icuuc',
557 '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
558 '../third_party/libjingle/libjingle.gyp:libjingle',
559 '<(webkit_src_dir)/Source/WebKit/chromium/WebKit.gyp:webkit',
560 '../ui/gl/gl.gyp:gl',
561 '../v8/tools/gyp/v8.gyp:v8',
562 '../webkit/support/webkit_support.gyp:glue',
563 '../webkit/support/webkit_support.gyp:webkit_base',
564 '../webkit/support/webkit_support.gyp:webkit_media',
565 '../webkit/support/webkit_support.gyp:webkit_storage',
566 '../webkit/webkit.gyp:test_shell_test_support',
569 ['enable_plugins==0', {
571 ['exclude', '^renderer/pepper/'],
572 ['exclude', '^browser/renderer_host/pepper/'],
575 'browser/plugin_loader_posix_unittest.cc',
578 ['enable_webrtc==1', {
580 'browser/renderer_host/p2p/socket_host_test_utils.h',
581 'browser/renderer_host/p2p/socket_host_tcp_unittest.cc',
582 'browser/renderer_host/p2p/socket_host_tcp_server_unittest.cc',
583 'browser/renderer_host/p2p/socket_host_udp_unittest.cc',
584 'renderer/media/media_stream_dependency_factory_unittest.cc',
585 'renderer/media/media_stream_dispatcher_unittest.cc',
586 'renderer/media/media_stream_impl_unittest.cc',
587 'renderer/media/rtc_peer_connection_handler_unittest.cc',
588 'renderer/media/webrtc_audio_device_unittest.cc',
591 '../third_party/libjingle/libjingle.gyp:libjingle_webrtc',
592 '../third_party/libjingle/libjingle.gyp:libpeerconnection',
593 '../third_party/webrtc/modules/modules.gyp:video_capture_module',
594 '../third_party/webrtc/voice_engine/voice_engine.gyp:voice_engine_core',
597 # TODO(jrg): remove the OS=="android" section?
598 # http://crbug.com/113172
599 # Understand better how media_stream_ is tied into Chromium.
600 ['enable_webrtc==0 and OS=="android"', {
602 ['exclude', '^renderer/media/media_stream_'],
605 ['input_speech==0', {
607 ['exclude', '^browser/speech/'],
610 ['notifications==0', {
612 'renderer/active_notification_tracker_unittest.cc',
617 '../build/linux/system.gyp:dbus',
618 '../dbus/dbus.gyp:dbus_test_support',
621 ['OS=="win" and win_use_allocator_shim==1', {
623 '../base/allocator/allocator.gyp:allocator',
628 '../third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
632 # These flags are needed to run the test on Mac.
633 # Search for comments about "xcode_settings" in chrome_tests.gypi.
634 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
638 ['exclude', '^browser/renderer_host/gtk_key_bindings_handler_unittest.cc'],
639 ['exclude', '^browser/geolocation/wifi_data_provider_linux_unittest.cc'],
644 '../ui/aura/aura.gyp:aura',
647 'browser/accessibility/browser_accessibility_win_unittest.cc',
650 ['OS == "android"', {
652 '../ui/ui.gyp:shell_dialogs',
655 'browser/geolocation/device_data_provider_unittest.cc',
656 'browser/geolocation/gps_location_provider_unittest_linux.cc',
657 'browser/geolocation/network_location_provider_unittest.cc',
658 'browser/geolocation/wifi_data_provider_chromeos_unittest.cc',
659 'browser/geolocation/wifi_data_provider_common_unittest.cc',
660 'browser/geolocation/wifi_data_provider_linux_unittest.cc',
663 ['OS != "android" and OS != "ios"', {
665 '../third_party/libvpx/libvpx.gyp:libvpx',
668 ['OS == "android" and gtest_target_type == "shared_library"', {
670 '../testing/android/native_test.gyp:native_test_native_code',
680 'target_name': 'content_browsertests',
681 'type': '<(gtest_target_type)',
682 'defines!': ['CONTENT_IMPLEMENTATION'],
690 'test_support_content',
691 '../base/base.gyp:test_support_base',
692 '../gpu/gpu.gyp:gpu',
693 '../ipc/ipc.gyp:test_support_ipc',
694 '../net/net.gyp:net_test_support',
695 '../ppapi/ppapi_internal.gyp:ppapi_host',
696 '../ppapi/ppapi_internal.gyp:ppapi_proxy',
697 '../ppapi/ppapi_internal.gyp:ppapi_ipc',
698 '../ppapi/ppapi_internal.gyp:ppapi_shared',
699 '../ppapi/ppapi_internal.gyp:ppapi_unittest_shared',
700 '../skia/skia.gyp:skia',
701 '../testing/gmock.gyp:gmock',
702 '../testing/gtest.gyp:gtest',
703 '../third_party/mesa/mesa.gyp:osmesa',
704 '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
705 '../ui/gl/gl.gyp:gl',
706 '../ui/snapshot/snapshot.gyp:snapshot',
707 '../ui/ui.gyp:shell_dialogs',
709 '../webkit/support/webkit_support.gyp:clearkeycdmadapter',
710 '../webkit/support/webkit_support.gyp:glue',
711 '<(webkit_src_dir)/Tools/DumpRenderTree/DumpRenderTree.gyp/DumpRenderTree.gyp:TestRunner_resources',
715 '<(SHARED_INTERMEDIATE_DIR)', # Needed by encrypted_media_browsertest.cc
718 'browser/gpu/test_support_gpu.gypi',
721 'HAS_OUT_OF_PROC_TEST_RUNNER',
724 'browser/accessibility/accessibility_win_browsertest.cc',
725 'browser/accessibility/cross_platform_accessibility_browsertest.cc',
726 'browser/accessibility/dump_accessibility_tree_browsertest.cc',
727 'browser/appcache/appcache_browsertest.cc',
728 'browser/bookmarklet_browsertest.cc',
729 'browser/browser_plugin/browser_plugin_host_browsertest.cc',
730 'browser/browser_plugin/test_browser_plugin_embedder.cc',
731 'browser/browser_plugin/test_browser_plugin_embedder.h',
732 'browser/browser_plugin/test_browser_plugin_guest.cc',
733 'browser/browser_plugin/test_browser_plugin_guest.h',
734 'browser/browser_plugin/test_browser_plugin_guest_manager.cc',
735 'browser/browser_plugin/test_browser_plugin_guest_manager.h',
736 'browser/child_process_security_policy_browsertest.cc',
737 'browser/database_browsertest.cc',
738 'browser/device_orientation/device_orientation_browsertest.cc',
739 'browser/dom_storage/dom_storage_browsertest.cc',
740 'browser/download/download_browsertest.cc',
741 'browser/download/drag_download_file_browsertest.cc',
742 'browser/download/mhtml_generation_browsertest.cc',
743 'browser/download/save_package_browsertest.cc',
744 'browser/fileapi/blob_layout_browsertest.cc',
745 'browser/fileapi/file_system_browsertest.cc',
746 'browser/gpu/gpu_crash_browsertest.cc',
747 'browser/gpu/gpu_memory_test.cc',
748 'browser/gpu/gpu_pixel_browsertest.cc',
749 'browser/gpu/webgl_conformance_test.cc',
750 'browser/gpu/webgl_conformance_test_list_autogen.h',
751 'browser/in_process_webkit/indexed_db_browsertest.cc',
752 'browser/indexed_db/indexed_db_layout_browsertest.cc',
753 'browser/loader/resource_dispatcher_host_browsertest.cc',
754 'browser/media/audio_browsertest.cc',
755 'browser/media/encrypted_media_browsertest.cc',
756 'browser/media/media_browsertest.cc',
757 'browser/media/webrtc_internals_browsertest.cc',
758 'browser/plugin_data_remover_impl_browsertest.cc',
759 'browser/plugin_browsertest.cc',
760 'browser/plugin_service_impl_browsertest.cc',
761 'browser/renderer_host/clipboard_browsertest.cc',
762 'browser/renderer_host/render_view_host_browsertest.cc',
763 'browser/renderer_host/render_view_host_manager_browsertest.cc',
764 'browser/renderer_host/render_widget_host_browsertest.cc',
765 'browser/renderer_host/render_widget_host_view_browsertest.cc',
766 'browser/renderer_host/render_widget_host_view_win_browsertest.cc',
767 'browser/security_exploit_browsertest.cc',
768 'browser/session_history_browsertest.cc',
769 'browser/site_per_process_browsertest.cc',
770 'browser/speech/speech_recognition_browsertest.cc',
771 'browser/web_contents/web_contents_view_aura_browsertest.cc',
772 'browser/webkit_browsertest.cc',
773 'browser/worker_host/test/worker_browsertest.cc',
774 'renderer/accessibility/renderer_accessibility_browsertest.cc',
775 'renderer/browser_plugin/mock_browser_plugin.h',
776 'renderer/browser_plugin/mock_browser_plugin.cc',
777 'renderer/browser_plugin/mock_browser_plugin_manager.h',
778 'renderer/browser_plugin/mock_browser_plugin_manager.cc',
779 'renderer/browser_plugin/browser_plugin_browsertest.h',
780 'renderer/browser_plugin/browser_plugin_browsertest.cc',
781 'renderer/mouse_lock_dispatcher_browsertest.cc',
782 'renderer/password_form_conversion_utils_browsertest.cc',
783 'renderer/pepper/mock_renderer_ppapi_host.cc',
784 'renderer/pepper/pepper_device_enumeration_host_helper_unittest.cc',
785 'renderer/pepper/pepper_file_chooser_host_unittest.cc',
786 'renderer/pepper/pepper_graphics_2d_host_unittest.cc',
787 'renderer/pepper/pepper_url_request_unittest.cc',
788 'renderer/render_thread_impl_browsertest.cc',
789 'renderer/render_view_browsertest.cc',
790 'renderer/render_view_browsertest_mac.mm',
791 'renderer/render_widget_browsertest.cc',
792 'test/browser_test_message_pump_android.cc',
793 'test/browser_test_message_pump_android.h',
794 'test/content_browser_test.h',
795 'test/content_browser_test.cc',
796 'test/content_browser_test_utils.cc',
797 'test/content_browser_test_utils.h',
798 'test/content_browser_test_utils_mac.mm',
799 'test/content_browser_test_test.cc',
800 'test/content_test_launcher.cc',
801 'test/layout_browsertest.cc',
802 'test/layout_browsertest.h',
803 'test/layout_test_http_server.cc',
804 'test/layout_test_http_server.h',
805 '../webkit/plugins/ppapi/mock_platform_image_2d.cc',
806 '../webkit/plugins/ppapi/mock_platform_image_2d.h',
807 '../webkit/plugins/ppapi/mock_plugin_delegate.cc',
808 '../webkit/plugins/ppapi/mock_plugin_delegate.h',
812 'resource_include_dirs': [
813 '<(SHARED_INTERMEDIATE_DIR)/webkit',
818 # TODO: It would be nice to have these pulled in
819 # automatically from direct_dependent_settings in
820 # their various targets (net.gyp:net_resources, etc.),
821 # but that causes errors in other targets when
822 # resulting .res files get referenced multiple times.
823 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc',
824 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.rc',
825 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.rc',
828 '<(DEPTH)/net/net.gyp:net_resources',
829 '<(DEPTH)/third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
830 '<(DEPTH)/third_party/isimpledom/isimpledom.gyp:isimpledom',
831 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_resources',
832 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_strings',
838 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
843 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
844 'msvs_disabled_warnings': [ 4267, ],
847 'browser/accessibility/accessibility_win_browsertest.cc',
848 'browser/renderer_host/render_widget_host_view_win_browsertest.cc',
851 ['OS=="win" and win_use_allocator_shim==1', {
853 '../base/allocator/allocator.gyp:allocator',
858 'browser/accessibility/dump_accessibility_tree_browsertest.cc',
863 'browser/accessibility/dump_accessibility_tree_browsertest.cc',
866 'shell/android/browsertests_apk/content_browser_tests_android.cc',
869 'content_shell_jni_headers',
871 '../testing/android/native_test.gyp:native_test_util',
876 'content_shell', # Needed for Content Shell.app's Helper.
879 'renderer/external_popup_menu_browsertest.cc',
884 'browser/accessibility/accessibility_win_browsertest.cc',
885 'browser/accessibility/dump_accessibility_tree_browsertest.cc',
886 'browser/plugin_browsertest.cc',
889 ['OS!="android" and OS!="ios"', {
890 # npapi test plugin doesn't build on android or ios
892 # Runtime dependencies
893 '../webkit/webkit.gyp:copy_npapi_test_plugin',
894 '../webkit/webkit.gyp:pull_in_copy_TestNetscapePlugIn',
897 ['enable_webrtc==1', {
899 'browser/media/webrtc_browsertest.cc',
902 ['enable_plugins==0', {
904 'browser/plugin_service_impl_browsertest.cc',
905 'browser/plugin_data_remover_impl_browsertest.cc',
906 'renderer/pepper/pepper_device_enumeration_host_helper_unittest.cc',
907 'renderer/pepper/pepper_file_chooser_host_unittest.cc',
908 'renderer/pepper/pepper_graphics_2d_host_unittest.cc',
911 ['input_speech==0', {
913 ['exclude', '^browser/speech/'],
920 ['chromeos==1 or OS=="win" or OS=="mac"', {
921 # TODO(felipeg): Make video_decode_accelerator_unittest work on Android.
922 # http://crbug.com/178647
925 'target_name': 'video_decode_accelerator_unittest',
926 'type': 'executable',
929 '../base/base.gyp:base',
930 '../testing/gtest.gyp:gtest',
931 '../media/media.gyp:media',
932 '../ui/gl/gl.gyp:gl',
936 '<(DEPTH)/third_party/angle/include',
939 'common/gpu/media/rendering_helper.h',
940 'common/gpu/media/rendering_helper_mac.mm',
941 'common/gpu/media/rendering_helper_gl.cc',
942 'common/gpu/media/video_decode_accelerator_unittest.cc',
945 ['target_arch=="arm"', {
947 '<(DEPTH)/third_party/openmax/il',
952 'common/gpu/media/rendering_helper_gl.cc',
957 '../third_party/angle/src/build_angle.gyp:libEGL',
958 '../third_party/angle/src/build_angle.gyp:libGLESv2',
961 ['(OS=="win" and win_use_allocator_shim==1) or '
962 '(os_posix == 1 and OS != "mac" and OS != "android" and '
963 ' linux_use_tcmalloc==1)', {
965 '../base/allocator/allocator.gyp:allocator',
968 ['target_arch != "arm" and (OS=="linux" or chromeos == 1)', {
970 '<(DEPTH)/third_party/libva',
974 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
975 'msvs_disabled_warnings': [ 4267, ],
979 ['chromeos == 1 or OS == "linux"', {
982 'target_name': 'h264_parser_unittest',
983 'type': 'executable',
986 '../base/base.gyp:base',
987 '../testing/gtest.gyp:gtest',
990 'common/gpu/media/h264_bit_reader_unittest.cc',
991 'common/gpu/media/h264_parser_unittest.cc',
994 ['linux_use_tcmalloc==1', {
996 '../base/allocator/allocator.gyp:allocator',
1003 # Special target to wrap a gtest_target_type==shared_library
1004 # content_unittests into an android apk for execution.
1005 # See base.gyp for TODO(jrg)s about this strategy.
1006 ['OS == "android" and gtest_target_type == "shared_library"', {
1009 'target_name': 'content_unittests_apk',
1013 'content_unittests',
1016 'test_suite_name': 'content_unittests',
1017 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)content_unittests<(SHARED_LIB_SUFFIX)',
1019 'includes': [ '../build/apk_test.gypi' ],
1022 'target_name': 'content_browsertests_apk',
1025 'content_browsertests',
1027 'content_shell_java',
1030 'apk_name': 'content_browsertests',
1031 'java_in_dir': 'shell/android/browsertests_apk',
1032 'resource_dir': 'shell/android/browsertests_apk/res',
1033 'native_lib_target': 'libcontent_browsertests',
1034 'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'],
1035 'asset_location': '<(ant_build_out)/content_shell/assets',
1037 'includes': [ '../build/java_apk.gypi' ],
1041 ['OS == "android"', {
1044 'target_name': 'content_java_test_support',
1047 '../base/base.gyp:base',
1048 '../base/base.gyp:base_java_test_support',
1053 'java_in_dir': '../content/public/test/android/javatests',
1055 'includes': [ '../build/java.gypi' ],
1058 'target_name': 'content_shell_test_apk',
1062 'content_java_test_support',
1063 'content_shell_apk_java',
1064 '../base/base.gyp:base_java',
1065 '../base/base.gyp:base_javatests',
1066 '../base/base.gyp:base_java_test_support',
1067 '../media/media.gyp:media_java',
1068 '../media/media.gyp:media_test_support',
1069 '../net/net.gyp:net_java',
1070 '../net/net.gyp:net_javatests',
1071 '../tools/android/forwarder2/forwarder.gyp:forwarder2',
1074 'apk_name': 'ContentShellTest',
1075 'java_in_dir': 'shell/android/javatests',
1076 'resource_dir': 'shell/android/shell_apk/res',
1077 'additional_src_dirs': ['public/android/javatests/',],
1080 'includes': [ '../build/java_apk.gypi' ],