1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 2 # Use of this source code is governed by a BSD-style license that can be 3 # found in the LICENSE file. 4 5 { 6 'targets': [ 7 { 8 'target_name': 'test_support_content', 9 'type': 'static_library', 10 'defines!': ['CONTENT_IMPLEMENTATION'], 11 'dependencies': [ 12 '../media/media.gyp:media', 13 '../net/net.gyp:net_test_support', 14 '../skia/skia.gyp:skia', 15 '../testing/gmock.gyp:gmock', 16 '../testing/gtest.gyp:gtest', 17 '../ui/ui.gyp:ui_test_support', 18 '../url/url.gyp:url_lib', 19 'content_app_both', 20 'content_browser', 21 'content_common', 22 ], 23 'include_dirs': [ 24 '..', 25 ], 26 'sources': [ 27 'public/test/browser_test_base.cc', 28 'public/test/browser_test_base.h', 29 'public/test/browser_test.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/nested_message_pump_android.cc', 53 'public/test/nested_message_pump_android.h', 54 'public/test/render_view_fake_resources_test.cc', 55 'public/test/render_view_fake_resources_test.h', 56 'public/test/render_view_test.cc', 57 'public/test/render_view_test.h', 58 'public/test/render_widget_test.cc', 59 'public/test/render_widget_test.h', 60 'public/test/test_browser_context.cc', 61 'public/test/test_browser_context.h', 62 'public/test/test_browser_thread_bundle.cc', 63 'public/test/test_browser_thread_bundle.h', 64 'public/test/test_browser_thread.cc', 65 'public/test/test_browser_thread.h', 66 'public/test/test_content_client_initializer.cc', 67 'public/test/test_content_client_initializer.h', 68 'public/test/test_file_error_injector.cc', 69 'public/test/test_file_error_injector.h', 70 'public/test/test_launcher.cc', 71 'public/test/test_launcher.h', 72 'public/test/test_navigation_observer.cc', 73 'public/test/test_navigation_observer.h', 74 'public/test/test_notification_tracker.cc', 75 'public/test/test_notification_tracker.h', 76 'public/test/test_renderer_host.cc', 77 'public/test/test_renderer_host.h', 78 'public/test/test_utils.cc', 79 'public/test/test_utils.h', 80 'public/test/unittest_test_suite.cc', 81 'public/test/unittest_test_suite.h', 82 'public/test/web_contents_tester.cc', 83 'public/test/web_contents_tester.h', 84 'app/startup_helper_win.cc', 85 # TODO(phajdan.jr): All of those files should live in content/test (if 86 # they're only used by content) or content/public/test (if they're used 87 # by other embedders). 88 'browser/download/mock_download_file.cc', 89 'browser/download/mock_download_file.h', 90 'browser/geolocation/fake_access_token_store.cc', 91 'browser/geolocation/fake_access_token_store.h', 92 'browser/geolocation/mock_location_arbitrator.cc', 93 'browser/geolocation/mock_location_arbitrator.h', 94 'browser/geolocation/mock_location_provider.cc', 95 'browser/geolocation/mock_location_provider.h', 96 'browser/renderer_host/compositing_iosurface_shader_programs_mac.cc', 97 'browser/renderer_host/compositing_iosurface_shader_programs_mac.h', 98 'browser/renderer_host/compositing_iosurface_transformer_mac.cc', 99 'browser/renderer_host/compositing_iosurface_transformer_mac.h', 100 'browser/renderer_host/media/mock_media_observer.cc', 101 'browser/renderer_host/media/mock_media_observer.h', 102 'browser/renderer_host/test_backing_store.cc', 103 'browser/renderer_host/test_backing_store.h', 104 'browser/renderer_host/test_render_view_host.cc', 105 'browser/renderer_host/test_render_view_host.h', 106 'gpu/gpu_idirect3d9_mock_win.cc', 107 'gpu/gpu_idirect3d9_mock_win.h', 108 'test/content_test_suite.cc', 109 'test/content_test_suite.h', 110 'test/layouttest_support.cc', 111 'test/mock_keyboard.cc', 112 'test/mock_keyboard.h', 113 'test/mock_keyboard_driver_win.cc', 114 'test/mock_keyboard_driver_win.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_media_stream_client.cc', 132 'test/test_media_stream_client.h', 133 'test/test_render_view_host_factory.cc', 134 'test/test_render_view_host_factory.h', 135 'test/test_video_frame_provider.cc', 136 'test/test_video_frame_provider.h', 137 'test/test_web_contents.cc', 138 'test/test_web_contents.h', 139 'test/test_web_contents_view.cc', 140 'test/test_web_contents_view.h', 141 142 # TODO(phajdan.jr): Those files should be moved to webkit 143 # test support target. 144 '../webkit/browser/appcache/appcache_test_helper.cc', 145 '../webkit/browser/appcache/appcache_test_helper.h', 146 ], 147 'conditions': [ 148 ['OS == "ios"', { 149 'sources/': [ 150 # iOS only needs a small portion of content; exclude all the 151 # implementation, and re-include what is used. 152 ['exclude', '\\.(cc|mm)$'], 153 ['include', '_ios\\.(cc|mm)$'], 154 ['include', '^public/test/content_test_suite_base\\.cc$'], 155 ['include', '^public/test/mock_notification_observer\\.cc$'], 156 ['include', '^public/test/mock_resource_context\\.cc$'], 157 ['include', '^public/test/test_browser_thread\\.cc$'], 158 ['include', '^public/test/test_content_client_initializer\\.cc$'], 159 ['include', '^public/test/test_notification_tracker\\.cc$'], 160 ['include', '^public/test/test_utils\\.cc$'], 161 ['include', '^public/test/unittest_test_suite\\.cc$'], 162 ['include', '^test/content_test_suite\\.cc$'], 163 ['include', '^test/test_content_browser_client\\.cc$'], 164 ['include', '^test/test_content_client\\.cc$'], 165 ], 166 }, { # OS != "ios" 167 'dependencies': [ 168 'content_child', 169 'content_ppapi_plugin', 170 'content_renderer', 171 'content_utility', 172 'content_worker', 173 '../ppapi/ppapi_internal.gyp:ppapi_host', 174 '../ppapi/ppapi_internal.gyp:ppapi_proxy', 175 '../ppapi/ppapi_internal.gyp:ppapi_shared', 176 '../ppapi/ppapi_internal.gyp:ppapi_unittest_shared', 177 '../third_party/WebKit/public/blink.gyp:blink', 178 '../third_party/WebKit/public/blink_test_runner.gyp:blink_test_runner', 179 '../ui/surface/surface.gyp:surface', 180 '../webkit/common/gpu/webkit_gpu.gyp:webkit_gpu', 181 '../webkit/renderer/compositor_bindings/compositor_bindings.gyp:webkit_compositor_support', 182 '../webkit/support/webkit_support.gyp:webkit_support_common', 183 '../webkit/storage_browser.gyp:webkit_storage_browser', 184 '../webkit/storage_common.gyp:webkit_storage_common', 185 '../webkit/storage_renderer.gyp:webkit_storage_renderer', 186 ], 187 }], 188 ['OS == "win" or toolkit_uses_gtk == 1', { 189 'dependencies': [ 190 '../sandbox/sandbox.gyp:sandbox', 191 ], 192 }], 193 ['enable_webrtc==1', { 194 'sources': [ 195 'renderer/media/mock_media_stream_dependency_factory.cc', 196 'renderer/media/mock_media_stream_dependency_factory.h', 197 'renderer/media/mock_media_stream_dispatcher.cc', 198 'renderer/media/mock_media_stream_dispatcher.h', 199 'renderer/media/mock_media_stream_registry.cc', 200 'renderer/media/mock_media_stream_registry.h', 201 'renderer/media/mock_peer_connection_impl.cc', 202 'renderer/media/mock_peer_connection_impl.h', 203 'renderer/media/mock_web_rtc_peer_connection_handler_client.cc', 204 'renderer/media/mock_web_rtc_peer_connection_handler_client.h', 205 'test/webrtc_audio_device_test.cc', 206 'test/webrtc_audio_device_test.h', 207 ], 208 'dependencies': [ 209 '../third_party/libjingle/libjingle.gyp:libjingle_webrtc', 210 '../third_party/libjingle/libjingle.gyp:libpeerconnection', 211 '../third_party/webrtc/modules/modules.gyp:audio_device', 212 '../third_party/webrtc/modules/modules.gyp:video_capture_module', 213 ], 214 }], 215 ['toolkit_uses_gtk == 1', { 216 'dependencies': [ 217 '../build/linux/system.gyp:gtk', 218 ], 219 }], 220 ['use_glib == 1', { 221 'dependencies': [ 222 '../build/linux/system.gyp:glib', 223 ], 224 }], 225 ['use_aura==1', { 226 'dependencies': [ 227 '../ui/aura/aura.gyp:aura_test_support', 228 '../ui/compositor/compositor.gyp:compositor', 229 ], 230 }], 231 ['OS=="win"', { 232 'dependencies': [ 233 '../third_party/iaccessible2/iaccessible2.gyp:iaccessible2', 234 ], 235 }], 236 ['OS!="android" and OS!="ios"', { 237 'dependencies': [ 238 '../third_party/libvpx/libvpx.gyp:libvpx', 239 ], 240 }], 241 ['OS=="android"', { 242 'dependencies': [ 243 'test_support_content_jni_headers', 244 ], 245 }], 246 ], 247 }, 248 { 249 'target_name': 'content_unittests', 250 'type': '<(gtest_target_type)', 251 'defines!': ['CONTENT_IMPLEMENTATION'], 252 'dependencies': [ 253 'content_browser', 254 'content_common', 255 'test_support_content', 256 'browser/speech/proto/speech_proto.gyp:speech_proto', 257 '../base/base.gyp:test_support_base', 258 '../crypto/crypto.gyp:crypto', 259 '../media/media.gyp:media_test_support', 260 '../net/net.gyp:net_test_support', 261 '../skia/skia.gyp:skia', 262 '../sql/sql.gyp:sql', 263 '../sql/sql.gyp:test_support_sql', 264 '../testing/gmock.gyp:gmock', 265 '../testing/gtest.gyp:gtest', 266 '../ui/ui.gyp:ui', 267 '../webkit/common/user_agent/webkit_user_agent.gyp:user_agent', 268 ], 269 'include_dirs': [ 270 '..', 271 '<(SHARED_INTERMEDIATE_DIR)', # Needed by key_systems_unittest.cc. 272 ], 273 'sources': [ 274 'browser/accessibility/browser_accessibility_mac_unittest.mm', 275 'browser/accessibility/browser_accessibility_manager_unittest.cc', 276 'browser/accessibility/browser_accessibility_win_unittest.cc', 277 'browser/appcache/chrome_appcache_service_unittest.cc', 278 'browser/browser_thread_unittest.cc', 279 'browser/browser_url_handler_impl_unittest.cc', 280 'browser/byte_stream_unittest.cc', 281 'browser/child_process_security_policy_unittest.cc', 282 'browser/device_orientation/data_fetcher_impl_android_unittest.cc', 283 'browser/device_orientation/device_motion_provider_unittest.cc', 284 'browser/device_orientation/provider_unittest.cc', 285 'browser/devtools/devtools_http_handler_unittest.cc', 286 'browser/devtools/devtools_manager_unittest.cc', 287 'browser/dom_storage/dom_storage_area_unittest.cc', 288 'browser/dom_storage/dom_storage_context_impl_unittest.cc', 289 'browser/dom_storage/dom_storage_database_unittest.cc', 290 'browser/dom_storage/session_storage_database_unittest.cc', 291 'browser/download/base_file_unittest.cc', 292 'browser/download/download_file_unittest.cc', 293 'browser/download/download_item_impl_unittest.cc', 294 'browser/download/download_manager_impl_unittest.cc', 295 'browser/download/file_metadata_unittest_linux.cc', 296 'browser/download/rate_estimator_unittest.cc', 297 'browser/download/save_package_unittest.cc', 298 'browser/fileapi/fileapi_message_filter_unittest.cc', 299 'browser/gamepad/gamepad_provider_unittest.cc', 300 'browser/gamepad/gamepad_test_helpers.cc', 301 'browser/gamepad/gamepad_test_helpers.h', 302 'browser/geolocation/device_data_provider_unittest.cc', 303 'browser/geolocation/geolocation_provider_unittest.cc', 304 'browser/geolocation/gps_location_provider_unittest_linux.cc', 305 'browser/geolocation/location_arbitrator_impl_unittest.cc', 306 'browser/geolocation/network_location_provider_unittest.cc', 307 'browser/geolocation/wifi_data_provider_chromeos_unittest.cc', 308 'browser/geolocation/wifi_data_provider_common_unittest.cc', 309 'browser/geolocation/wifi_data_provider_linux_unittest.cc', 310 'browser/geolocation/wifi_data_provider_unittest_win.cc', 311 'browser/gpu/shader_disk_cache_unittest.cc', 312 'browser/host_zoom_map_impl_unittest.cc', 313 'browser/indexed_db/indexed_db_backing_store_unittest.cc', 314 'browser/indexed_db/indexed_db_cleanup_on_io_error_unittest.cc', 315 'browser/indexed_db/indexed_db_database_unittest.cc', 316 'browser/indexed_db/indexed_db_fake_backing_store.cc', 317 'browser/indexed_db/indexed_db_fake_backing_store.h', 318 'browser/indexed_db/indexed_db_leveldb_coding_unittest.cc', 319 'browser/indexed_db/indexed_db_quota_client_unittest.cc', 320 'browser/indexed_db/indexed_db_unittest.cc', 321 'browser/indexed_db/leveldb/leveldb_unittest.cc', 322 'browser/indexed_db/list_set_unittest.cc', 323 'browser/loader/offline_policy_unittest.cc', 324 'browser/loader/resource_buffer_unittest.cc', 325 'browser/loader/resource_dispatcher_host_unittest.cc', 326 'browser/loader/resource_loader_unittest.cc', 327 'browser/loader/resource_scheduler_unittest.cc', 328 'browser/loader/upload_data_stream_builder_unittest.cc', 329 'browser/mach_broker_mac_unittest.cc', 330 'browser/media/media_internals_unittest.cc', 331 'browser/media/webrtc_identity_store_unittest.cc', 332 'browser/net/sqlite_persistent_cookie_store_unittest.cc', 333 'browser/notification_service_impl_unittest.cc', 334 'browser/plugin_loader_posix_unittest.cc', 335 'browser/power_monitor_message_broadcaster_unittest.cc', 336 'browser/renderer_host/compositing_iosurface_transformer_mac_unittest.cc', 337 'browser/renderer_host/gtk_key_bindings_handler_unittest.cc', 338 'browser/renderer_host/input/immediate_input_router_unittest.cc', 339 'browser/renderer_host/media/audio_input_device_manager_unittest.cc', 340 'browser/renderer_host/media/audio_mirroring_manager_unittest.cc', 341 'browser/renderer_host/media/audio_renderer_host_unittest.cc', 342 'browser/renderer_host/media/device_request_message_filter_unittest.cc', 343 'browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc', 344 'browser/renderer_host/media/media_stream_manager_unittest.cc', 345 'browser/renderer_host/media/media_stream_ui_proxy_unittest.cc', 346 'browser/renderer_host/media/video_capture_buffer_pool_unittest.cc', 347 'browser/renderer_host/media/video_capture_controller_unittest.cc', 348 'browser/renderer_host/media/video_capture_host_unittest.cc', 349 'browser/renderer_host/media/video_capture_manager_unittest.cc', 350 'browser/renderer_host/media/video_capture_oracle_unittest.cc', 351 'browser/renderer_host/media/web_contents_audio_input_stream_unittest.cc', 352 'browser/renderer_host/media/web_contents_video_capture_device_unittest.cc', 353 'browser/renderer_host/pepper/browser_ppapi_host_test.cc', 354 'browser/renderer_host/pepper/browser_ppapi_host_test.h', 355 'browser/renderer_host/pepper/pepper_gamepad_host_unittest.cc', 356 'browser/renderer_host/pepper/pepper_printing_host_unittest.cc', 357 'browser/renderer_host/render_view_host_unittest.cc', 358 'browser/renderer_host/render_widget_host_unittest.cc', 359 'browser/renderer_host/render_widget_host_view_aura_unittest.cc', 360 'browser/renderer_host/render_widget_host_view_guest_unittest.cc', 361 'browser/renderer_host/render_widget_host_view_mac_editcommand_helper_unittest.mm', 362 'browser/renderer_host/render_widget_host_view_mac_unittest.mm', 363 'browser/renderer_host/smooth_scroll_gesture_controller_unittest.cc', 364 'browser/renderer_host/text_input_client_mac_unittest.mm', 365 'browser/renderer_host/web_input_event_aura_unittest.cc', 366 'browser/resolve_proxy_msg_helper_unittest.cc', 367 'browser/site_instance_impl_unittest.cc', 368 'browser/speech/chunked_byte_buffer_unittest.cc', 369 'browser/speech/endpointer/endpointer_unittest.cc', 370 'browser/speech/google_one_shot_remote_engine_unittest.cc', 371 'browser/speech/google_streaming_remote_engine_unittest.cc', 372 'browser/speech/speech_recognizer_impl_unittest.cc', 373 'browser/ssl/ssl_host_state_unittest.cc', 374 'browser/startup_task_runner_unittest.cc', 375 'browser/storage_partition_impl_unittest.cc', 376 'browser/storage_partition_impl_map_unittest.cc', 377 'browser/streams/stream_unittest.cc', 378 'browser/streams/stream_url_request_job_unittest.cc', 379 'browser/system_message_window_win_unittest.cc', 380 'browser/tracing/trace_subscriber_stdio_unittest.cc', 381 'browser/web_contents/aura/window_slider_unittest.cc', 382 'browser/web_contents/navigation_controller_impl_unittest.cc', 383 'browser/web_contents/navigation_entry_impl_unittest.cc', 384 'browser/web_contents/render_view_host_manager_unittest.cc', 385 'browser/web_contents/web_contents_delegate_unittest.cc', 386 'browser/web_contents/web_contents_impl_unittest.cc', 387 'browser/web_contents/web_contents_user_data_unittest.cc', 388 'browser/web_contents/web_contents_view_mac_unittest.mm', 389 'browser/web_contents/web_drag_dest_mac_unittest.mm', 390 'browser/web_contents/web_drag_source_mac_unittest.mm', 391 'browser/webui/web_ui_data_source_unittest.cc', 392 'browser/webui/web_ui_message_handler_unittest.cc', 393 'child/indexed_db/indexed_db_dispatcher_unittest.cc', 394 'child/indexed_db/proxy_webidbcursor_impl_unittest.cc', 395 'child/npapi/plugin_lib_unittest.cc', 396 'child/power_monitor_broadcast_source_unittest.cc', 397 'child/resource_dispatcher_unittest.cc', 398 'common/android/address_parser_unittest.cc', 399 'common/cc_messages_unittest.cc', 400 'common/common_param_traits_unittest.cc', 401 'common/dom_storage/dom_storage_map_unittest.cc', 402 'common/gpu/gpu_memory_manager_unittest.cc', 403 'common/indexed_db/indexed_db_key_unittest.cc', 404 'common/inter_process_time_ticks_converter_unittest.cc', 405 'common/mac/attributed_string_coder_unittest.mm', 406 'common/mac/font_descriptor_unittest.mm', 407 'common/page_state_serialization_unittest.cc', 408 'common/page_zoom_unittest.cc', 409 'common/plugin_list_unittest.cc', 410 'common/sandbox_mac_diraccess_unittest.mm', 411 'common/sandbox_mac_fontloading_unittest.mm', 412 'common/sandbox_mac_system_access_unittest.mm', 413 'common/sandbox_mac_unittest_helper.h', 414 'common/sandbox_mac_unittest_helper.mm', 415 'common/webplugininfo_unittest.cc', 416 'renderer/active_notification_tracker_unittest.cc', 417 'renderer/android/email_detector_unittest.cc', 418 'renderer/android/phone_number_detector_unittest.cc', 419 'renderer/bmp_image_decoder_unittest.cc', 420 'renderer/date_time_formatter_unittest.cc', 421 'renderer/device_orientation/device_motion_event_pump_unittest.cc', 422 'renderer/device_orientation/device_orientation_event_pump_unittest.cc', 423 'renderer/disambiguation_popup_helper_unittest.cc', 424 'renderer/dom_storage/dom_storage_cached_area_unittest.cc', 425 'renderer/gpu/input_event_filter_unittest.cc', 426 'renderer/gpu/input_handler_proxy_unittest.cc', 427 'renderer/ico_image_decoder_unittest.cc', 428 'renderer/media/android/media_info_loader_unittest.cc', 429 'renderer/media/audio_message_filter_unittest.cc', 430 'renderer/media/audio_renderer_mixer_manager_unittest.cc', 431 'renderer/media/buffered_data_source_unittest.cc', 432 'renderer/media/buffered_resource_loader_unittest.cc', 433 'renderer/media/cache_util_unittest.cc', 434 'renderer/media/crypto/key_systems_unittest.cc', 435 'renderer/media/test_response_generator.cc', 436 'renderer/media/test_response_generator.h', 437 'renderer/media/video_capture_impl_unittest.cc', 438 'renderer/media/video_capture_message_filter_unittest.cc', 439 'renderer/media/video_destination_handler_unittest.cc', 440 'renderer/media/webaudiosourceprovider_impl_unittest.cc', 441 'renderer/npapi/webplugin_impl_unittest.cc', 442 'renderer/paint_aggregator_unittest.cc', 443 'renderer/pepper/host_var_tracker_unittest.cc', 444 'renderer/pepper/mock_resource.h', 445 'renderer/pepper/pepper_broker_unittest.cc', 446 'renderer/pepper/ppapi_unittest.cc', 447 'renderer/pepper/ppapi_unittest.h', 448 'renderer/pepper/quota_file_io_unittest.cc', 449 'renderer/pepper/v8_var_converter_unittest.cc', 450 'renderer/render_thread_impl_unittest.cc', 451 'renderer/render_view_impl_unittest.cc', 452 'renderer/skia_benchmarking_extension_unittest.cc', 453 'renderer/v8_value_converter_impl_unittest.cc', 454 'test/image_decoder_test.cc', 455 'test/image_decoder_test.h', 456 'test/run_all_unittests.cc', 457 '../webkit/browser/appcache/appcache_database_unittest.cc', 458 '../webkit/browser/appcache/appcache_group_unittest.cc', 459 '../webkit/browser/appcache/appcache_host_unittest.cc', 460 '../webkit/browser/appcache/appcache_quota_client_unittest.cc', 461 '../webkit/browser/appcache/appcache_request_handler_unittest.cc', 462 '../webkit/browser/appcache/appcache_response_unittest.cc', 463 '../webkit/browser/appcache/appcache_service_unittest.cc', 464 '../webkit/browser/appcache/appcache_storage_impl_unittest.cc', 465 '../webkit/browser/appcache/appcache_storage_unittest.cc', 466 '../webkit/browser/appcache/appcache_unittest.cc', 467 '../webkit/browser/appcache/appcache_update_job_unittest.cc', 468 '../webkit/browser/appcache/appcache_url_request_job_unittest.cc', 469 '../webkit/browser/appcache/manifest_parser_unittest.cc', 470 '../webkit/browser/appcache/mock_appcache_policy.cc', 471 '../webkit/browser/appcache/mock_appcache_policy.h', 472 '../webkit/browser/appcache/mock_appcache_service.cc', 473 '../webkit/browser/appcache/mock_appcache_service.h', 474 '../webkit/browser/appcache/mock_appcache_storage.cc', 475 '../webkit/browser/appcache/mock_appcache_storage.h', 476 '../webkit/browser/appcache/mock_appcache_storage_unittest.cc', 477 '../webkit/browser/blob/blob_storage_context_unittest.cc', 478 '../webkit/browser/blob/blob_storage_controller_unittest.cc', 479 '../webkit/browser/blob/blob_url_request_job_unittest.cc', 480 '../webkit/browser/blob/local_file_stream_reader_unittest.cc', 481 '../webkit/browser/blob/mock_blob_url_request_context.cc', 482 '../webkit/browser/blob/mock_blob_url_request_context.h', 483 '../webkit/browser/database/database_quota_client_unittest.cc', 484 '../webkit/browser/database/database_tracker_unittest.cc', 485 '../webkit/browser/database/database_util_unittest.cc', 486 '../webkit/browser/database/databases_table_unittest.cc', 487 '../webkit/browser/fileapi/async_file_test_helper.cc', 488 '../webkit/browser/fileapi/async_file_test_helper.h', 489 '../webkit/browser/fileapi/copy_or_move_file_validator_unittest.cc', 490 '../webkit/browser/fileapi/copy_or_move_operation_delegate_unittest.cc', 491 '../webkit/browser/fileapi/external_mount_points_unittest.cc', 492 '../webkit/browser/fileapi/file_system_context_unittest.cc', 493 '../webkit/browser/fileapi/file_system_dir_url_request_job_unittest.cc', 494 '../webkit/browser/fileapi/file_system_file_stream_reader_unittest.cc', 495 '../webkit/browser/fileapi/file_system_operation_impl_unittest.cc', 496 '../webkit/browser/fileapi/file_system_operation_impl_write_unittest.cc', 497 '../webkit/browser/fileapi/file_system_quota_client_unittest.cc', 498 '../webkit/browser/fileapi/file_system_url_request_job_unittest.cc', 499 '../webkit/browser/fileapi/file_system_url_unittest.cc', 500 '../webkit/browser/fileapi/file_system_usage_cache_unittest.cc', 501 '../webkit/browser/fileapi/file_writer_delegate_unittest.cc', 502 '../webkit/browser/fileapi/isolated_context_unittest.cc', 503 '../webkit/browser/fileapi/isolated_file_util_unittest.cc', 504 '../webkit/browser/fileapi/local_file_stream_writer_unittest.cc', 505 '../webkit/browser/fileapi/local_file_util_unittest.cc', 506 '../webkit/browser/fileapi/mock_file_change_observer.cc', 507 '../webkit/browser/fileapi/mock_file_change_observer.h', 508 '../webkit/browser/fileapi/mock_file_system_context.cc', 509 '../webkit/browser/fileapi/mock_file_system_context.h', 510 '../webkit/browser/fileapi/mock_file_system_options.cc', 511 '../webkit/browser/fileapi/mock_file_system_options.h', 512 '../webkit/browser/fileapi/native_file_util_unittest.cc', 513 '../webkit/browser/fileapi/obfuscated_file_util_unittest.cc', 514 '../webkit/browser/fileapi/sandbox_context_unittest.cc', 515 '../webkit/browser/fileapi/sandbox_database_test_helper.cc', 516 '../webkit/browser/fileapi/sandbox_database_test_helper.h', 517 '../webkit/browser/fileapi/sandbox_directory_database_unittest.cc', 518 '../webkit/browser/fileapi/sandbox_file_system_backend_unittest.cc', 519 '../webkit/browser/fileapi/sandbox_file_system_test_helper.cc', 520 '../webkit/browser/fileapi/sandbox_file_system_test_helper.h', 521 '../webkit/browser/fileapi/sandbox_isolated_origin_database_unittest.cc', 522 '../webkit/browser/fileapi/sandbox_origin_database_unittest.cc', 523 '../webkit/browser/fileapi/test_file_set.cc', 524 '../webkit/browser/fileapi/test_file_set.h', 525 '../webkit/browser/fileapi/timed_task_helper_unittest.cc', 526 '../webkit/browser/fileapi/transient_file_util_unittest.cc', 527 '../webkit/browser/fileapi/upload_file_system_file_element_reader_unittest.cc', 528 '../webkit/child/multipart_response_delegate_unittest.cc', 529 '../webkit/child/touch_fling_gesture_curve_unittest.cc', 530 '../webkit/child/worker_task_runner_unittest.cc', 531 '../webkit/common/blob/shareable_file_reference_unittest.cc', 532 '../webkit/common/cursors/webcursor_unittest.cc', 533 '../webkit/common/database/database_connections_unittest.cc', 534 '../webkit/common/database/database_identifier_unittest.cc', 535 '../webkit/common/fileapi/file_system_util_unittest.cc', 536 '../webkit/glue/webkit_glue_unittest.cc', 537 '../webkit/mocks/mock_weburlloader.cc', 538 '../webkit/mocks/mock_weburlloader.h', 539 '../webkit/common/user_agent/user_agent_unittest.cc', 540 '../webkit/browser/quota/mock_quota_manager.cc', 541 '../webkit/browser/quota/mock_quota_manager.h', 542 '../webkit/browser/quota/mock_quota_manager_unittest.cc', 543 '../webkit/browser/quota/mock_special_storage_policy.cc', 544 '../webkit/browser/quota/mock_special_storage_policy.h', 545 '../webkit/browser/quota/mock_storage_client.cc', 546 '../webkit/browser/quota/mock_storage_client.h', 547 '../webkit/browser/quota/quota_database_unittest.cc', 548 '../webkit/browser/quota/quota_manager_unittest.cc', 549 '../webkit/browser/quota/quota_temporary_storage_evictor_unittest.cc', 550 '../webkit/browser/quota/usage_tracker_unittest.cc', 551 '../webkit/renderer/cpp_variant_unittest.cc', 552 '../webkit/renderer/fileapi/webfilewriter_base_unittest.cc', 553 ], 554 'conditions': [ 555 ['OS == "ios"', { 556 'sources/': [ 557 # iOS only needs a small portion of content; exclude all the 558 # implementation, and re-include what is used. 559 ['exclude', '\\.(cc|mm)$'], 560 ['include', '_ios\\.(cc|mm)$'], 561 ['include', '^browser/notification_service_impl_unittest\\.cc$'], 562 ['include', '^browser/web_contents/navigation_entry_impl_unittest\\.cc$'], 563 ['include', '^test/run_all_unittests\\.cc$'], 564 ], 565 }, { # OS != "ios" 566 'dependencies': [ 567 'content_browser', 568 'content_child', 569 'content_gpu', 570 'content_plugin', 571 'content_renderer', 572 'content_resources.gyp:content_resources', 573 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', 574 '../gpu/gpu.gyp:gpu', 575 '../gpu/gpu.gyp:gpu_unittest_utils', 576 '../ipc/ipc.gyp:test_support_ipc', 577 '../jingle/jingle.gyp:jingle_glue_test_util', 578 '../media/media.gyp:shared_memory_support', 579 '../third_party/WebKit/public/blink.gyp:blink', 580 '../third_party/icu/icu.gyp:icui18n', 581 '../third_party/icu/icu.gyp:icuuc', 582 '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase', 583 '../third_party/libjingle/libjingle.gyp:libjingle', 584 '../ui/gl/gl.gyp:gl', 585 '../v8/tools/gyp/v8.gyp:v8', 586 '../webkit/common/webkit_common.gyp:webkit_common', 587 '../webkit/renderer/webkit_renderer.gyp:webkit_renderer', 588 '../webkit/storage_browser.gyp:webkit_storage_browser', 589 '../webkit/storage_common.gyp:webkit_storage_common', 590 '../webkit/storage_renderer.gyp:webkit_storage_renderer', 591 '../webkit/support/webkit_support.gyp:glue', 592 '../webkit/support/webkit_support.gyp:glue_child', 593 ], 594 }], 595 ['enable_plugins==0', { 596 'sources/': [ 597 ['exclude', '^browser/renderer_host/pepper/'], 598 ['exclude', '^child/npapi/'], 599 ['exclude', '^renderer/npapi/'], 600 ['exclude', '^renderer/pepper/'], 601 ], 602 'sources!': [ 603 'browser/plugin_loader_posix_unittest.cc', 604 'renderer/media/video_destination_handler_unittest.cc', 605 ], 606 }], 607 ['enable_webrtc==1', { 608 'sources': [ 609 'browser/media/webrtc_internals_unittest.cc', 610 'browser/renderer_host/media/webrtc_identity_service_host_unittest.cc', 611 'browser/renderer_host/p2p/socket_host_test_utils.h', 612 'browser/renderer_host/p2p/socket_host_tcp_unittest.cc', 613 'browser/renderer_host/p2p/socket_host_tcp_server_unittest.cc', 614 'browser/renderer_host/p2p/socket_host_udp_unittest.cc', 615 'renderer/media/media_stream_dependency_factory_unittest.cc', 616 'renderer/media/media_stream_dispatcher_unittest.cc', 617 'renderer/media/media_stream_impl_unittest.cc', 618 'renderer/media/rtc_peer_connection_handler_unittest.cc', 619 'renderer/media/rtc_video_decoder_unittest.cc', 620 'renderer/media/video_source_handler_unittest.cc', 621 'renderer/media/webrtc_audio_device_unittest.cc', 622 'renderer/media/webrtc_identity_service_unittest.cc', 623 'renderer/media/webrtc_local_audio_track_unittest.cc', 624 ], 625 'dependencies': [ 626 '../third_party/libjingle/libjingle.gyp:libjingle_webrtc', 627 '../third_party/libjingle/libjingle.gyp:libpeerconnection', 628 '../third_party/webrtc/modules/modules.gyp:video_capture_module', 629 '../third_party/webrtc/voice_engine/voice_engine.gyp:voice_engine', 630 ] 631 }, { 632 'sources!': [ 633 'renderer/media/video_destination_handler_unittest.cc', 634 ], 635 }], 636 ['enable_webrtc==1 and (OS=="linux" or OS=="mac" or OS=="win")', { 637 'sources': [ 638 'browser/renderer_host/media/desktop_capture_device_unittest.cc', 639 ], 640 'dependencies': [ 641 '../third_party/webrtc/modules/modules.gyp:desktop_capture', 642 ], 643 }], 644 # TODO(jrg): remove the OS=="android" section? 645 # http://crbug.com/113172 646 # Understand better how media_stream_ is tied into Chromium. 647 ['enable_webrtc==0 and OS=="android"', { 648 'sources/': [ 649 ['exclude', '^renderer/media/media_stream_'], 650 ], 651 }], 652 ['input_speech==0', { 653 'sources/': [ 654 ['exclude', '^browser/speech/'], 655 ] 656 }], 657 ['notifications==0', { 658 'sources!': [ 659 'renderer/active_notification_tracker_unittest.cc', 660 ], 661 }], 662 ['OS=="linux"', { 663 'dependencies': [ 664 '../build/linux/system.gyp:dbus', 665 '../dbus/dbus.gyp:dbus_test_support', 666 ], 667 }], 668 ['OS=="win" and win_use_allocator_shim==1', { 669 'dependencies': [ 670 '../base/allocator/allocator.gyp:allocator', 671 ], 672 }], 673 ['OS=="win"', { 674 'dependencies': [ 675 '../third_party/iaccessible2/iaccessible2.gyp:iaccessible2', 676 ], 677 }], 678 ['OS=="mac"', { 679 # These flags are needed to run the test on Mac. 680 # Search for comments about "xcode_settings" in chrome_tests.gypi. 681 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, 682 }], 683 ['chromeos==1', { 684 'sources/': [ 685 ['exclude', '^browser/renderer_host/gtk_key_bindings_handler_unittest.cc'], 686 ['exclude', '^browser/geolocation/wifi_data_provider_linux_unittest.cc'], 687 ], 688 }], 689 ['use_aura==1', { 690 'dependencies': [ 691 '../ui/aura/aura.gyp:aura', 692 ], 693 'sources!': [ 694 'browser/accessibility/browser_accessibility_win_unittest.cc', 695 'browser/renderer_host/input/tap_suppression_controller_unittest.cc', 696 ], 697 }], 698 ['branding=="Chrome"', { 699 'sources!': [ 700 # These tests depend on single process mode, which is disabled in 701 # official builds. 702 'renderer/dom_serializer_browsertest.cc', 703 'renderer/resource_fetcher_browsertest.cc', 704 'renderer/savable_resources_browsertest.cc', 705 ], 706 }], 707 ['OS == "android"', { 708 'dependencies': [ 709 '../ui/ui.gyp:shell_dialogs', 710 ], 711 'sources!': [ 712 'browser/geolocation/device_data_provider_unittest.cc', 713 'browser/geolocation/gps_location_provider_unittest_linux.cc', 714 'browser/geolocation/network_location_provider_unittest.cc', 715 'browser/geolocation/wifi_data_provider_chromeos_unittest.cc', 716 'browser/geolocation/wifi_data_provider_common_unittest.cc', 717 'browser/geolocation/wifi_data_provider_linux_unittest.cc', 718 ], 719 }], 720 ['OS != "android" and OS != "ios"', { 721 'dependencies': [ 722 '../third_party/libvpx/libvpx.gyp:libvpx', 723 ], 724 }], 725 ['OS == "android" and gtest_target_type == "shared_library"', { 726 'dependencies': [ 727 '../testing/android/native_test.gyp:native_test_native_code', 728 ], 729 }], 730 ['enable_webrtc==1 and google_tv==1', { 731 'sources': [ 732 'renderer/media/rtc_video_decoder_factory_tv_unittest.cc', 733 ], 734 }], 735 ], 736 }, 737 ], 738 'conditions': [ 739 ['OS!="ios"', { 740 'targets': [ 741 { 742 'target_name': 'content_browsertests', 743 'type': '<(gtest_target_type)', 744 'defines!': ['CONTENT_IMPLEMENTATION'], 745 'dependencies': [ 746 'content_common', 747 'content_gpu', 748 'content_plugin', 749 'content_renderer', 750 'content_shell_lib', 751 'content_shell_pak', 752 'test_support_content', 753 '../base/base.gyp:test_support_base', 754 '../gpu/gpu.gyp:gpu', 755 '../ipc/ipc.gyp:test_support_ipc', 756 '../net/net.gyp:net_test_support', 757 '../ppapi/ppapi_internal.gyp:ppapi_host', 758 '../ppapi/ppapi_internal.gyp:ppapi_ipc', 759 '../ppapi/ppapi_internal.gyp:ppapi_proxy', 760 '../ppapi/ppapi_internal.gyp:ppapi_shared', 761 '../ppapi/ppapi_internal.gyp:ppapi_unittest_shared', 762 '../skia/skia.gyp:skia', 763 '../testing/gmock.gyp:gmock', 764 '../testing/gtest.gyp:gtest', 765 '../third_party/mesa/mesa.gyp:osmesa', 766 '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h', 767 '../ui/gl/gl.gyp:gl', 768 '../ui/snapshot/snapshot.gyp:snapshot', 769 '../ui/ui.gyp:shell_dialogs', 770 '../ui/ui.gyp:ui', 771 '../webkit/renderer/webkit_renderer.gyp:webkit_renderer', 772 '../webkit/support/webkit_support.gyp:glue', 773 '../webkit/support/webkit_support.gyp:glue_child', 774 ], 775 'include_dirs': [ 776 '..', 777 '<(SHARED_INTERMEDIATE_DIR)', # Needed by encrypted_media_browsertest.cc 778 ], 779 'includes': [ 780 'browser/gpu/test_support_gpu.gypi', 781 ], 782 'defines': [ 783 'HAS_OUT_OF_PROC_TEST_RUNNER', 784 ], 785 'sources': [ 786 'browser/accessibility/accessibility_win_browsertest.cc', 787 'browser/accessibility/cross_platform_accessibility_browsertest.cc', 788 'browser/accessibility/dump_accessibility_tree_browsertest.cc', 789 'browser/bookmarklet_browsertest.cc', 790 'browser/browser_plugin/browser_plugin_host_browsertest.cc', 791 'browser/browser_plugin/test_browser_plugin_embedder.cc', 792 'browser/browser_plugin/test_browser_plugin_embedder.h', 793 'browser/browser_plugin/test_browser_plugin_guest.cc', 794 'browser/browser_plugin/test_browser_plugin_guest.h', 795 'browser/browser_plugin/test_browser_plugin_guest_manager.cc', 796 'browser/browser_plugin/test_browser_plugin_guest_manager.h', 797 'browser/child_process_security_policy_browsertest.cc', 798 'browser/database_browsertest.cc', 799 'browser/device_orientation/device_orientation_browsertest.cc', 800 'browser/dom_storage/dom_storage_browsertest.cc', 801 'browser/download/download_browsertest.cc', 802 'browser/download/drag_download_file_browsertest.cc', 803 'browser/download/mhtml_generation_browsertest.cc', 804 'browser/download/save_package_browsertest.cc', 805 'browser/fileapi/file_system_browsertest.cc', 806 'browser/gpu/gpu_crash_browsertest.cc', 807 'browser/gpu/gpu_info_browsertest.cc', 808 'browser/gpu/gpu_ipc_browsertests.cc', 809 'browser/gpu/gpu_functional_browsertest.cc', 810 'browser/gpu/gpu_memory_test.cc', 811 'browser/gpu/gpu_pixel_browsertest.cc', 812 'browser/gpu/webgl_conformance_test.cc', 813 'browser/gpu/webgl_conformance_test_list_autogen.h', 814 'browser/indexed_db/indexed_db_browsertest.cc', 815 'browser/loader/resource_dispatcher_host_browsertest.cc', 816 'browser/media/encrypted_media_browsertest.cc', 817 'browser/media/media_browsertest.cc', 818 'browser/media/media_browsertest.h', 819 'browser/media/media_source_browsertest.cc', 820 'browser/media/webrtc_internals_browsertest.cc', 821 'browser/plugin_data_remover_impl_browsertest.cc', 822 'browser/plugin_browsertest.cc', 823 'browser/plugin_service_impl_browsertest.cc', 824 'browser/renderer_host/render_process_host_browsertest.cc', 825 'browser/renderer_host/render_view_host_browsertest.cc', 826 'browser/renderer_host/render_view_host_manager_browsertest.cc', 827 'browser/renderer_host/render_widget_host_browsertest.cc', 828 'browser/renderer_host/render_widget_host_view_browsertest.cc', 829 'browser/renderer_host/render_widget_host_view_win_browsertest.cc', 830 'browser/security_exploit_browsertest.cc', 831 'browser/session_history_browsertest.cc', 832 'browser/site_per_process_browsertest.cc', 833 'browser/speech/speech_recognition_browsertest.cc', 834 'browser/web_contents/touch_editable_impl_aura_browsertest.cc', 835 'browser/web_contents/web_contents_impl_browsertest.cc', 836 'browser/web_contents/web_contents_view_aura_browsertest.cc', 837 'browser/webkit_browsertest.cc', 838 'browser/worker_host/test/worker_browsertest.cc', 839 'renderer/accessibility/renderer_accessibility_browsertest.cc', 840 'renderer/browser_plugin/browser_plugin_browsertest.cc', 841 'renderer/browser_plugin/browser_plugin_browsertest.h', 842 'renderer/browser_plugin/mock_browser_plugin.cc', 843 'renderer/browser_plugin/mock_browser_plugin.h', 844 'renderer/browser_plugin/mock_browser_plugin_manager.cc', 845 'renderer/browser_plugin/mock_browser_plugin_manager.h', 846 'renderer/cpp_bound_class_unittest.cc', 847 'renderer/dom_serializer_browsertest.cc', 848 'renderer/mouse_lock_dispatcher_browsertest.cc', 849 'renderer/password_form_conversion_utils_browsertest.cc', 850 'renderer/pepper/mock_renderer_ppapi_host.cc', 851 'renderer/pepper/pepper_device_enumeration_host_helper_unittest.cc', 852 'renderer/pepper/pepper_file_chooser_host_unittest.cc', 853 'renderer/pepper/pepper_graphics_2d_host_unittest.cc', 854 'renderer/pepper/pepper_url_request_unittest.cc', 855 'renderer/render_thread_impl_browsertest.cc', 856 'renderer/render_view_browsertest.cc', 857 'renderer/render_view_browsertest_mac.mm', 858 'renderer/render_widget_browsertest.cc', 859 'renderer/resource_fetcher_browsertest.cc', 860 'renderer/savable_resources_browsertest.cc', 861 'test/accessibility_browser_test_utils.cc', 862 'test/accessibility_browser_test_utils.h', 863 'test/content_browser_test.h', 864 'test/content_browser_test.cc', 865 'test/content_browser_test_utils.cc', 866 'test/content_browser_test_utils.h', 867 'test/content_browser_test_utils_mac.mm', 868 'test/content_browser_test_test.cc', 869 'test/content_test_launcher.cc', 870 'test/cpp_binding_example.cc', 871 'test/cpp_binding_example.h', 872 ], 873 'conditions': [ 874 ['chromeos==0', { 875 'sources!': [ 876 'browser/web_contents/touch_editable_impl_aura_browsertest.cc', 877 ], 878 }], 879 ['OS=="win"', { 880 'resource_include_dirs': [ 881 '<(SHARED_INTERMEDIATE_DIR)/webkit', 882 ], 883 'sources': [ 884 'shell/app/resource.h', 885 'shell/app/shell.rc', 886 # TODO: It would be nice to have these pulled in 887 # automatically from direct_dependent_settings in 888 # their various targets (net.gyp:net_resources, etc.), 889 # but that causes errors in other targets when 890 # resulting .res files get referenced multiple times. 891 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc', 892 '<(SHARED_INTERMEDIATE_DIR)/webkit/blink_resources.rc', 893 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.rc', 894 ], 895 'dependencies': [ 896 '<(DEPTH)/net/net.gyp:net_resources', 897 '<(DEPTH)/third_party/iaccessible2/iaccessible2.gyp:iaccessible2', 898 '<(DEPTH)/third_party/isimpledom/isimpledom.gyp:isimpledom', 899 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_strings', 900 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_resources', 901 ], 902 'configurations': { 903 'Debug_Base': { 904 'msvs_settings': { 905 'VCLinkerTool': { 906 'LinkIncremental': '<(msvs_large_module_debug_link_mode)', 907 }, 908 }, 909 }, 910 }, 911 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 912 'msvs_disabled_warnings': [ 4267, ], 913 }, { # OS!="win" 914 'sources!': [ 915 'browser/accessibility/accessibility_win_browsertest.cc', 916 'browser/renderer_host/render_widget_host_view_win_browsertest.cc', 917 ], 918 }], 919 ['OS=="win" and win_use_allocator_shim==1', { 920 'dependencies': [ 921 '../base/allocator/allocator.gyp:allocator', 922 ], 923 }], 924 ['OS=="linux"', { 925 'sources!': [ 926 'browser/accessibility/dump_accessibility_tree_browsertest.cc', 927 ], 928 }], 929 ['OS=="android"', { 930 'sources': [ 931 'shell/android/browsertests_apk/content_browser_tests_android.cc', 932 ], 933 'dependencies': [ 934 'content_shell_jni_headers', 935 'content_shell_lib', 936 '../testing/android/native_test.gyp:native_test_util', 937 ], 938 }], 939 ['OS=="mac"', { 940 'dependencies': [ 941 'content_shell', # Needed for Content Shell.app's Helper. 942 ], 943 'sources': [ 944 'renderer/external_popup_menu_browsertest.cc', 945 ], 946 }], 947 ['use_aura==1', { 948 'sources!': [ 949 'browser/accessibility/accessibility_win_browsertest.cc', 950 'browser/accessibility/dump_accessibility_tree_browsertest.cc', 951 'browser/plugin_browsertest.cc', 952 'browser/renderer_host/render_widget_host_view_win_browsertest.cc', 953 ], 954 }], 955 ['OS!="android" and OS!="ios"', { 956 # npapi test plugin doesn't build on android or ios 957 'dependencies': [ 958 # Runtime dependencies 959 'copy_npapi_test_plugin', 960 ], 961 }], 962 ['enable_webrtc==1', { 963 'sources': [ 964 'browser/media/webrtc_browsertest.cc', 965 ], 966 }], 967 ['enable_plugins==0', { 968 'sources/': [ 969 ['exclude', '^renderer/pepper/'], 970 ], 971 'sources!': [ 972 'browser/plugin_service_impl_browsertest.cc', 973 'browser/plugin_data_remover_impl_browsertest.cc', 974 ], 975 }], 976 ['enable_pepper_cdms==1', { 977 'dependencies': [ 978 # Runtime dependencies. 979 '../third_party/widevine/cdm/widevine_cdm.gyp:widevinecdmadapter', 980 '../media/media.gyp:clearkeycdmadapter', 981 ], 982 }], 983 ['input_speech==0', { 984 'sources/': [ 985 ['exclude', '^browser/speech/'], 986 ] 987 }], 988 ], 989 }, 990 { 991 'target_name': 'content_gl_tests', 992 'type': '<(gtest_target_type)', 993 'defines!': ['CONTENT_IMPLEMENTATION'], 994 'dependencies': [ 995 'content_common', 996 'test_support_content', 997 '../base/base.gyp:test_support_base', 998 '../gpu/gpu.gyp:command_buffer_common', 999 '../testing/gtest.gyp:gtest', 1000 '../ui/ui.gyp:ui', 1001 '../ui/gl/gl.gyp:gl', 1002 '../third_party/WebKit/public/blink.gyp:blink', 1003 # The following two dependencies provide the missing 1004 # symbol HeapProfilerStart in Linux component builds. 1005 '../webkit/support/webkit_support.gyp:glue', 1006 '../webkit/support/webkit_support.gyp:glue_child', 1007 ], 1008 'include_dirs': [ 1009 '..', 1010 ], 1011 'sources': [ 1012 'common/gpu/client/gl_helper_unittests.cc', 1013 'common/gpu/client/gpu_in_process_context_tests.cc', 1014 ], 1015 }, 1016 { 1017 'target_name': 'content_gl_benchmark', 1018 'type': '<(gtest_target_type)', 1019 'defines!': ['CONTENT_IMPLEMENTATION'], 1020 'dependencies': [ 1021 'content_common', 1022 'test_support_content', 1023 '../base/base.gyp:test_support_base', 1024 '../testing/gtest.gyp:gtest', 1025 '../ui/ui.gyp:ui', 1026 '../ui/gl/gl.gyp:gl', 1027 '../third_party/WebKit/public/blink.gyp:blink', 1028 # The following two dependencies provide the missing 1029 # symbol HeapProfilerStart in Linux component builds. 1030 '../webkit/support/webkit_support.gyp:glue', 1031 '../webkit/support/webkit_support.gyp:glue_child', 1032 ], 1033 'include_dirs': [ 1034 '..', 1035 ], 1036 'sources': [ 1037 'common/gpu/client/gl_helper_benchmark.cc', 1038 ], 1039 }, 1040 { 1041 'target_name': 'content_webkit_unit_test_support', 1042 'type': 'static_library', 1043 'dependencies': [ 1044 '../webkit/support/webkit_support.gyp:webkit_support', 1045 ], 1046 'include_dirs': [ 1047 '..', 1048 ], 1049 'sources': [ 1050 'test/webkit_unit_test_support.cc', 1051 'test/webkit_unit_test_support.h', 1052 ], 1053 }, 1054 ], 1055 }], 1056 ['chromeos==1 or OS=="win" or OS=="android"', { 1057 'targets': [ 1058 { 1059 'target_name': 'video_decode_accelerator_unittest', 1060 'type': '<(gtest_target_type)', 1061 'dependencies': [ 1062 'content', 1063 '../base/base.gyp:base', 1064 '../testing/gtest.gyp:gtest', 1065 '../media/media.gyp:media', 1066 '../ui/gl/gl.gyp:gl', 1067 '../ui/ui.gyp:ui', 1068 ], 1069 'include_dirs': [ 1070 '<(DEPTH)/third_party/khronos', 1071 ], 1072 'sources': [ 1073 'common/gpu/media/android_video_decode_accelerator_unittest.cc', 1074 'common/gpu/media/rendering_helper.h', 1075 'common/gpu/media/rendering_helper_gl.cc', 1076 'common/gpu/media/video_decode_accelerator_unittest.cc', 1077 ], 1078 'conditions': [ 1079 ['OS=="android"', { 1080 'sources/': [ 1081 ['exclude', '^common/gpu/media/rendering_helper.h'], 1082 ['exclude', '^common/gpu/media/rendering_helper_gl.cc'], 1083 ['exclude', '^common/gpu/media/video_decode_accelerator_unittest.cc'], 1084 ], 1085 'dependencies': [ 1086 '../media/media.gyp:player_android', 1087 '../testing/gmock.gyp:gmock', 1088 '../testing/android/native_test.gyp:native_test_native_code', 1089 '../gpu/gpu.gyp:gpu_unittest_utils', 1090 ], 1091 }, { # OS!="android" 1092 'sources/': [ 1093 ['exclude', '^common/gpu/media/android_video_decode_accelerator_unittest.cc'], 1094 ], 1095 }], 1096 ['OS=="win"', { 1097 'dependencies': [ 1098 '../third_party/angle_dx11/src/build_angle.gyp:libEGL', 1099 '../third_party/angle_dx11/src/build_angle.gyp:libGLESv2', 1100 ], 1101 }], 1102 ['(OS=="win" and win_use_allocator_shim==1) or ' 1103 '(os_posix == 1 and OS != "android" and ' 1104 ' linux_use_tcmalloc==1)', { 1105 'dependencies': [ 1106 '../base/allocator/allocator.gyp:allocator', 1107 ], 1108 }], 1109 ['target_arch != "arm" and (OS=="linux" or chromeos == 1)', { 1110 'include_dirs': [ 1111 '<(DEPTH)/third_party/libva', 1112 ], 1113 }], 1114 ], 1115 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 1116 'msvs_disabled_warnings': [ 4267, ], 1117 }, 1118 ] 1119 }], 1120 ['chromeos == 1 or OS == "linux"', { 1121 'targets': [ 1122 { 1123 'target_name': 'h264_parser_unittest', 1124 'type': 'executable', 1125 'dependencies': [ 1126 'content_common', 1127 '../base/base.gyp:base', 1128 '../testing/gtest.gyp:gtest', 1129 ], 1130 'sources': [ 1131 'common/gpu/media/h264_bit_reader_unittest.cc', 1132 'common/gpu/media/h264_parser_unittest.cc', 1133 ], 1134 'conditions': [ 1135 ['linux_use_tcmalloc==1', { 1136 'dependencies': [ 1137 '../base/allocator/allocator.gyp:allocator', 1138 ], 1139 }], 1140 ], 1141 } 1142 ], 1143 }], 1144 # Special target to wrap a gtest_target_type==shared_library 1145 # content_unittests into an android apk for execution. 1146 # See base.gyp for TODO(jrg)s about this strategy. 1147 ['OS == "android" and gtest_target_type == "shared_library"', { 1148 'targets': [ 1149 { 1150 'target_name': 'content_unittests_apk', 1151 'type': 'none', 1152 'dependencies': [ 1153 'content_java', 1154 'content_unittests', 1155 ], 1156 'variables': { 1157 'test_suite_name': 'content_unittests', 1158 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)content_unittests<(SHARED_LIB_SUFFIX)', 1159 }, 1160 'includes': [ '../build/apk_test.gypi' ], 1161 }, 1162 { 1163 'target_name': 'content_browsertests_apk', 1164 'type': 'none', 1165 'dependencies': [ 1166 'content_browsertests', 1167 'content_java', 1168 'content_java_test_support', 1169 'content_shell_java', 1170 ], 1171 'variables': { 1172 'apk_name': 'content_browsertests', 1173 'java_in_dir': 'shell/android/browsertests_apk', 1174 'resource_dir': 'shell/android/browsertests_apk/res', 1175 'native_lib_target': 'libcontent_browsertests', 1176 'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'], 1177 'asset_location': '<(ant_build_out)/content_shell/assets', 1178 }, 1179 'includes': [ '../build/java_apk.gypi' ], 1180 }, 1181 { 1182 'target_name': 'video_decode_accelerator_unittest_apk', 1183 'type': 'none', 1184 'dependencies': [ 1185 'video_decode_accelerator_unittest', 1186 ], 1187 'variables': { 1188 'test_suite_name': 'video_decode_accelerator_unittest', 1189 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)content_unittests<(SHARED_LIB_SUFFIX)', 1190 }, 1191 'includes': [ '../build/apk_test.gypi' ], 1192 }, 1193 ], 1194 }], 1195 ['OS == "android"', { 1196 'targets': [ 1197 { 1198 'target_name': 'test_support_content_jni_headers', 1199 'type': 'none', 1200 'sources': [ 1201 'public/test/android/javatests/src/org/chromium/content/browser/test/NestedSystemMessageHandler.java', 1202 ], 1203 'direct_dependent_settings': { 1204 'include_dirs': [ 1205 '<(SHARED_INTERMEDIATE_DIR)/content/public/test', 1206 ], 1207 }, 1208 'variables': { 1209 'jni_gen_package': 'content/public/test', 1210 }, 1211 'includes': [ '../build/jni_generator.gypi' ], 1212 }, 1213 { 1214 'target_name': 'content_java_test_support', 1215 'type': 'none', 1216 'dependencies': [ 1217 '../base/base.gyp:base', 1218 '../base/base.gyp:base_java_test_support', 1219 'content_common', 1220 'content_java', 1221 ], 1222 'variables': { 1223 'java_in_dir': '../content/public/test/android/javatests', 1224 }, 1225 'includes': [ '../build/java.gypi' ], 1226 }, 1227 { 1228 'target_name': 'content_shell_test_apk', 1229 'type': 'none', 1230 'dependencies': [ 1231 'content_java', 1232 'content_java_test_support', 1233 'content_shell_apk_java', 1234 '../base/base.gyp:base_java', 1235 '../base/base.gyp:base_javatests', 1236 '../base/base.gyp:base_java_test_support', 1237 '../media/media.gyp:media_java', 1238 '../media/media.gyp:media_test_support', 1239 '../net/net.gyp:net_java', 1240 '../net/net.gyp:net_javatests', 1241 '../tools/android/forwarder2/forwarder.gyp:forwarder2', 1242 ], 1243 'variables': { 1244 'apk_name': 'ContentShellTest', 1245 'java_in_dir': 'shell/android/javatests', 1246 'resource_dir': 'shell/android/shell_apk/res', 1247 'additional_src_dirs': ['public/android/javatests/',], 1248 'is_test_apk': 1, 1249 }, 1250 'includes': [ '../build/java_apk.gypi' ], 1251 }, 1252 ], 1253 }], 1254 ['OS!="android" and OS!="ios"', { 1255 # npapi test plugin doesn't build on android or ios 1256 'targets': [ 1257 { 1258 'target_name': 'npapi_test_plugin', 1259 'type': 'loadable_module', 1260 'variables': { 1261 'chromium_code': 1, 1262 }, 1263 'mac_bundle': 1, 1264 'dependencies': [ 1265 '<(DEPTH)/base/base.gyp:base', 1266 '<(DEPTH)/third_party/icu/icu.gyp:icuuc', 1267 '<(DEPTH)/third_party/npapi/npapi.gyp:npapi', 1268 ], 1269 'sources': [ 1270 'test/plugin/npapi_constants.cc', 1271 'test/plugin/npapi_constants.h', 1272 'test/plugin/npapi_test.cc', 1273 'test/plugin/npapi_test.def', 1274 'test/plugin/npapi_test.rc', 1275 'test/plugin/plugin_arguments_test.cc', 1276 'test/plugin/plugin_arguments_test.h', 1277 'test/plugin/plugin_client.cc', 1278 'test/plugin/plugin_client.h', 1279 'test/plugin/plugin_create_instance_in_paint.cc', 1280 'test/plugin/plugin_create_instance_in_paint.h', 1281 'test/plugin/plugin_delete_plugin_in_deallocate_test.cc', 1282 'test/plugin/plugin_delete_plugin_in_deallocate_test.h', 1283 'test/plugin/plugin_delete_plugin_in_stream_test.cc', 1284 'test/plugin/plugin_delete_plugin_in_stream_test.h', 1285 'test/plugin/plugin_execute_stream_javascript.cc', 1286 'test/plugin/plugin_execute_stream_javascript.h', 1287 'test/plugin/plugin_get_javascript_url_test.cc', 1288 'test/plugin/plugin_get_javascript_url_test.h', 1289 'test/plugin/plugin_get_javascript_url2_test.cc', 1290 'test/plugin/plugin_get_javascript_url2_test.h', 1291 'test/plugin/plugin_geturl_test.cc', 1292 'test/plugin/plugin_geturl_test.h', 1293 'test/plugin/plugin_javascript_open_popup.cc', 1294 'test/plugin/plugin_javascript_open_popup.h', 1295 'test/plugin/plugin_new_fails_test.cc', 1296 'test/plugin/plugin_new_fails_test.h', 1297 'test/plugin/plugin_npobject_identity_test.cc', 1298 'test/plugin/plugin_npobject_identity_test.h', 1299 'test/plugin/plugin_npobject_lifetime_test.cc', 1300 'test/plugin/plugin_npobject_lifetime_test.h', 1301 'test/plugin/plugin_npobject_proxy_test.cc', 1302 'test/plugin/plugin_npobject_proxy_test.h', 1303 'test/plugin/plugin_request_read_test.h', 1304 'test/plugin/plugin_request_read_test.cc', 1305 'test/plugin/plugin_schedule_timer_test.cc', 1306 'test/plugin/plugin_schedule_timer_test.h', 1307 'test/plugin/plugin_setup_test.cc', 1308 'test/plugin/plugin_setup_test.h', 1309 'test/plugin/plugin_test.cc', 1310 'test/plugin/plugin_test.h', 1311 'test/plugin/plugin_test_factory.h', 1312 'test/plugin/plugin_thread_async_call_test.cc', 1313 'test/plugin/plugin_thread_async_call_test.h', 1314 'test/plugin/plugin_windowed_test.cc', 1315 'test/plugin/plugin_windowed_test.h', 1316 'test/plugin/plugin_private_test.cc', 1317 'test/plugin/plugin_private_test.h', 1318 'test/plugin/plugin_test_factory.cc', 1319 'test/plugin/plugin_window_size_test.cc', 1320 'test/plugin/plugin_window_size_test.h', 1321 'test/plugin/plugin_windowless_test.cc', 1322 'test/plugin/plugin_windowless_test.h', 1323 'test/plugin/resource.h', 1324 ], 1325 'include_dirs': [ 1326 '../..', 1327 ], 1328 'xcode_settings': { 1329 'INFOPLIST_FILE': '<(DEPTH)/content/test/plugin/Info.plist', 1330 }, 1331 'conditions': [ 1332 ['OS!="win"', { 1333 'sources!': [ 1334 # TODO(port): Port these. 1335 # plugin_npobject_lifetime_test.cc has win32-isms 1336 # (HWND, CALLBACK). 1337 'test/plugin/plugin_npobject_lifetime_test.cc', 1338 # The window APIs are necessarily platform-specific. 1339 'test/plugin/plugin_window_size_test.cc', 1340 'test/plugin/plugin_windowed_test.cc', 1341 # Seems windows specific. 1342 'test/plugin/plugin_create_instance_in_paint.cc', 1343 'test/plugin/plugin_create_instance_in_paint.h', 1344 # windows-specific resources 1345 'test/plugin/npapi_test.def', 1346 'test/plugin/npapi_test.rc', 1347 ], 1348 }], 1349 ['OS=="mac"', { 1350 'product_extension': 'plugin', 1351 'link_settings': { 1352 'libraries': [ 1353 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', 1354 ], 1355 }, 1356 }], 1357 ['os_posix == 1 and OS != "mac" and (target_arch == "x64" or target_arch == "arm")', { 1358 # Shared libraries need -fPIC on x86-64 1359 'cflags': ['-fPIC'] 1360 }], 1361 ], 1362 }, 1363 { 1364 'target_name': 'copy_npapi_test_plugin', 1365 'type': 'none', 1366 'dependencies': [ 1367 'npapi_test_plugin', 1368 ], 1369 'conditions': [ 1370 ['OS=="win"', { 1371 'copies': [ 1372 { 1373 'destination': '<(PRODUCT_DIR)/plugins', 1374 'files': ['<(PRODUCT_DIR)/npapi_test_plugin.dll'], 1375 }, 1376 ], 1377 }], 1378 ['OS=="mac"', { 1379 'copies': [ 1380 { 1381 'destination': '<(PRODUCT_DIR)/plugins/', 1382 'files': ['<(PRODUCT_DIR)/npapi_test_plugin.plugin'], 1383 }, 1384 ] 1385 }], 1386 ['os_posix == 1 and OS != "mac"', { 1387 'copies': [ 1388 { 1389 'destination': '<(PRODUCT_DIR)/plugins', 1390 'files': ['<(PRODUCT_DIR)/libnpapi_test_plugin.so'], 1391 }, 1392 ], 1393 }], 1394 ], 1395 }, 1396 ], 1397 }], 1398 ], 1399 } 1400