blob: ed1a1569db651b2c2b880fe8d7e5dc46d96a9052 [file] [log] [blame]
# Copyright (c) 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'layouttest_support_content_sources': [
'public/test/layouttest_support.h',
'public/test/nested_message_pump_android.cc',
'public/test/nested_message_pump_android.h',
'test/layouttest_support.cc',
],
'test_support_content_sources': [
# TODO(phajdan.jr): All of those files should live in content/test (if
# they're only used by content) or content/public/test (if they're used
# by other embedders).
'browser/download/mock_download_file.cc',
'browser/download/mock_download_file.h',
'browser/geolocation/fake_access_token_store.cc',
'browser/geolocation/fake_access_token_store.h',
'browser/geolocation/mock_location_arbitrator.cc',
'browser/geolocation/mock_location_arbitrator.h',
'browser/geolocation/mock_location_provider.cc',
'browser/geolocation/mock_location_provider.h',
'public/test/async_file_test_helper.cc',
'public/test/async_file_test_helper.h',
'public/test/browser_test.h',
'public/test/browser_test_base.cc',
'public/test/browser_test_base.h',
'public/test/browser_test_utils.cc',
'public/test/browser_test_utils.h',
'public/test/content_test_suite_base.cc',
'public/test/content_test_suite_base.h',
'public/test/download_test_observer.cc',
'public/test/download_test_observer.h',
'public/test/fake_speech_recognition_manager.cc',
'public/test/fake_speech_recognition_manager.h',
'public/test/frame_load_waiter.cc',
'public/test/frame_load_waiter.h',
'public/test/javascript_test_observer.cc',
'public/test/javascript_test_observer.h',
'public/test/mock_blob_url_request_context.cc',
'public/test/mock_blob_url_request_context.h',
'public/test/mock_download_item.cc',
'public/test/mock_download_item.h',
'public/test/mock_download_manager.cc',
'public/test/mock_download_manager.h',
'public/test/mock_notification_observer.cc',
'public/test/mock_notification_observer.h',
'public/test/mock_render_process_host.cc',
'public/test/mock_render_process_host.h',
'public/test/mock_render_thread.cc',
'public/test/mock_render_thread.h',
'public/test/mock_resource_context.cc',
'public/test/mock_resource_context.h',
'public/test/mock_special_storage_policy.cc',
'public/test/mock_special_storage_policy.h',
'public/test/mock_storage_client.cc',
'public/test/mock_storage_client.h',
'public/test/ppapi_test_utils.cc',
'public/test/ppapi_test_utils.h',
'public/test/render_view_test.cc',
'public/test/render_view_test.h',
'public/test/render_widget_test.cc',
'public/test/render_widget_test.h',
'public/test/sandbox_file_system_test_helper.cc',
'public/test/sandbox_file_system_test_helper.h',
'public/test/test_browser_context.cc',
'public/test/test_browser_context.h',
'public/test/test_browser_thread.cc',
'public/test/test_browser_thread.h',
'public/test/test_browser_thread_bundle.cc',
'public/test/test_browser_thread_bundle.h',
'public/test/test_content_client_initializer.cc',
'public/test/test_content_client_initializer.h',
'public/test/test_file_error_injector.cc',
'public/test/test_file_error_injector.h',
'public/test/test_file_system_backend.cc',
'public/test/test_file_system_backend.h',
'public/test/test_file_system_context.cc',
'public/test/test_file_system_context.h',
'public/test/test_file_system_options.cc',
'public/test/test_file_system_options.h',
'public/test/test_launcher.cc',
'public/test/test_launcher.h',
'public/test/test_mojo_app.cc',
'public/test/test_mojo_app.h',
'public/test/test_navigation_observer.cc',
'public/test/test_navigation_observer.h',
'public/test/test_notification_tracker.cc',
'public/test/test_notification_tracker.h',
'public/test/test_renderer_host.cc',
'public/test/test_renderer_host.h',
'public/test/test_synchronous_compositor_android.cc',
'public/test/test_synchronous_compositor_android.h',
'public/test/test_utils.cc',
'public/test/test_utils.h',
'public/test/test_web_contents_factory.h',
'public/test/test_web_ui.cc',
'public/test/test_web_ui.h',
'public/test/unittest_test_suite.cc',
'public/test/unittest_test_suite.h',
'public/test/web_contents_tester.cc',
'public/test/web_contents_tester.h',
'test/appcache_test_helper.cc',
'test/appcache_test_helper.h',
'test/blink_test_environment.cc',
'test/blink_test_environment.h',
'test/browser_side_navigation_test_utils.cc',
'test/browser_side_navigation_test_utils.h',
'test/content_browser_sanity_checker.cc',
'test/content_browser_sanity_checker.h',
'test/content_test_suite.cc',
'test/content_test_suite.h',
'test/fake_compositor_dependencies.cc',
'test/fake_compositor_dependencies.h',
'test/fake_plugin_service.cc',
'test/fake_plugin_service.h',
'test/fake_renderer_scheduler.cc',
'test/fake_renderer_scheduler.h',
'test/mock_google_streaming_server.cc',
'test/mock_google_streaming_server.h',
'test/mock_keyboard.cc',
'test/mock_keyboard.h',
'test/mock_keyboard_driver_win.cc',
'test/mock_keyboard_driver_win.h',
'test/mock_render_process.cc',
'test/mock_render_process.h',
'test/mock_webblob_registry_impl.cc',
'test/mock_webblob_registry_impl.h',
'test/mock_webclipboard_impl.cc',
'test/mock_webclipboard_impl.h',
'test/mock_webframeclient.h',
'test/mock_weburlloader.cc',
'test/mock_weburlloader.h',
'test/net/url_request_abort_on_end_job.cc',
'test/net/url_request_abort_on_end_job.h',
'test/ppapi_unittest.cc',
'test/ppapi_unittest.h',
'test/render_thread_impl_browser_test_ipc_helper.cc',
'test/render_thread_impl_browser_test_ipc_helper.h',
'test/test_blink_web_unit_test_support.cc',
'test/test_blink_web_unit_test_support.h',
'test/test_content_browser_client.cc',
'test/test_content_browser_client.h',
'test/test_content_client.cc',
'test/test_content_client.h',
'test/test_frame_navigation_observer.cc',
'test/test_frame_navigation_observer.h',
'test/test_navigation_url_loader.cc',
'test/test_navigation_url_loader.h',
'test/test_navigation_url_loader_factory.cc',
'test/test_navigation_url_loader_factory.h',
'test/test_render_frame.cc',
'test/test_render_frame.h',
'test/test_render_frame_host.cc',
'test/test_render_frame_host.h',
'test/test_render_frame_host_factory.cc',
'test/test_render_frame_host_factory.h',
'test/test_render_view_host.cc',
'test/test_render_view_host.h',
'test/test_render_view_host_factory.cc',
'test/test_render_view_host_factory.h',
'test/test_web_contents.cc',
'test/test_web_contents.h',
'test/test_web_contents_factory.cc',
'test/web_contents_observer_sanity_checker.cc',
'test/web_contents_observer_sanity_checker.h',
'test/web_gesture_curve_mock.cc',
'test/web_gesture_curve_mock.h',
'test/web_layer_tree_view_impl_for_testing.cc',
'test/web_layer_tree_view_impl_for_testing.h',
'test/weburl_loader_mock.cc',
'test/weburl_loader_mock.h',
'test/weburl_loader_mock_factory.cc',
'test/weburl_loader_mock_factory.h',
],
'content_browsertests_sources': [
'app/mojo/mojo_browsertest.cc',
'browser/accessibility/accessibility_event_recorder.cc',
'browser/accessibility/accessibility_event_recorder.h',
'browser/accessibility/accessibility_event_recorder_mac.mm',
'browser/accessibility/accessibility_event_recorder_win.cc',
'browser/accessibility/accessibility_ipc_error_browsertest.cc',
'browser/accessibility/accessibility_mode_browsertest.cc',
'browser/accessibility/cross_platform_accessibility_browsertest.cc',
'browser/accessibility/dump_accessibility_browsertest_base.cc',
'browser/accessibility/dump_accessibility_browsertest_base.h',
'browser/accessibility/dump_accessibility_events_browsertest.cc',
'browser/accessibility/dump_accessibility_tree_browsertest.cc',
'browser/accessibility/site_per_process_accessibility_browsertest.cc',
'browser/accessibility/snapshot_ax_tree_browsertest.cc',
'browser/battery_status/battery_monitor_impl_browsertest.cc',
'browser/battery_status/battery_monitor_integration_browsertest.cc',
'browser/bookmarklet_browsertest.cc',
'browser/browser_side_navigation_browsertest.cc',
'browser/child_process_launcher_browsertest.cc',
'browser/child_process_security_policy_browsertest.cc',
'browser/compositor/image_transport_factory_browsertest.cc',
'browser/cross_site_transfer_browsertest.cc',
'browser/database_browsertest.cc',
'browser/device_sensors/device_inertial_sensor_browsertest.cc',
'browser/devtools/protocol/devtools_protocol_browsertest.cc',
'browser/devtools/site_per_process_devtools_browsertest.cc',
'browser/dom_storage/dom_storage_browsertest.cc',
'browser/download/download_browsertest.cc',
'browser/download/drag_download_file_browsertest.cc',
'browser/download/mhtml_generation_browsertest.cc',
'browser/download/save_package_browsertest.cc',
'browser/fileapi/file_system_browsertest.cc',
'browser/frame_host/frame_tree_browsertest.cc',
'browser/frame_host/interstitial_page_impl_browsertest.cc',
'browser/frame_host/navigation_controller_impl_browsertest.cc',
'browser/frame_host/render_frame_host_impl_browsertest.cc',
'browser/frame_host/render_frame_host_manager_browsertest.cc',
'browser/frame_host/render_widget_host_view_child_frame_browsertest.cc',
'browser/gpu/gpu_ipc_browsertests.cc',
'browser/host_zoom_map_impl_browsertest.cc',
'browser/indexed_db/indexed_db_browsertest.cc',
'browser/indexed_db/mock_browsertest_indexed_db_class_factory.cc',
'browser/indexed_db/mock_browsertest_indexed_db_class_factory.h',
'browser/loader/resource_dispatcher_host_browsertest.cc',
'browser/manifest/manifest_browsertest.cc',
'browser/media/android/media_session_browsertest.cc',
'browser/media/encrypted_media_browsertest.cc',
'browser/media/media_browsertest.cc',
'browser/media/media_browsertest.h',
'browser/media/media_canplaytype_browsertest.cc',
'browser/media/media_source_browsertest.cc',
'browser/message_port_provider_browsertest.cc',
'browser/mojo_shell_browsertest.cc',
'browser/net_info_browsertest.cc',
'browser/renderer_host/input/touch_action_browsertest.cc',
'browser/renderer_host/input/touch_input_browsertest.cc',
'browser/renderer_host/render_message_filter_browsertest.cc',
'browser/renderer_host/render_process_host_browsertest.cc',
'browser/renderer_host/render_view_host_browsertest.cc',
'browser/renderer_host/render_widget_host_view_browsertest.cc',
'browser/screen_orientation/screen_orientation_browsertest.cc',
'browser/security_exploit_browsertest.cc',
'browser/service_worker/service_worker_browsertest.cc',
'browser/session_history_browsertest.cc',
'browser/shared_worker/worker_browsertest.cc',
'browser/site_per_process_browsertest.cc',
'browser/site_per_process_browsertest.h',
'browser/tracing/background_tracing_manager_browsertest.cc',
'browser/tracing/tracing_controller_browsertest.cc',
'browser/web_contents/opened_by_dom_browsertest.cc',
'browser/web_contents/touch_editable_impl_aura_browsertest.cc',
'browser/web_contents/web_contents_impl_browsertest.cc',
'browser/web_contents/web_contents_view_aura_browsertest.cc',
'browser/webkit_browsertest.cc',
'browser/webui/web_ui_mojo_browsertest.cc',
'child/child_thread_impl_browsertest.cc',
'child/site_isolation_stats_gatherer_browsertest.cc',
'renderer/accessibility/renderer_accessibility_browsertest.cc',
'renderer/devtools/v8_sampling_profiler_browsertest.cc',
'renderer/gin_browsertest.cc',
'renderer/history_controller_browsertest.cc',
'renderer/mouse_lock_dispatcher_browsertest.cc',
'renderer/render_frame_impl_browsertest.cc',
'renderer/render_thread_impl_browsertest.cc',
'renderer/render_view_browsertest.cc',
'renderer/render_view_browsertest_mac.mm',
'renderer/render_widget_browsertest.cc',
'renderer/visual_state_browsertest.cc',
'test/accessibility_browser_test_utils.cc',
'test/accessibility_browser_test_utils.h',
'test/browser_test_utils_browsertest.cc',
'test/content_browser_test_test.cc',
'test/webui_resource_browsertest.cc',
],
'content_browsertests_android_sources': [
'browser/accessibility/android_granularity_movement_browsertest.cc',
'browser/accessibility/android_hit_testing_browsertest.cc',
'shell/android/browsertests_apk/content_browser_tests_jni_onload.cc',
],
'content_browsertests_webrtc_sources': [
'browser/media/webrtc_aecdump_browsertest.cc',
'browser/media/webrtc_browsertest.cc',
'browser/media/webrtc_getusermedia_browsertest.cc',
'browser/media/webrtc_internals_browsertest.cc',
'browser/media/webrtc_webcam_browsertest.cc',
'test/webrtc_content_browsertest_base.cc',
'test/webrtc_content_browsertest_base.h',
],
'content_browsertests_plugins_sources': [
'renderer/pepper/fake_pepper_plugin_instance.cc',
'renderer/pepper/mock_renderer_ppapi_host.cc',
'renderer/pepper/pepper_device_enumeration_host_helper_unittest.cc',
'renderer/pepper/pepper_file_chooser_host_unittest.cc',
'renderer/pepper/pepper_graphics_2d_host_unittest.cc',
'renderer/pepper/pepper_url_request_unittest.cc',
'renderer/pepper/pepper_webplugin_impl_browsertest.cc',
'renderer/pepper/plugin_power_saver_helper_browsertest.cc',
'test/ppapi/ppapi_browsertest.cc',
'test/ppapi/ppapi_test.cc',
'test/ppapi/ppapi_test.h',
],
'content_browsertests_speech_sources': [
'browser/speech/speech_recognition_browsertest.cc',
],
'content_browsertests_unofficial_build_sources': [
# These tests depend on single process mode, which is disabled
# in official builds.
'renderer/browser_render_view_browsertest.cc',
'renderer/dom_serializer_browsertest.cc',
'renderer/resource_fetcher_browsertest.cc',
'renderer/savable_resources_browsertest.cc',
],
'content_browsertests_win_sources': [
'browser/accessibility/accessibility_win_browsertest.cc',
],
'content_unittests_sources': [
'browser/accessibility/accessibility_mode_helper_unittest.cc',
'browser/accessibility/browser_accessibility_mac_unittest.mm',
'browser/accessibility/browser_accessibility_manager_unittest.cc',
'browser/accessibility/browser_accessibility_win_unittest.cc',
'browser/accessibility/one_shot_accessibility_tree_search_unittest.cc',
'browser/appcache/appcache_database_unittest.cc',
'browser/appcache/appcache_disk_cache_unittest.cc',
'browser/appcache/appcache_group_unittest.cc',
'browser/appcache/appcache_host_unittest.cc',
'browser/appcache/appcache_manifest_parser_unittest.cc',
'browser/appcache/appcache_quota_client_unittest.cc',
'browser/appcache/appcache_request_handler_unittest.cc',
'browser/appcache/appcache_response_unittest.cc',
'browser/appcache/appcache_service_unittest.cc',
'browser/appcache/appcache_storage_impl_unittest.cc',
'browser/appcache/appcache_storage_unittest.cc',
'browser/appcache/appcache_unittest.cc',
'browser/appcache/appcache_update_job_unittest.cc',
'browser/appcache/appcache_url_request_job_unittest.cc',
'browser/appcache/chrome_appcache_service_unittest.cc',
'browser/appcache/mock_appcache_policy.cc',
'browser/appcache/mock_appcache_policy.h',
'browser/appcache/mock_appcache_service.cc',
'browser/appcache/mock_appcache_service.h',
'browser/appcache/mock_appcache_storage.cc',
'browser/appcache/mock_appcache_storage.h',
'browser/appcache/mock_appcache_storage_unittest.cc',
'browser/background_sync/background_sync_manager_unittest.cc',
'browser/background_sync/background_sync_network_observer_unittest.cc',
'browser/background_sync/background_sync_power_observer_unittest.cc',
'browser/background_sync/background_sync_service_impl_unittest.cc',
'browser/browser_io_surface_manager_mac_unittest.cc',
'browser/browser_thread_unittest.cc',
'browser/browser_url_handler_impl_unittest.cc',
'browser/byte_stream_unittest.cc',
'browser/cache_storage/cache_storage_blob_to_disk_cache_unittest.cc',
'browser/cache_storage/cache_storage_cache_unittest.cc',
'browser/cache_storage/cache_storage_manager_unittest.cc',
'browser/cache_storage/cache_storage_scheduler_unittest.cc',
'browser/child_process_security_policy_unittest.cc',
'browser/cocoa/system_hotkey_map_unittest.mm',
'browser/compositor/buffer_queue_unittest.cc',
'browser/compositor/reflector_impl_unittest.cc',
'browser/compositor/software_browser_compositor_output_surface_unittest.cc',
'browser/compositor/software_output_device_ozone_unittest.cc',
'browser/database_quota_client_unittest.cc',
'browser/database_tracker_unittest.cc',
'browser/database_util_unittest.cc',
'browser/databases_table_unittest.cc',
'browser/device_sensors/data_fetcher_shared_memory_base_unittest.cc',
'browser/device_sensors/sensor_manager_android_unittest.cc',
'browser/device_sensors/sensor_manager_chromeos_unittest.cc',
'browser/devtools/devtools_manager_unittest.cc',
'browser/devtools/shared_worker_devtools_manager_unittest.cc',
'browser/dom_storage/dom_storage_area_unittest.cc',
'browser/dom_storage/dom_storage_context_impl_unittest.cc',
'browser/dom_storage/dom_storage_database_unittest.cc',
'browser/dom_storage/session_storage_database_unittest.cc',
'browser/download/base_file_unittest.cc',
'browser/download/download_file_unittest.cc',
'browser/download/download_item_impl_unittest.cc',
'browser/download/download_manager_impl_unittest.cc',
'browser/download/file_metadata_unittest_linux.cc',
'browser/download/rate_estimator_unittest.cc',
'browser/download/save_package_unittest.cc',
'browser/fileapi/blob_storage_context_unittest.cc',
'browser/fileapi/blob_url_request_job_unittest.cc',
'browser/fileapi/copy_or_move_file_validator_unittest.cc',
'browser/fileapi/copy_or_move_operation_delegate_unittest.cc',
'browser/fileapi/dragged_file_util_unittest.cc',
'browser/fileapi/external_mount_points_unittest.cc',
'browser/fileapi/file_system_context_unittest.cc',
'browser/fileapi/file_system_dir_url_request_job_unittest.cc',
'browser/fileapi/file_system_file_stream_reader_unittest.cc',
'browser/fileapi/file_system_operation_impl_unittest.cc',
'browser/fileapi/file_system_operation_impl_write_unittest.cc',
'browser/fileapi/file_system_operation_runner_unittest.cc',
'browser/fileapi/file_system_quota_client_unittest.cc',
'browser/fileapi/file_system_url_request_job_unittest.cc',
'browser/fileapi/file_system_url_unittest.cc',
'browser/fileapi/file_system_usage_cache_unittest.cc',
'browser/fileapi/file_writer_delegate_unittest.cc',
'browser/fileapi/fileapi_message_filter_unittest.cc',
'browser/fileapi/isolated_context_unittest.cc',
'browser/fileapi/local_file_stream_reader_unittest.cc',
'browser/fileapi/local_file_stream_writer_unittest.cc',
'browser/fileapi/local_file_util_unittest.cc',
'browser/fileapi/mock_file_change_observer.cc',
'browser/fileapi/mock_file_change_observer.h',
'browser/fileapi/mock_file_update_observer.cc',
'browser/fileapi/mock_file_update_observer.h',
'browser/fileapi/mock_url_request_delegate.cc',
'browser/fileapi/mock_url_request_delegate.h',
'browser/fileapi/native_file_util_unittest.cc',
'browser/fileapi/obfuscated_file_util_unittest.cc',
'browser/fileapi/plugin_private_file_system_backend_unittest.cc',
'browser/fileapi/recursive_operation_delegate_unittest.cc',
'browser/fileapi/sandbox_database_test_helper.cc',
'browser/fileapi/sandbox_database_test_helper.h',
'browser/fileapi/sandbox_directory_database_unittest.cc',
'browser/fileapi/sandbox_file_system_backend_delegate_unittest.cc',
'browser/fileapi/sandbox_file_system_backend_unittest.cc',
'browser/fileapi/sandbox_isolated_origin_database_unittest.cc',
'browser/fileapi/sandbox_origin_database_unittest.cc',
'browser/fileapi/sandbox_prioritized_origin_database_unittest.cc',
'browser/fileapi/timed_task_helper_unittest.cc',
'browser/fileapi/transient_file_util_unittest.cc',
'browser/fileapi/upload_file_system_file_element_reader_unittest.cc',
'browser/frame_host/frame_tree_unittest.cc',
'browser/frame_host/navigation_controller_impl_unittest.cc',
'browser/frame_host/navigation_entry_impl_unittest.cc',
'browser/frame_host/navigator_impl_unittest.cc',
'browser/frame_host/render_frame_host_manager_unittest.cc',
'browser/frame_host/render_widget_host_view_child_frame_unittest.cc',
'browser/frame_host/render_widget_host_view_guest_unittest.cc',
'browser/gamepad/gamepad_provider_unittest.cc',
'browser/gamepad/gamepad_service_unittest.cc',
'browser/gamepad/gamepad_test_helpers.cc',
'browser/gamepad/gamepad_test_helpers.h',
'browser/geofencing/geofencing_manager_unittest.cc',
'browser/geofencing/geofencing_service_unittest.cc',
'browser/geolocation/geolocation_provider_impl_unittest.cc',
'browser/geolocation/location_arbitrator_impl_unittest.cc',
'browser/geolocation/network_location_provider_unittest.cc',
'browser/geolocation/wifi_data_provider_chromeos_unittest.cc',
'browser/geolocation/wifi_data_provider_common_unittest.cc',
'browser/geolocation/wifi_data_provider_linux_unittest.cc',
'browser/geolocation/wifi_data_provider_win_unittest.cc',
'browser/gpu/gpu_data_manager_impl_private_unittest.cc',
'browser/gpu/shader_disk_cache_unittest.cc',
'browser/host_zoom_map_impl_unittest.cc',
'browser/indexed_db/indexed_db_active_blob_registry_unittest.cc',
'browser/indexed_db/indexed_db_backing_store_unittest.cc',
'browser/indexed_db/indexed_db_cleanup_on_io_error_unittest.cc',
'browser/indexed_db/indexed_db_database_unittest.cc',
'browser/indexed_db/indexed_db_factory_unittest.cc',
'browser/indexed_db/indexed_db_fake_backing_store.cc',
'browser/indexed_db/indexed_db_fake_backing_store.h',
'browser/indexed_db/indexed_db_leveldb_coding_unittest.cc',
'browser/indexed_db/indexed_db_quota_client_unittest.cc',
'browser/indexed_db/indexed_db_transaction_unittest.cc',
'browser/indexed_db/indexed_db_unittest.cc',
'browser/indexed_db/leveldb/leveldb_unittest.cc',
'browser/indexed_db/leveldb/mock_leveldb_factory.cc',
'browser/indexed_db/leveldb/mock_leveldb_factory.h',
'browser/indexed_db/list_set_unittest.cc',
'browser/indexed_db/mock_indexed_db_callbacks.cc',
'browser/indexed_db/mock_indexed_db_callbacks.h',
'browser/indexed_db/mock_indexed_db_database_callbacks.cc',
'browser/indexed_db/mock_indexed_db_database_callbacks.h',
'browser/indexed_db/mock_indexed_db_factory.cc',
'browser/indexed_db/mock_indexed_db_factory.h',
'browser/loader/mime_type_resource_handler_unittest.cc',
'browser/loader/navigation_url_loader_unittest.cc',
'browser/loader/resource_buffer_unittest.cc',
'browser/loader/resource_dispatcher_host_unittest.cc',
'browser/loader/resource_loader_unittest.cc',
'browser/loader/resource_scheduler_unittest.cc',
'browser/loader/temporary_file_stream_unittest.cc',
'browser/loader/upload_data_stream_builder_unittest.cc',
'browser/mach_broker_mac_unittest.cc',
'browser/media/audio_stream_monitor_unittest.cc',
'browser/media/capture/audio_mirroring_manager_unittest.cc',
'browser/media/capture/web_contents_audio_input_stream_unittest.cc',
'browser/media/capture/web_contents_video_capture_device_unittest.cc',
'browser/media/media_internals_unittest.cc',
'browser/media/midi_host_unittest.cc',
'browser/media/webrtc_identity_store_unittest.cc',
'browser/net/quota_policy_cookie_store_unittest.cc',
'browser/notification_service_impl_unittest.cc',
'browser/notifications/notification_database_data_unittest.cc',
'browser/notifications/notification_database_unittest.cc',
'browser/notifications/notification_id_generator_unittest.cc',
'browser/notifications/platform_notification_context_unittest.cc',
'browser/power_monitor_message_broadcaster_unittest.cc',
'browser/power_profiler/power_profiler_service_unittest.cc',
'browser/power_usage_monitor_impl_unittest.cc',
'browser/presentation/presentation_service_impl_unittest.cc',
'browser/presentation/presentation_type_converters_unittest.cc',
'browser/quota/mock_quota_manager.cc',
'browser/quota/mock_quota_manager.h',
'browser/quota/mock_quota_manager_proxy.cc',
'browser/quota/mock_quota_manager_proxy.h',
'browser/quota/mock_quota_manager_unittest.cc',
'browser/quota/quota_backend_impl_unittest.cc',
'browser/quota/quota_database_unittest.cc',
'browser/quota/quota_manager_unittest.cc',
'browser/quota/quota_reservation_manager_unittest.cc',
'browser/quota/quota_temporary_storage_evictor_unittest.cc',
'browser/quota/storage_monitor_unittest.cc',
'browser/quota/usage_tracker_unittest.cc',
'browser/renderer_host/begin_frame_observer_proxy_unittest.cc',
'browser/renderer_host/clipboard_message_filter_unittest.cc',
'browser/renderer_host/input/gesture_event_queue_unittest.cc',
'browser/renderer_host/input/input_router_impl_unittest.cc',
'browser/renderer_host/input/mock_input_ack_handler.cc',
'browser/renderer_host/input/mock_input_ack_handler.h',
'browser/renderer_host/input/mock_input_router_client.cc',
'browser/renderer_host/input/mock_input_router_client.h',
'browser/renderer_host/input/mouse_wheel_rails_filter_unittest_mac.cc',
'browser/renderer_host/input/render_widget_host_latency_tracker_unittest.cc',
'browser/renderer_host/input/stylus_text_selector_unittest.cc',
'browser/renderer_host/input/synthetic_gesture_controller_unittest.cc',
'browser/renderer_host/input/tap_suppression_controller_unittest.cc',
'browser/renderer_host/input/touch_action_filter_unittest.cc',
'browser/renderer_host/input/touch_emulator_unittest.cc',
'browser/renderer_host/input/touch_event_queue_unittest.cc',
'browser/renderer_host/input/web_input_event_unittest.cc',
'browser/renderer_host/input/web_input_event_util_unittest.cc',
'browser/renderer_host/media/audio_input_device_manager_unittest.cc',
'browser/renderer_host/media/audio_renderer_host_unittest.cc',
'browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc',
'browser/renderer_host/media/media_stream_manager_unittest.cc',
'browser/renderer_host/media/media_stream_ui_proxy_unittest.cc',
'browser/renderer_host/media/video_capture_buffer_pool_unittest.cc',
'browser/renderer_host/media/video_capture_controller_unittest.cc',
'browser/renderer_host/media/video_capture_device_client_unittest.cc',
'browser/renderer_host/media/video_capture_host_unittest.cc',
'browser/renderer_host/media/video_capture_manager_unittest.cc',
'browser/renderer_host/render_process_host_unittest.cc',
'browser/renderer_host/render_view_host_unittest.cc',
'browser/renderer_host/render_widget_host_unittest.cc',
'browser/renderer_host/render_widget_host_view_aura_unittest.cc',
'browser/renderer_host/render_widget_host_view_base_unittest.cc',
'browser/renderer_host/render_widget_host_view_mac_editcommand_helper_unittest.mm',
'browser/renderer_host/render_widget_host_view_mac_unittest.mm',
'browser/renderer_host/text_input_client_mac_unittest.mm',
'browser/renderer_host/web_input_event_aura_unittest.cc',
'browser/renderer_host/websocket_dispatcher_host_unittest.cc',
'browser/resolve_proxy_msg_helper_unittest.cc',
'browser/service_worker/embedded_worker_instance_unittest.cc',
'browser/service_worker/embedded_worker_test_helper.cc',
'browser/service_worker/embedded_worker_test_helper.h',
'browser/service_worker/service_worker_context_request_handler_unittest.cc',
'browser/service_worker/service_worker_context_unittest.cc',
'browser/service_worker/service_worker_controllee_request_handler_unittest.cc',
'browser/service_worker/service_worker_database_unittest.cc',
'browser/service_worker/service_worker_disk_cache_migrator_unittest.cc',
'browser/service_worker/service_worker_dispatcher_host_unittest.cc',
'browser/service_worker/service_worker_handle_unittest.cc',
'browser/service_worker/service_worker_job_unittest.cc',
'browser/service_worker/service_worker_process_manager_unittest.cc',
'browser/service_worker/service_worker_provider_host_unittest.cc',
'browser/service_worker/service_worker_registration_unittest.cc',
'browser/service_worker/service_worker_request_handler_unittest.cc',
'browser/service_worker/service_worker_storage_unittest.cc',
'browser/service_worker/service_worker_url_request_job_unittest.cc',
'browser/service_worker/service_worker_utils_unittest.cc',
'browser/service_worker/service_worker_version_unittest.cc',
'browser/service_worker/service_worker_write_to_cache_job_unittest.cc',
'browser/shareable_file_reference_unittest.cc',
'browser/shared_worker/shared_worker_instance_unittest.cc',
'browser/shared_worker/shared_worker_service_impl_unittest.cc',
'browser/site_instance_impl_unittest.cc',
'browser/startup_task_runner_unittest.cc',
'browser/storage_partition_impl_map_unittest.cc',
'browser/storage_partition_impl_unittest.cc',
'browser/streams/stream_unittest.cc',
'browser/streams/stream_url_request_job_unittest.cc',
'browser/system_message_window_win_unittest.cc',
'browser/tracing/background_tracing_config_unittest.cc',
'browser/web_contents/aura/overscroll_navigation_overlay_unittest.cc',
'browser/web_contents/aura/overscroll_window_animation_unittest.cc',
'browser/web_contents/aura/overscroll_window_delegate_unittest.cc',
'browser/web_contents/web_contents_delegate_unittest.cc',
'browser/web_contents/web_contents_impl_unittest.cc',
'browser/web_contents/web_contents_user_data_unittest.cc',
'browser/web_contents/web_contents_view_aura_unittest.cc',
'browser/web_contents/web_contents_view_mac_unittest.mm',
'browser/web_contents/web_drag_dest_mac_unittest.mm',
'browser/web_contents/web_drag_source_mac_unittest.mm',
'browser/webui/url_data_manager_backend_unittest.cc',
'browser/webui/web_ui_data_source_unittest.cc',
'browser/webui/web_ui_message_handler_unittest.cc',
'child/background_sync/background_sync_type_converters_unittest.cc',
'child/blink_platform_impl_unittest.cc',
'child/blob_storage/blob_consolidation_unittest.cc',
'child/fileapi/webfilewriter_base_unittest.cc',
'child/indexed_db/indexed_db_dispatcher_unittest.cc',
'child/indexed_db/webidbcursor_impl_unittest.cc',
'child/multipart_response_delegate_unittest.cc',
'child/notifications/notification_data_conversions_unittest.cc',
'child/power_monitor_broadcast_source_unittest.cc',
'child/resource_dispatcher_unittest.cc',
'child/service_worker/service_worker_dispatcher_unittest.cc',
'child/shared_memory_data_consumer_handle_unittest.cc',
'child/shared_memory_received_data_factory_unittest.cc',
'child/simple_webmimeregistry_impl_unittest.cc',
'child/site_isolation_stats_gatherer_unittest.cc',
'child/v8_value_converter_impl_unittest.cc',
'child/web_data_consumer_handle_impl_unittest.cc',
'child/web_process_memory_dump_impl_unittest.cc',
'child/web_url_loader_impl_unittest.cc',
'child/worker_task_runner_unittest.cc',
'common/android/address_parser_unittest.cc',
'common/android/gin_java_bridge_value_unittest.cc',
'common/cc_messages_unittest.cc',
'common/common_param_traits_unittest.cc',
'common/cross_site_document_classifier_unittest.cc',
'common/cursors/webcursor_unittest.cc',
'common/database_connections_unittest.cc',
'common/database_identifier_unittest.cc',
'common/discardable_shared_memory_heap_unittest.cc',
'common/dom_storage/dom_storage_map_unittest.cc',
'common/dwrite_font_platform_win_unittest.cc',
'common/fileapi/file_system_util_unittest.cc',
'common/gpu/client/gpu_memory_buffer_impl_unittest.cc',
'common/gpu/gpu_channel_manager_unittest.cc',
'common/gpu/gpu_memory_buffer_factory_unittest.cc',
'common/gpu/gpu_memory_manager_unittest.cc',
'common/host_discardable_shared_memory_manager_unittest.cc',
'common/host_shared_bitmap_manager_unittest.cc',
'common/indexed_db/indexed_db_key_unittest.cc',
'common/input/gesture_event_stream_validator_unittest.cc',
'common/input/input_param_traits_unittest.cc',
'common/input/touch_event_stream_validator_unittest.cc',
'common/input/web_input_event_traits_unittest.cc',
'common/inter_process_time_ticks_converter_unittest.cc',
'common/mac/attributed_string_coder_unittest.mm',
'common/mac/font_descriptor_unittest.mm',
'common/one_writer_seqlock_unittest.cc',
'common/origin_util_unittest.cc',
'common/page_state_serialization_unittest.cc',
'common/page_zoom_unittest.cc',
'common/plugin_list_unittest.cc',
'common/sandbox_mac_compiler_unittest.mm',
'common/sandbox_mac_diraccess_unittest.mm',
'common/sandbox_mac_fontloading_unittest.mm',
'common/sandbox_mac_system_access_unittest.mm',
'common/sandbox_mac_unittest_helper.h',
'common/sandbox_mac_unittest_helper.mm',
'common/ssl_status_serialization_unittest.cc',
'common/webplugininfo_unittest.cc',
'renderer/android/email_detector_unittest.cc',
'renderer/android/phone_number_detector_unittest.cc',
'renderer/battery_status/battery_status_dispatcher_unittest.cc',
'renderer/bmp_image_decoder_unittest.cc',
'renderer/device_sensors/device_light_event_pump_unittest.cc',
'renderer/device_sensors/device_motion_event_pump_unittest.cc',
'renderer/device_sensors/device_orientation_event_pump_unittest.cc',
'renderer/disambiguation_popup_helper_unittest.cc',
'renderer/dom_storage/dom_storage_cached_area_unittest.cc',
'renderer/gpu/compositor_forwarding_message_filter_unittest.cc',
'renderer/gpu/frame_swap_message_queue_unittest.cc',
'renderer/gpu/queue_message_swap_promise_unittest.cc',
'renderer/gpu/render_widget_compositor_unittest.cc',
'renderer/ico_image_decoder_unittest.cc',
'renderer/input/input_event_filter_unittest.cc',
'renderer/input/input_handler_proxy_unittest.cc',
'renderer/input/input_scroll_elasticity_controller_unittest.cc',
'renderer/manifest/manifest_parser_unittest.cc',
'renderer/media/android/media_info_loader_unittest.cc',
'renderer/media/audio_message_filter_unittest.cc',
'renderer/media/audio_renderer_mixer_manager_unittest.cc',
'renderer/media/midi_message_filter_unittest.cc',
'renderer/media/render_media_client_unittest.cc',
'renderer/media/render_media_log_unittest.cc',
'renderer/media/video_capture_impl_manager_unittest.cc',
'renderer/media/video_capture_impl_unittest.cc',
'renderer/media/video_capture_message_filter_unittest.cc',
'renderer/render_thread_impl_unittest.cc',
'renderer/render_widget_unittest.cc',
'renderer/scheduler/resource_dispatch_throttler_unittest.cc',
'renderer/screen_orientation/screen_orientation_dispatcher_unittest.cc',
'renderer/skia_benchmarking_extension_unittest.cc',
'test/fileapi_test_file_set.cc',
'test/fileapi_test_file_set.h',
'test/image_decoder_test.cc',
'test/image_decoder_test.h',
'test/run_all_unittests.cc',
],
'content_unittests_speech_sources': [
'browser/speech/chunked_byte_buffer_unittest.cc',
'browser/speech/endpointer/endpointer_unittest.cc',
'browser/speech/google_one_shot_remote_engine_unittest.cc',
'browser/speech/google_streaming_remote_engine_unittest.cc',
'browser/speech/speech_recognizer_impl_unittest.cc',
],
'content_unittests_plugins_sources': [
'browser/plugin_loader_posix_unittest.cc',
'browser/renderer_host/pepper/browser_ppapi_host_test.cc',
'browser/renderer_host/pepper/browser_ppapi_host_test.h',
'browser/renderer_host/pepper/pepper_file_system_browser_host_unittest.cc',
'browser/renderer_host/pepper/pepper_gamepad_host_unittest.cc',
'browser/renderer_host/pepper/pepper_printing_host_unittest.cc',
'browser/renderer_host/pepper/quota_reservation_unittest.cc',
'child/npapi/plugin_lib_unittest.cc',
'renderer/media/webrtc/video_destination_handler_unittest.cc',
'renderer/npapi/webplugin_impl_unittest.cc',
'renderer/pepper/event_conversion_unittest.cc',
'renderer/pepper/host_var_tracker_unittest.cc',
'renderer/pepper/mock_resource.h',
'renderer/pepper/pepper_broker_unittest.cc',
'renderer/pepper/plugin_instance_throttler_impl_unittest.cc',
'renderer/pepper/v8_var_converter_unittest.cc',
],
'content_unittests_webrtc_sources': [
'browser/media/webrtc_internals_unittest.cc',
'browser/renderer_host/media/webrtc_identity_service_host_unittest.cc',
'browser/renderer_host/p2p/socket_host_tcp_server_unittest.cc',
'browser/renderer_host/p2p/socket_host_tcp_unittest.cc',
'browser/renderer_host/p2p/socket_host_test_utils.cc',
'browser/renderer_host/p2p/socket_host_test_utils.h',
'browser/renderer_host/p2p/socket_host_udp_unittest.cc',
'browser/renderer_host/p2p/socket_host_unittest.cc',
'renderer/media/media_stream_audio_processor_unittest.cc',
'renderer/media/media_stream_constraints_util_unittest.cc',
'renderer/media/media_stream_dispatcher_unittest.cc',
'renderer/media/media_stream_video_capture_source_unittest.cc',
'renderer/media/media_stream_video_source_unittest.cc',
'renderer/media/media_stream_video_track_unittest.cc',
'renderer/media/mock_media_constraint_factory.cc',
'renderer/media/mock_media_stream_registry.cc',
'renderer/media/mock_media_stream_registry.h',
'renderer/media/mock_media_stream_video_sink.cc',
'renderer/media/mock_media_stream_video_sink.h',
'renderer/media/mock_media_stream_video_source.cc',
'renderer/media/mock_media_stream_video_source.h',
'renderer/media/rtc_data_channel_handler_unittest.cc',
'renderer/media/rtc_peer_connection_handler_unittest.cc',
'renderer/media/rtc_video_decoder_unittest.cc',
'renderer/media/speech_recognition_audio_sink_unittest.cc',
'renderer/media/user_media_client_impl_unittest.cc',
'renderer/media/video_source_handler_unittest.cc',
'renderer/media/webrtc/media_stream_remote_video_source_unittest.cc',
'renderer/media/webrtc/media_stream_track_metrics_unittest.cc',
'renderer/media/webrtc/peer_connection_dependency_factory_unittest.cc',
'renderer/media/webrtc/stun_field_trial_unittest.cc',
'renderer/media/webrtc/webrtc_local_audio_track_adapter_unittest.cc',
'renderer/media/webrtc/webrtc_media_stream_adapter_unittest.cc',
'renderer/media/webrtc/webrtc_video_capturer_adapter_unittest.cc',
'renderer/media/webrtc_audio_capturer_unittest.cc',
'renderer/media/webrtc_audio_renderer_unittest.cc',
'renderer/media/webrtc_identity_service_unittest.cc',
'renderer/media/webrtc_local_audio_source_provider_unittest.cc',
'renderer/media/webrtc_local_audio_track_unittest.cc',
'renderer/media/webrtc_uma_histograms_unittest.cc',
'renderer/p2p/ipc_network_manager_unittest.cc',
],
'content_unittests_android_sources': [
'browser/android/java/gin_java_method_invocation_helper_unittest.cc',
'browser/android/java/java_type_unittest.cc',
'browser/android/java/jni_helper_unittest.cc',
'browser/android/overscroll_refresh_unittest.cc',
'browser/android/url_request_content_job_unittest.cc',
'browser/renderer_host/input/motion_event_android_unittest.cc',
'renderer/java/gin_java_bridge_value_converter_unittest.cc',
],
},
'targets': [
{
# GN version: //content/test:layouttest_support
'target_name': 'layouttest_support_content',
'type': 'static_library',
'conditions': [
['OS=="android"', {
'dependencies': [
'test_support_content_jni_headers',
],
}],
['OS!="ios"', {
# layouttest_support_content is not supported nor required on iOS.
'dependencies': [
'content.gyp:content_renderer',
'test_support_content',
'../components/test_runner/test_runner.gyp:test_runner',
'../skia/skia.gyp:skia',
'../ui/accessibility/accessibility.gyp:ax_gen',
'../ui/base/ime/ui_base_ime.gyp:ui_base_ime',
'../v8/tools/gyp/v8.gyp:v8',
],
'include_dirs': [
'..',
'<(SHARED_INTERMEDIATE_DIR)',
],
'sources': [ '<@(layouttest_support_content_sources)' ]
}],
],
},
{
# GN version: //content/test:test_support
'target_name': 'test_support_content',
'type': 'static_library',
'dependencies': [
'../mojo/mojo_base.gyp:mojo_application_base',
'../mojo/mojo_base.gyp:mojo_environment_chromium',
'../net/net.gyp:net_test_support',
'../skia/skia.gyp:skia',
'../storage/storage_common.gyp:storage_common',
'../testing/gmock.gyp:gmock',
'../testing/gtest.gyp:gtest',
'../third_party/mojo/mojo_edk.gyp:mojo_system_impl',
'../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
'../ui/accessibility/accessibility.gyp:ax_gen',
'../ui/base/ime/ui_base_ime.gyp:ui_base_ime',
'../ui/base/ui_base.gyp:ui_base',
'../ui/base/ui_base.gyp:ui_base_test_support',
'../ui/events/events.gyp:dom_keycode_converter',
'../ui/events/events.gyp:events_base',
'../ui/events/events.gyp:events_test_support',
'../ui/events/events.gyp:gesture_detection',
'../ui/gfx/gfx.gyp:gfx_test_support',
'../ui/resources/ui_resources.gyp:ui_resources',
'../url/url.gyp:url_lib',
'browser/speech/proto/speech_proto.gyp:speech_proto',
'content.gyp:content_app_both',
'content.gyp:content_browser',
'content.gyp:content_common',
],
'export_dependent_settings': [
'content.gyp:content_browser',
],
'include_dirs': [
'..',
],
'sources': [ '<@(test_support_content_sources)' ],
'conditions': [
['enable_plugins==0', {
'sources!': [
'public/test/ppapi_test_utils.cc',
'test/ppapi_unittest.cc',
],
}],
['enable_web_speech==0', {
'sources!': [
'test/mock_google_streaming_server.cc',
],
}],
['OS == "ios"', {
'sources/': [
# iOS only needs a small portion of content; exclude all the
# implementation, and re-include what is used.
['exclude', '\\.(cc|mm)$'],
['include', '_ios\\.(cc|mm)$'],
['include', '^public/test/content_test_suite_base\\.cc$'],
['include', '^public/test/mock_notification_observer\\.cc$'],
['include', '^public/test/mock_resource_context\\.cc$'],
['include', '^public/test/test_browser_thread\\.cc$'],
['include', '^public/test/test_browser_thread_bundle\\.cc$'],
['include', '^public/test/test_content_client_initializer\\.cc$'],
['include', '^public/test/test_notification_tracker\\.cc$'],
['include', '^public/test/test_utils\\.cc$'],
['include', '^public/test/unittest_test_suite\\.cc$'],
['include', '^test/content_test_suite\\.cc$'],
['include', '^test/test_content_browser_client\\.cc$'],
['include', '^test/test_content_client\\.cc$'],
],
}, { # OS != "ios"
'conditions': [
['OS=="mac"', {
'copies': [{
'destination': '<(SHARED_INTERMEDIATE_DIR)/webkit',
'files': [
'shell/resources/missingImage.png',
'shell/resources/textAreaResizeCorner.png',
],
}],
}],
],
'dependencies': [
'content_test_mojo_bindings',
'content.gyp:content_child',
'content.gyp:content_common',
'content.gyp:content_gpu',
'content.gyp:content_plugin',
'content.gyp:content_ppapi_plugin',
'content.gyp:content_renderer',
'content.gyp:content_utility',
'content_shell_and_tests.gyp:content_shell_pak',
'../cc/blink/cc_blink.gyp:cc_blink',
'../cc/cc.gyp:cc',
'../cc/cc_tests.gyp:cc_test_support',
'../components/scheduler/scheduler.gyp:scheduler',
'../components/scheduler/scheduler.gyp:scheduler_test_support',
'../gpu/blink/gpu_blink.gyp:gpu_blink',
'../ipc/mojo/ipc_mojo.gyp:*',
'../media/blink/media_blink.gyp:media_blink',
'../media/media.gyp:media',
'../media/midi/midi.gyp:midi',
'../mojo/mojo_base.gyp:mojo_application_base',
'../mojo/mojo_base.gyp:mojo_environment_chromium',
'../ppapi/ppapi_internal.gyp:ppapi_host',
'../ppapi/ppapi_internal.gyp:ppapi_proxy',
'../ppapi/ppapi_internal.gyp:ppapi_shared',
'../ppapi/ppapi_internal.gyp:ppapi_unittest_shared',
'../storage/storage_browser.gyp:storage',
'../storage/storage_common.gyp:storage_common',
'../third_party/WebKit/public/blink.gyp:blink',
'../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
'../ui/compositor/compositor.gyp:compositor_test_support',
'../ui/surface/surface.gyp:surface',
'../v8/tools/gyp/v8.gyp:v8',
],
'export_dependent_settings': [
'../third_party/WebKit/public/blink.gyp:blink',
],
}],
['OS == "win"', {
'dependencies': [
'../sandbox/sandbox.gyp:sandbox',
'content.gyp:content_startup_helper_win',
],
}],
['enable_webrtc==1', {
'sources': [
'renderer/media/mock_data_channel_impl.cc',
'renderer/media/mock_data_channel_impl.h',
'renderer/media/mock_media_stream_dispatcher.cc',
'renderer/media/mock_media_stream_dispatcher.h',
'renderer/media/mock_peer_connection_impl.cc',
'renderer/media/mock_peer_connection_impl.h',
'renderer/media/mock_web_rtc_peer_connection_handler_client.cc',
'renderer/media/mock_web_rtc_peer_connection_handler_client.h',
'renderer/media/webrtc/mock_peer_connection_dependency_factory.cc',
'renderer/media/webrtc/mock_peer_connection_dependency_factory.h',
],
'dependencies': [
'../third_party/libjingle/libjingle.gyp:libjingle_webrtc',
'../third_party/libjingle/libjingle.gyp:libpeerconnection',
'../third_party/webrtc/modules/modules.gyp:video_capture_module',
],
}],
['use_glib == 1', {
'dependencies': [
'../build/linux/system.gyp:glib',
],
}],
['use_aura==1', {
'dependencies': [
'../ui/aura/aura.gyp:aura_test_support',
'../ui/resources/ui_resources.gyp:ui_test_pak',
'../ui/wm/wm.gyp:wm',
],
}],
['use_ozone==1', {
'dependencies': [
'../ui/ozone/ozone.gyp:ozone',
'../ui/platform_window/platform_window.gyp:platform_window',
],
}],
['OS=="win"', {
'dependencies': [
'../third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
],
}],
['OS!="android" and OS!="ios"', {
'sources': [
'browser/compositor/test/no_transport_image_transport_factory.cc',
'browser/compositor/test/no_transport_image_transport_factory.h',
],
'dependencies': [
'../ui/compositor/compositor.gyp:compositor',
'../third_party/libvpx/libvpx.gyp:libvpx',
],
}],
['OS=="android"', {
'dependencies': [
'../ui/android/ui_android.gyp:ui_android',
'../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs',
'content.gyp:content_v8_external_data',
],
}],
['v8_use_external_startup_data==1 and OS!="ios"', {
'dependencies': [
'../gin/gin.gyp:gin',
],
}],
],
},
{
# GN version: //content/test:content_unittests
'target_name': 'content_unittests',
'type': '<(gtest_target_type)',
'dependencies': [
'browser/background_sync/background_sync_proto.gyp:background_sync_proto',
'browser/notifications/notification_proto.gyp:notification_proto',
'browser/service_worker/service_worker_proto.gyp:service_worker_proto',
'browser/speech/proto/speech_proto.gyp:speech_proto',
'content.gyp:content_browser',
'content.gyp:content_common',
'content_common_mojo_bindings.gyp:content_common_mojo_bindings',
'test_support_content',
'../base/base.gyp:test_support_base',
'../crypto/crypto.gyp:crypto',
'../device/battery/battery.gyp:device_battery',
'../device/battery/battery.gyp:device_battery_mojo_bindings',
'../mojo/mojo_base.gyp:mojo_environment_chromium',
'../net/net.gyp:net_extras',
'../net/net.gyp:net_test_support',
'../skia/skia.gyp:skia',
'../sql/sql.gyp:sql',
'../sql/sql.gyp:test_support_sql',
'../testing/gmock.gyp:gmock',
'../testing/gtest.gyp:gtest',
'../third_party/mojo/mojo_edk.gyp:mojo_common_test_support',
'../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
'../third_party/re2/re2.gyp:re2',
'../ui/accessibility/accessibility.gyp:accessibility',
'../ui/base/ui_base.gyp:ui_base',
'../ui/events/events.gyp:blink',
'../ui/gfx/gfx.gyp:gfx',
'../ui/gfx/gfx.gyp:gfx_geometry',
'../ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
],
'include_dirs': [
'..',
'<(SHARED_INTERMEDIATE_DIR)', # Needed by render_media_client_unittest.cc.
],
'sources': [ '<@(content_unittests_sources)' ],
'conditions': [
['OS == "ios"', {
'sources/': [
# iOS only needs a small portion of content; exclude all the
# implementation, and re-include what is used.
['exclude', '\\.(cc|mm)$'],
['include', '_ios\\.(cc|mm)$'],
['include', '^browser/notification_service_impl_unittest\\.cc$'],
['include', '^browser/web_contents/navigation_entry_impl_unittest\\.cc$'],
['include', '^test/run_all_unittests\\.cc$'],
],
}, { # OS != "ios"
'dependencies': [
'content.gyp:content_browser',
'content.gyp:content_child',
'content.gyp:content_gpu',
'content.gyp:content_plugin',
'content.gyp:content_renderer',
'content.gyp:content_resources',
'../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
'../cc/cc.gyp:cc',
'../cc/cc.gyp:cc_surfaces',
'../cc/cc_tests.gyp:cc_test_support',
'../gin/gin.gyp:gin',
'../gpu/gpu.gyp:gpu',
'../gpu/gpu.gyp:gpu_unittest_utils',
'../ipc/ipc.gyp:test_support_ipc',
'../media/media.gyp:media_test_support',
'../media/media.gyp:shared_memory_support',
'../storage/storage_browser.gyp:storage',
'../storage/storage_common.gyp:storage_common',
'../third_party/WebKit/public/blink.gyp:blink',
'../third_party/icu/icu.gyp:icui18n',
'../third_party/icu/icu.gyp:icuuc',
'../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
'../third_party/libjingle/libjingle.gyp:libjingle',
'../ui/gl/gl.gyp:gl',
'../ui/gl/gl.gyp:gl_test_support',
],
}],
['OS != "win"', {
'sources': [
'browser/file_descriptor_info_impl_unittest.cc',
],
}],
['OS == "mac"', {
'dependencies': [
'../third_party/ocmock/ocmock.gyp:ocmock',
],
}],
['enable_plugins==1', {
'sources': [ '<@(content_unittests_plugins_sources)' ],
}],
['enable_webrtc==1', {
'sources': [ '<@(content_unittests_webrtc_sources)' ],
'dependencies': [
'../third_party/libjingle/libjingle.gyp:libjingle_webrtc',
'../third_party/libjingle/libjingle.gyp:libpeerconnection',
'../third_party/webrtc/modules/modules.gyp:video_capture_module',
]
}, {
'sources!': [
'renderer/media/webrtc/video_destination_handler_unittest.cc',
],
}],
['enable_webrtc==1 and (OS=="linux" or OS=="mac" or OS=="win")', {
'sources': [
'browser/media/capture/desktop_capture_device_unittest.cc',
],
'dependencies': [
'../third_party/webrtc/modules/modules.gyp:desktop_capture',
],
}],
['enable_webrtc==1 and chromeos==1', {
'sources': [
'browser/media/capture/desktop_capture_device_aura_unittest.cc',
],
}],
['enable_web_speech==1', {
'sources': [ '<@(content_unittests_speech_sources)' ],
}],
['OS=="linux" and use_dbus==1', {
'dependencies': [
'../build/linux/system.gyp:dbus',
'../dbus/dbus.gyp:dbus_test_support',
],
}],
['OS=="win" and win_use_allocator_shim==1', {
'dependencies': [
'../base/allocator/allocator.gyp:allocator',
],
}],
['OS=="win"', {
'dependencies': [
'../third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
],
}],
['OS=="mac"', {
# These flags are needed to run the test on Mac.
# Search for comments about "xcode_settings" in chrome_tests.gypi.
'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
}],
['chromeos==1', {
'dependencies': [
'../chromeos/chromeos.gyp:chromeos',
],
'sources!': [
'browser/geolocation/wifi_data_provider_linux_unittest.cc',
],
}],
['use_aura==1', {
'dependencies': [
'../ui/aura/aura.gyp:aura',
'../ui/aura_extra/aura_extra.gyp:aura_extra',
'../ui/wm/wm.gyp:wm',
]
}],
['use_aura==1 or toolkit_views==1', {
'dependencies': [
'../ui/events/events.gyp:events_test_support',
],
}],
['use_aura!=1 and OS!="mac"', {
'sources/': [
['exclude', '^browser/compositor/'],
],
}],
['OS == "android"', {
'sources': [ '<@(content_unittests_android_sources)' ],
'sources!': [
'browser/geolocation/network_location_provider_unittest.cc',
'browser/geolocation/wifi_data_provider_common_unittest.cc',
'browser/media/audio_stream_monitor_unittest.cc',
'browser/renderer_host/begin_frame_observer_proxy_unittest.cc',
'browser/webui/url_data_manager_backend_unittest.cc',
],
'dependencies': [
'../testing/android/native_test.gyp:native_test_native_code',
],
}],
['OS != "android" and OS != "ios"', {
'dependencies': [
'../third_party/libvpx/libvpx.gyp:libvpx',
],
}],
['use_aura!=1 and OS!="android"', {
'sources!': [
'browser/renderer_host/input/tap_suppression_controller_unittest.cc',
],
}],
['use_dbus==0', {
'sources!': [
'browser/geolocation/wifi_data_provider_linux_unittest.cc',
],
}],
['OS!="win" and OS!="mac"', {
'sources!': [
'common/plugin_list_unittest.cc',
],
}],
['use_ozone==1', {
'dependencies': [
'../ui/ozone/ozone.gyp:ozone',
'../ui/ozone/ozone.gyp:ozone_base',
],
}],
['OS == "mac" and use_openssl==1', {
'dependencies': [
'../third_party/boringssl/boringssl.gyp:boringssl',
],
}],
],
},
],
'conditions': [
['test_isolation_mode != "noop"', {
'targets': [
{
'target_name': 'content_browsertests_run',
'type': 'none',
'dependencies': [
'content_browsertests',
],
'includes': [
'../build/isolate.gypi',
],
'sources': [
'content_browsertests.isolate',
],
},
{
'target_name': 'content_unittests_run',
'type': 'none',
'dependencies': [
'content_unittests',
],
'includes': [
'../build/isolate.gypi',
],
'sources': [
'content_unittests.isolate',
],
'conditions': [
['use_x11==1', {
'dependencies': [
'../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
],
}],
],
},
{
'target_name': 'telemetry_base',
'type': 'none',
'dependencies': [
'../tools/telemetry/telemetry.gyp:bitmaptools#host',
],
},
{
'target_name': 'telemetry_gpu_unittests_run',
'type': 'none',
'dependencies': [
'telemetry_base',
],
'includes': [
'../build/isolate.gypi',
],
'sources': [
'telemetry_gpu_unittests.isolate',
],
},
],
'conditions': [
['archive_gpu_tests==1', {
'targets': [
{
'target_name': 'content_gl_tests_run',
'type': 'none',
'dependencies': [
'content_shell_and_tests.gyp:content_gl_tests',
],
'includes': [
'../build/isolate.gypi',
],
'sources': [
'content_gl_tests.isolate',
],
},
],
}],
],
}],
['OS!="ios"', {
'targets': [
{
# GN version: //content/test:content_perftests
'target_name': 'content_perftests',
'type': '<(gtest_target_type)',
'defines!': ['CONTENT_IMPLEMENTATION'],
'dependencies': [
'content.gyp:content_browser',
'content.gyp:content_common',
'test_support_content',
'../base/base.gyp:test_support_base',
'../cc/cc.gyp:cc',
'../skia/skia.gyp:skia',
'../testing/gtest.gyp:gtest',
'../testing/perf/perf_test.gyp:*',
'../ui/gfx/gfx.gyp:gfx',
'../ui/gfx/gfx.gyp:gfx_geometry',
],
'include_dirs': [
'..',
],
'sources': [
'browser/renderer_host/input/input_router_impl_perftest.cc',
'common/cc_messages_perftest.cc',
'common/discardable_shared_memory_heap_perftest.cc',
'test/run_all_perftests.cc',
],
'conditions': [
['OS == "android"', {
'dependencies': [
'../testing/android/native_test.gyp:native_test_native_code',
],
}],
['OS=="win" and component!="shared_library" and win_use_allocator_shim==1', {
'dependencies': [
'<(DEPTH)/base/allocator/allocator.gyp:allocator',
],
}],
],
},
{
# GN version: //content/tests:browsertest_support
'target_name': 'content_browser_test_support',
'type': 'static_library',
'dependencies': [
'content_shell_lib',
'../skia/skia.gyp:skia',
'../testing/gtest.gyp:gtest',
'../ui/accessibility/accessibility.gyp:ax_gen',
'../ui/base/ime/ui_base_ime.gyp:ui_base_ime',
],
'sources': [
# Source list duplicated in GN build.
'public/test/content_browser_test.cc',
'public/test/content_browser_test.h',
'public/test/content_browser_test_utils.cc',
'public/test/content_browser_test_utils.h',
'public/test/content_browser_test_utils_mac.mm',
'test/content_browser_test_utils_internal.cc',
'test/content_browser_test_utils_internal.h',
'test/content_test_launcher.cc',
],
'include_dirs': [
'<(SHARED_INTERMEDIATE_DIR)',
],
'conditions': [
['OS=="android"', {
'dependencies': [
'content.gyp:content_app_both',
],
}, {
'dependencies': [
'content.gyp:content_browser',
],
}],
],
},
{
# GN version: //content/test:test_mojo_bindings
'target_name': 'content_test_mojo_bindings',
'type': 'static_library',
'sources': [
'public/test/test_mojo_service.mojom',
],
'includes': [ '../third_party/mojo/mojom_bindings_generator.gypi' ],
},
{
# GN version: //content/test:web_ui_test_mojo_bindings
'target_name': 'web_ui_test_mojo_bindings',
'type': 'static_library',
'dependencies': [
'../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
],
'sources': [
'test/data/web_ui_test_mojo_bindings.mojom',
],
'includes': [ '../third_party/mojo/mojom_bindings_generator.gypi' ],
'export_dependent_settings': [
'../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
],
},
{
# GN version: //content/tests:content_browsertests
'target_name': 'content_browsertests',
'type': '<(gtest_target_type)',
'dependencies': [
'content.gyp:content_common',
'content.gyp:content_gpu',
'content.gyp:content_plugin',
'content.gyp:content_renderer',
'content.gyp:content_resources',
'content_browser_test_support',
'content_common_mojo_bindings.gyp:content_common_mojo_bindings',
'content_shell_lib',
'content_shell_pak',
'test_support_content',
'web_ui_test_mojo_bindings',
'../base/base.gyp:test_support_base',
'../device/battery/battery.gyp:device_battery',
'../device/battery/battery.gyp:device_battery_mojo_bindings',
'../gin/gin.gyp:gin',
'../gpu/gpu.gyp:gpu',
'../ipc/ipc.gyp:test_support_ipc',
'../media/media.gyp:media_test_support',
'../media/media.gyp:shared_memory_support',
'../mojo/mojo_base.gyp:mojo_application_base',
'../mojo/mojo_base.gyp:mojo_environment_chromium',
'../mojo/mojo_base.gyp:mojo_test_support',
'../net/net.gyp:net_test_support',
'../ppapi/ppapi_internal.gyp:ppapi_host',
'../ppapi/ppapi_internal.gyp:ppapi_ipc',
'../ppapi/ppapi_internal.gyp:ppapi_proxy',
'../ppapi/ppapi_internal.gyp:ppapi_shared',
'../ppapi/ppapi_internal.gyp:ppapi_unittest_shared',
'../testing/gmock.gyp:gmock',
'../testing/gtest.gyp:gtest',
'../third_party/WebKit/public/blink.gyp:blink',
'../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
'../third_party/mesa/mesa.gyp:osmesa',
'../third_party/mojo/mojo_edk.gyp:mojo_common_test_support',
'../third_party/mojo/mojo_edk.gyp:mojo_system_impl',
'../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
'../third_party/mojo/mojo_public.gyp:mojo_js_bindings',
'../third_party/zlib/zlib.gyp:zlib',
'../ui/accessibility/accessibility.gyp:accessibility',
'../ui/base/ui_base.gyp:ui_base',
'../ui/gfx/gfx.gyp:gfx',
'../ui/gfx/gfx.gyp:gfx_geometry',
'../ui/gl/gl.gyp:gl',
'../ui/gl/gl.gyp:gl_test_support',
'../ui/resources/ui_resources.gyp:ui_resources',
'../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs',
'../ui/snapshot/snapshot.gyp:snapshot',
'../ui/accessibility/accessibility.gyp:ax_gen',
],
'include_dirs': [
'..',
'<(SHARED_INTERMEDIATE_DIR)', # Needed by encrypted_media_browsertest.cc
],
'includes': [
'browser/gpu/test_support_gpu.gypi',
],
'defines': [
'HAS_OUT_OF_PROC_TEST_RUNNER',
],
'sources': [ '<@(content_browsertests_sources)' ],
'conditions': [
['chromeos==0', {
'sources!': [
'browser/web_contents/touch_editable_impl_aura_browsertest.cc',
],
}],
['OS=="win"', {
'resource_include_dirs': [
'<(SHARED_INTERMEDIATE_DIR)/webkit',
],
'sources': [
'<@(content_browsertests_win_sources)',
# TODO: It would be nice to have these pulled in
# automatically from direct_dependent_settings in
# their various targets (net.gyp:net_resources, etc.),
# but that causes errors in other targets when
# resulting .res files get referenced multiple times.
'<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_resources.rc',
'<(SHARED_INTERMEDIATE_DIR)/content/app/strings/content_strings_en-US.rc',
'<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc',
'shell/app/resource.h',
'shell/app/shell.rc',
],
'dependencies': [
'<(DEPTH)/content/app/strings/content_strings.gyp:content_strings',
'<(DEPTH)/net/net.gyp:net_resources',
'<(DEPTH)/third_party/WebKit/public/blink_resources.gyp:blink_resources',
'<(DEPTH)/third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
'<(DEPTH)/third_party/isimpledom/isimpledom.gyp:isimpledom',
],
'configurations': {
'Debug_Base': {
'msvs_settings': {
'VCLinkerTool': {
'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
},
},
},
},
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
'msvs_disabled_warnings': [ 4267, ],
}],
['OS=="win" and win_use_allocator_shim==1', {
'dependencies': [
'../base/allocator/allocator.gyp:allocator',
],
}],
['OS=="linux"', {
'sources!': [
'browser/accessibility/dump_accessibility_tree_browsertest.cc',
],
}],
['OS=="android"', {
'sources': [ '<@(content_browsertests_android_sources)' ],
'sources!': [
'browser/battery_status/battery_monitor_impl_browsertest.cc',
],
'dependencies': [
'content_shell_jni_headers',
'content_shell_lib',
'../testing/android/native_test.gyp:native_test_support',
],
}],
['OS=="mac"', {
'dependencies': [
'content_shell', # Needed for Content Shell.app's Helper.
],
'sources': [
'renderer/external_popup_menu_browsertest.cc',
],
}],
['use_aura==1 or toolkit_views==1', {
'dependencies': [
'../ui/events/events.gyp:events_test_support',
],
}],
['use_aura!=1 and OS!="mac"', {
'sources!' :[
'browser/compositor/image_transport_factory_browsertest.cc',
],
}],
['enable_webrtc==1', {
'sources': [ '<@(content_browsertests_webrtc_sources)' ],
'dependencies': [
'../testing/perf/perf_test.gyp:perf_test',
],
}],
['enable_plugins==1', {
'sources': [ '<@(content_browsertests_plugins_sources)' ],
'dependencies': [
'../ppapi/ppapi_internal.gyp:ppapi_tests',
]
}],
['enable_web_speech == 1', {
'sources': [ '<@(content_browsertests_speech_sources)' ],
}],
['branding != "Chrome"', {
'sources': [ '<@(content_browsertests_unofficial_build_sources)' ],
}],
],
},
{
# GN version: //content/test:content_gl_tests
'target_name': 'content_gl_tests',
'type': '<(gtest_target_type)',
'dependencies': [
'content.gyp:content_common',
'test_support_content',
'../base/base.gyp:test_support_base',
'../gpu/gpu.gyp:command_buffer_common',
'../testing/gtest.gyp:gtest',
'../third_party/WebKit/public/blink.gyp:blink',
'../ui/base/ui_base.gyp:ui_base',
'../ui/gfx/gfx.gyp:gfx',
'../ui/gfx/gfx.gyp:gfx_geometry',
'../ui/gfx/gfx.gyp:gfx_test_support',
'../ui/gl/gl.gyp:gl',
'../ui/gl/gl.gyp:gl_test_support',
'../v8/tools/gyp/v8.gyp:v8',
],
'include_dirs': [
'..',
],
'sources': [
'common/gpu/client/gl_helper_unittest.cc',
'common/gpu/client/gpu_in_process_context_tests.cc',
],
'conditions': [
['OS=="android"', {
'dependencies': [
'../testing/android/native_test.gyp:native_test_native_code',
],
}, {
'dependencies': [
# Runtime dependencis.
'../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
'../third_party/mesa/mesa.gyp:osmesa',
],
}],
['OS=="win" and component!="shared_library" and win_use_allocator_shim==1', {
'dependencies': [
'<(DEPTH)/base/allocator/allocator.gyp:allocator',
],
}],
],
},
{
# GN version: //content/test:content_gl_benchmark
'target_name': 'content_gl_benchmark',
'type': '<(gtest_target_type)',
'dependencies': [
'content.gyp:content_common',
'test_support_content',
'../base/base.gyp:test_support_base',
'../testing/gtest.gyp:gtest',
'../third_party/WebKit/public/blink.gyp:blink',
'../ui/base/ui_base.gyp:ui_base',
'../ui/gfx/gfx.gyp:gfx',
'../ui/gfx/gfx.gyp:gfx_geometry',
'../ui/gl/gl.gyp:gl',
'../ui/gl/gl.gyp:gl_test_support',
],
'include_dirs': [
'..',
],
'sources': [
'common/gpu/client/gl_helper_benchmark.cc',
],
'conditions': [
['OS=="win" and component!="shared_library" and win_use_allocator_shim==1', {
'dependencies': [
'<(DEPTH)/base/allocator/allocator.gyp:allocator',
],
}],
],
},
],
}],
['chromeos==1 or OS=="win" or OS=="android"', {
'targets': [
{
'target_name': 'video_decode_accelerator_unittest',
'type': '<(gtest_target_type)',
'dependencies': [
'../base/base.gyp:base',
'../media/media.gyp:media',
'../testing/gtest.gyp:gtest',
'../ui/base/ui_base.gyp:ui_base',
'../ui/gfx/gfx.gyp:gfx',
'../ui/gfx/gfx.gyp:gfx_test_support',
'../ui/gfx/gfx.gyp:gfx_geometry',
'../ui/gl/gl.gyp:gl',
'../ui/gl/gl.gyp:gl_test_support',
'content.gyp:content',
],
'include_dirs': [
'<(DEPTH)/third_party/khronos',
],
'sources': [
'common/gpu/media/android_video_decode_accelerator_unittest.cc',
'common/gpu/media/rendering_helper.cc',
'common/gpu/media/rendering_helper.h',
'common/gpu/media/video_accelerator_unittest_helpers.h',
'common/gpu/media/video_decode_accelerator_unittest.cc',
],
'conditions': [
['OS=="android"', {
'sources/': [
['exclude', '^common/gpu/media/rendering_helper.h'],
['exclude', '^common/gpu/media/rendering_helper.cc'],
['exclude', '^common/gpu/media/video_decode_accelerator_unittest.cc'],
],
'dependencies': [
'../media/media.gyp:player_android',
'../testing/gmock.gyp:gmock',
'../testing/android/native_test.gyp:native_test_native_code',
'../gpu/gpu.gyp:gpu_unittest_utils',
],
}, { # OS!="android"
'sources/': [
['exclude', '^common/gpu/media/android_video_decode_accelerator_unittest.cc'],
],
}],
['OS=="win"', {
'dependencies': [
'<(angle_path)/src/angle.gyp:libEGL',
'<(angle_path)/src/angle.gyp:libGLESv2',
],
}],
['(OS=="win" and win_use_allocator_shim==1) or '
'(os_posix == 1 and OS != "android" and '
' use_allocator!="none")', {
'dependencies': [
'../base/allocator/allocator.gyp:allocator',
],
}],
['target_arch != "arm" and (OS=="linux" or chromeos == 1)', {
'include_dirs': [
'<(DEPTH)/third_party/libva',
],
}],
['use_x11==1', {
'dependencies': [
'../build/linux/system.gyp:x11', # Used by rendering_helper.cc
'../ui/gfx/x/gfx_x11.gyp:gfx_x11',
],
}],
['use_ozone==1 and chromeos==1', {
'dependencies': [
'../ui/display/display.gyp:display', # Used by rendering_helper.cc
'../ui/ozone/ozone.gyp:ozone', # Used by rendering_helper.cc
],
}],
],
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
'msvs_disabled_warnings': [ 4267, ],
},
]
}],
['chromeos==1 and target_arch != "arm"', {
'targets': [
{
'target_name': 'vaapi_jpeg_decoder_unittest',
'type': '<(gtest_target_type)',
'dependencies': [
'content.gyp:content_common',
'../base/base.gyp:base',
'../media/media.gyp:media',
'../media/media.gyp:media_test_support',
'../testing/gtest.gyp:gtest',
],
'sources': [
'common/gpu/media/vaapi_jpeg_decoder_unittest.cc',
],
'include_dirs': [
'<(DEPTH)/third_party/libva',
],
'conditions': [
['use_x11==1', {
'dependencies': [
'../build/linux/system.gyp:x11',
]
}, {
'dependencies': [
'../build/linux/system.gyp:libdrm',
]
}],
],
}
]
}],
['chromeos==1', {
'targets': [
{
'target_name': 'video_encode_accelerator_unittest',
'type': 'executable',
'dependencies': [
'../base/base.gyp:base',
'../media/media.gyp:media',
'../media/media.gyp:media_test_support',
'../testing/gtest.gyp:gtest',
'../ui/base/ui_base.gyp:ui_base',
'../ui/gfx/gfx.gyp:gfx',
'../ui/gfx/gfx.gyp:gfx_geometry',
'../ui/gfx/gfx.gyp:gfx_test_support',
'../ui/gl/gl.gyp:gl',
'../ui/gl/gl.gyp:gl_test_support',
'content.gyp:content',
],
'sources': [
'common/gpu/media/video_accelerator_unittest_helpers.h',
'common/gpu/media/video_encode_accelerator_unittest.cc',
],
'include_dirs': [
'<(DEPTH)/third_party/libva',
'<(DEPTH)/third_party/libyuv',
],
'conditions': [
['use_x11==1', {
'dependencies': [
'../ui/gfx/x/gfx_x11.gyp:gfx_x11',
],
}],
['use_ozone==1', {
'dependencies': [
'../ui/ozone/ozone.gyp:ozone',
],
}],
],
},
{
'target_name': 'jpeg_decode_accelerator_unittest',
'type': 'executable',
'dependencies': [
'../base/base.gyp:base',
'../media/media.gyp:media',
'../media/media.gyp:media_test_support',
'../testing/gtest.gyp:gtest',
'../third_party/libyuv/libyuv.gyp:libyuv',
'../ui/gfx/gfx.gyp:gfx',
'../ui/gfx/gfx.gyp:gfx_geometry',
'../ui/gl/gl.gyp:gl',
'../ui/gl/gl.gyp:gl_test_support',
'content.gyp:content',
],
'sources': [
'common/gpu/media/jpeg_decode_accelerator_unittest.cc',
],
'include_dirs': [
'<(DEPTH)/third_party/libva',
'<(DEPTH)/third_party/libyuv',
],
}
]
}],
['OS == "android"', {
'targets': [
{
# TODO(GN)
'target_name': 'content_gl_tests_apk',
'type': 'none',
'dependencies': [
'content_gl_tests',
'content_java_test_support',
],
'variables': {
'test_suite_name': 'content_gl_tests',
},
'includes': [
'../build/apk_test.gypi',
],
},
{
# TODO(GN)
'target_name': 'content_unittests_apk',
'type': 'none',
'dependencies': [
'content.gyp:content_java',
'content_unittests',
],
'conditions': [
['v8_use_external_startup_data==1', {
'dependencies': [
'../v8/tools/gyp/v8.gyp:v8_external_snapshot',
],
'copies': [
{
'destination': '<(asset_location)',
'files': [
'<(PRODUCT_DIR)/natives_blob.bin',
'<(PRODUCT_DIR)/snapshot_blob.bin',
],
},
],
}],
],
'variables': {
'test_suite_name': 'content_unittests',
'isolate_file': 'content_unittests.isolate',
'conditions': [
['v8_use_external_startup_data==1', {
'asset_location': '<(PRODUCT_DIR)/content_unittests_apk/assets',
'additional_input_paths': [
'<(PRODUCT_DIR)/content_unittests_apk/assets/natives_blob.bin',
'<(PRODUCT_DIR)/content_unittests_apk/assets/snapshot_blob.bin',
],
'inputs': [
'<(PRODUCT_DIR)/natives_blob.bin',
'<(PRODUCT_DIR)/snapshot_blob.bin',
],
}],
],
},
'includes': [ '../build/apk_test.gypi' ],
},
{
'target_name': 'content_shell_browsertests_java',
'type': 'none',
'dependencies': [
'content.gyp:content_java',
'content_shell_java',
'../base/base.gyp:base_java',
'../testing/android/native_test.gyp:native_test_java',
'../ui/android/ui_android.gyp:ui_java',
],
'variables': {
'java_in_dir': 'shell/android/browsertests',
},
'includes': [ '../build/java.gypi' ],
},
{
# TODO(GN)
'target_name': 'content_browsertests_manifest',
'type': 'none',
'variables': {
'jinja_inputs': ['shell/android/browsertests_apk/AndroidManifest.xml.jinja2'],
'jinja_output': '<(SHARED_INTERMEDIATE_DIR)/content_browsertests_manifest/AndroidManifest.xml',
},
'includes': [ '../build/android/jinja_template.gypi' ],
},
{
# TODO(GN)
'target_name': 'content_browsertests_apk',
'type': 'none',
'dependencies': [
'content.gyp:content_icudata',
'content.gyp:content_java',
'content.gyp:content_v8_external_data',
'content_browsertests',
'content_shell_browsertests_java',
'content_java_test_support',
'content_shell_java',
],
'variables': {
'test_suite_name': 'content_browsertests',
'isolate_file': 'content_browsertests.isolate',
'java_in_dir': 'shell/android/browsertests_apk',
'android_manifest_path': '<(SHARED_INTERMEDIATE_DIR)/content_browsertests_manifest/AndroidManifest.xml',
'resource_dir': 'shell/android/browsertests_apk/res',
'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'],
'asset_location': '<(PRODUCT_DIR)/content_shell/assets',
'conditions': [
['icu_use_data_file_flag==1', {
'additional_input_paths': [
'<(PRODUCT_DIR)/icudtl.dat',
],
}],
['v8_use_external_startup_data==1', {
'additional_input_paths': [
'<(PRODUCT_DIR)/natives_blob.bin',
'<(PRODUCT_DIR)/snapshot_blob.bin',
],
}],
],
},
'includes': [ '../build/apk_browsertest.gypi' ],
},
{
# TODO(GN)
'target_name': 'content_perftests_apk',
'type': 'none',
'dependencies': [
'content.gyp:content_java',
'content_perftests',
],
'variables': {
'test_suite_name': 'content_perftests',
},
'includes': [ '../build/apk_test.gypi' ],
},
{
# GN: //content/shell/android:chromium_linker_test_manifest
'target_name': 'chromium_linker_test_manifest',
'type': 'none',
'variables': {
'jinja_inputs': ['shell/android/linker_test_apk/AndroidManifest.xml.jinja2'],
'jinja_output': '<(SHARED_INTERMEDIATE_DIR)/chromium_linker_test_manifest/AndroidManifest.xml',
},
'includes': [ '../build/android/jinja_template.gypi' ],
},
{
# GN: //content/shell/android:chromium_linker_test_apk
'target_name': 'chromium_linker_test_apk',
'type': 'none',
'conditions': [
['target_arch != "x64" and target_arch != "arm64"', {
'dependencies': [
'chromium_android_linker_test',
'content.gyp:content_icudata',
'content.gyp:content_java',
'content.gyp:content_v8_external_data',
'content_shell_java',
],
'variables': {
'apk_name': 'ChromiumLinkerTest',
'android_manifest_path': '<(SHARED_INTERMEDIATE_DIR)/chromium_linker_test_manifest/AndroidManifest.xml',
'java_in_dir': 'shell/android/linker_test_apk',
'resource_dir': 'shell/android/linker_test_apk/res',
'native_lib_target': 'libchromium_android_linker_test',
'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'],
'asset_location': '<(PRODUCT_DIR)/content_shell/assets',
'use_chromium_linker': '1',
'enable_chromium_linker_tests': '1',
'conditions': [
['icu_use_data_file_flag==1', {
'additional_input_paths': [
'<(PRODUCT_DIR)/icudtl.dat',
],
}],
['v8_use_external_startup_data==1', {
'additional_input_paths': [
'<(PRODUCT_DIR)/natives_blob.bin',
'<(PRODUCT_DIR)/snapshot_blob.bin',
],
}],
],
},
'includes': [ '../build/java_apk.gypi' ],
},
],
],
},
{
# GN: //content/shell/android:linker_test
'target_name': 'chromium_android_linker_test',
'type': 'shared_library',
'defines!': ['CONTENT_IMPLEMENTATION'],
'dependencies': [
'chromium_android_linker_test_jni_headers',
'content_shell_lib',
# Required to include "content/public/browser/android/compositor.h"
# in chromium_linker_test_android.cc :-(
'../skia/skia.gyp:skia',
],
'sources': [
'shell/android/linker_test_apk/chromium_linker_test_android.cc',
'shell/android/linker_test_apk/chromium_linker_test_linker_tests.cc',
],
},
{
# GN: //content/shell/android:linker_test_jni_headers
'target_name': 'chromium_android_linker_test_jni_headers',
'type': 'none',
'sources': [
'shell/android/linker_test_apk/src/org/chromium/chromium_linker_test_apk/LinkerTests.java',
],
'variables': {
'jni_gen_package': 'content/shell',
},
'includes': [ '../build/jni_generator.gypi' ],
},
{
# TODO(GN)
'target_name': 'video_decode_accelerator_unittest_apk',
'type': 'none',
'dependencies': [
'video_decode_accelerator_unittest',
],
'variables': {
'test_suite_name': 'video_decode_accelerator_unittest',
},
'includes': [ '../build/apk_test.gypi' ],
},
{
# GN: //content/public/test/android:test_support_content_jni_headers
'target_name': 'test_support_content_jni_headers',
'type': 'none',
'sources': [
'public/test/android/javatests/src/org/chromium/content/browser/test/NestedSystemMessageHandler.java',
],
'variables': {
'jni_gen_package': 'content/public/test',
},
'includes': [ '../build/jni_generator.gypi' ],
},
{
# GN: //content/public/test/android:content_java_test_support
'target_name': 'content_java_test_support',
'type': 'none',
'dependencies': [
'../base/base.gyp:base',
'../base/base.gyp:base_java_test_support',
'content.gyp:content_java',
],
'variables': {
'java_in_dir': '../content/public/test/android/javatests',
},
'includes': [ '../build/java.gypi' ],
},
{
# GN: //content/shell/android:content_shell_test_apk
# and //content/public/android:content_javatests
'target_name': 'content_shell_test_apk',
'type': 'none',
'dependencies': [
'content_java_test_support',
'content_shell_apk_java',
'content.gyp:content_java',
'../base/base.gyp:base_java',
'../base/base.gyp:base_javatests',
'../base/base.gyp:base_java_test_support',
'../device/battery/battery.gyp:device_battery_javatests',
'../media/media.gyp:media_java',
'../media/media.gyp:media_test_support',
'../net/net.gyp:net_java',
'../net/net.gyp:net_javatests',
'../net/net.gyp:net_java_test_support',
'../testing/android/on_device_instrumentation.gyp:broker_java',
'../testing/android/on_device_instrumentation.gyp:require_driver_apk',
'../third_party/mojo/mojo_public.gyp:mojo_public_test_interfaces',
],
'variables': {
'apk_name': 'ContentShellTest',
'java_in_dir': 'shell/android/javatests',
'resource_dir': 'shell/android/shell_apk/res',
'additional_src_dirs': ['public/android/javatests/', ],
'is_test_apk': 1,
'test_type': 'instrumentation',
'isolate_file': 'content_shell_test_apk.isolate',
},
'includes': [
'../build/java_apk.gypi',
'../build/android/test_runner.gypi',
],
},
{
# GN: //content/public/android:content_junit_tests
'target_name': 'content_junit_tests',
'type': 'none',
'dependencies': [
'content.gyp:content_java',
'../base/base.gyp:base_java',
'../base/base.gyp:base_java_test_support',
'../testing/android/junit/junit_test.gyp:junit_test_support',
],
'variables': {
'main_class': 'org.chromium.testing.local.JunitTestMain',
'src_paths': [
'public/android/junit/',
],
},
'includes': [
'../build/host_jar.gypi',
],
},
],
}],
],
}