summaryrefslogtreecommitdiff
path: root/chromium/content/test/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/test/BUILD.gn')
-rw-r--r--chromium/content/test/BUILD.gn127
1 files changed, 107 insertions, 20 deletions
diff --git a/chromium/content/test/BUILD.gn b/chromium/content/test/BUILD.gn
index 1a50bde4613..6ac9a2997b4 100644
--- a/chromium/content/test/BUILD.gn
+++ b/chromium/content/test/BUILD.gn
@@ -119,6 +119,8 @@ jumbo_static_library("test_support") {
"../public/test/dump_accessibility_test_helper.h",
"../public/test/fake_download_item.cc",
"../public/test/fake_download_item.h",
+ "../public/test/fake_frame_widget.cc",
+ "../public/test/fake_frame_widget.h",
"../public/test/fake_local_frame.cc",
"../public/test/fake_local_frame.h",
"../public/test/fake_remote_frame.cc",
@@ -241,8 +243,6 @@ jumbo_static_library("test_support") {
"../public/test/web_contents_tester.h",
"../public/test/web_ui_browsertest_util.cc",
"../public/test/web_ui_browsertest_util.h",
- "appcache_test_helper.cc",
- "appcache_test_helper.h",
"content_browser_sanity_checker.cc",
"content_browser_sanity_checker.h",
"content_test_suite.cc",
@@ -287,8 +287,6 @@ jumbo_static_library("test_support") {
"mock_render_widget_host_delegate.h",
"mock_ssl_host_state_delegate.cc",
"mock_ssl_host_state_delegate.h",
- "mock_widget_impl.cc",
- "mock_widget_impl.h",
"mock_widget_input_handler.cc",
"mock_widget_input_handler.h",
"navigation_simulator_impl.cc",
@@ -381,10 +379,10 @@ jumbo_static_library("test_support") {
"//components/viz/host",
"//content/app:for_content_tests",
"//content/browser:for_content_tests",
- "//content/browser/speech/proto",
"//content/child:for_content_tests",
"//content/gpu",
"//content/public/browser",
+ "//content/public/browser:proto",
"//content/public/child",
"//content/public/common",
"//content/public/common:client_hints_mojom",
@@ -604,8 +602,9 @@ jumbo_static_library("test_support") {
if (is_fuchsia) {
group("fuchsia_telemetry_gpu_integration_test") {
testonly = true
- deps = [
+ data_deps = [
":telemetry_gpu_integration_test_scripts_only",
+ ":telemetry_gpu_integration_test_support",
"//fuchsia/engine:web_engine_runner",
"//fuchsia/engine:web_engine_shell",
]
@@ -621,12 +620,59 @@ group("telemetry_gpu_integration_test_scripts_only") {
data = [
"//content/test/gpu/",
"//testing/scripts/run_isolated_script_test.py",
- "//testing/scripts/common.py",
- "//testing/xvfb.py",
"//testing/test_env.py",
]
}
+group("telemetry_gpu_integration_test_support") {
+ testonly = true
+ data = [
+ "//content/test/gpu/",
+ "//content/test/data/gpu/",
+
+ # For the Maps performance test. Include the entire directory to
+ # avoid having to update this BUILD.gn file if more files are
+ # added in the future.
+ "//tools/perf/page_sets/maps_perf_test/",
+
+ # For depth_capture
+ "//content/test/data/media/depth_stream_test_utilities.js",
+ "//content/test/data/media/getusermedia-depth-capture.html",
+ "//content/test/data/media/webrtc_test_utilities.js",
+
+ # For GpuProcess.video
+ "//content/test/data/media/bear.ogv",
+
+ # For webgl_conformance
+ "//third_party/webgl/",
+ "//content/test/gpu/run_gpu_integration_test.py",
+
+ # For pixel_test and trace_test
+ "//media/test/data/four-colors.mp4",
+ "//media/test/data/four-colors-aspect-4x3.mp4",
+ "//media/test/data/four-colors-rot-90.mp4",
+ "//media/test/data/four-colors-rot-180.mp4",
+ "//media/test/data/four-colors-rot-270.mp4",
+ "//media/test/data/four-colors-vp9.webm",
+ "//media/test/data/four-colors-vp9-i420a.webm",
+
+ # For power
+ "//media/test/data/bear-1280x720.mp4",
+
+ # For Skia Gold pixel test functionality.
+ "//build/skia_gold_common/",
+
+ # For isolate contract.
+ "//testing/scripts/gpu_integration_test_adapter.py",
+ "//testing/scripts/run_gpu_integration_test_as_googletest.py",
+ ]
+
+ data_deps = [
+ # For anything using Skia Gold (pixel, maps).
+ "//ui/base:goldctl",
+ ]
+}
+
# browsertest_support can be used by targets that run content_shell based
# browser tests.
jumbo_static_library("browsertest_support") {
@@ -687,6 +733,10 @@ jumbo_static_library("browsertest_support") {
deps += [ "//ui/views" ]
}
+ if (is_mac) {
+ deps += [ "//ui/base/mojom" ]
+ }
+
configs += [ "//v8:external_startup_data" ]
}
@@ -881,12 +931,14 @@ test("content_browsertests") {
"../browser/conversions/conversion_internals_browsertest.cc",
"../browser/conversions/conversion_registration_browsertest.cc",
"../browser/conversions/conversions_browsertest.cc",
+ "../browser/conversions/conversions_origin_trial_browsertest.cc",
"../browser/conversions/impression_declaration_browsertest.cc",
"../browser/cross_origin_opener_policy_browsertest.cc",
"../browser/cross_site_transfer_browsertest.cc",
"../browser/data_decoder_browsertest.cc",
"../browser/database_browsertest.cc",
"../browser/device_sensors/device_sensor_browsertest.cc",
+ "../browser/devtools/devtools_issue_storage_browsertest.cc",
"../browser/devtools/devtools_video_consumer_browsertest.cc",
"../browser/devtools/protocol/devtools_protocol_browsertest.cc",
"../browser/devtools/protocol/devtools_protocol_test_support.cc",
@@ -978,6 +1030,7 @@ test("content_browsertests") {
"../browser/origin_trials/origin_trials_browsertest.cc",
"../browser/payments/payment_app_browsertest.cc",
"../browser/performance_memory_browsertest.cc",
+ "../browser/picture_in_picture/picture_in_picture_content_browsertest.cc",
"../browser/pointer_lock_browsertest.cc",
"../browser/pointer_lock_browsertest.h",
"../browser/pointer_lock_browsertest_mac.mm",
@@ -1008,6 +1061,7 @@ test("content_browsertests") {
"../browser/renderer_host/render_view_host_browsertest.cc",
"../browser/renderer_host/render_widget_host_browsertest.cc",
"../browser/renderer_host/render_widget_host_view_aura_browsertest.cc",
+ "../browser/renderer_host/render_widget_host_view_aura_vk_browsertest.cc",
"../browser/renderer_host/render_widget_host_view_browsertest.cc",
"../browser/renderer_host/render_widget_host_view_child_frame_browsertest.cc",
"../browser/renderer_host/render_widget_host_view_mac_browsertest.mm",
@@ -1044,6 +1098,7 @@ test("content_browsertests") {
"../browser/tracing/tracing_controller_browsertest.cc",
"../browser/utility_process_host_browsertest.cc",
"../browser/vibration_browsertest.cc",
+ "../browser/web_contents/file_chooser_impl_browsertest.cc",
"../browser/web_contents/opened_by_dom_browsertest.cc",
"../browser/web_contents/web_contents_impl_browsertest.cc",
"../browser/web_contents/web_contents_observer_browsertest.cc",
@@ -1212,11 +1267,13 @@ test("content_browsertests") {
"//third_party/mesa_headers",
"//third_party/re2",
"//third_party/zlib",
- "//ui/accessibility",
+ "//ui/accessibility:ax_base",
"//ui/accessibility:ax_enums_mojo",
"//ui/base:test_support",
"//ui/base/clipboard",
"//ui/base/ime",
+ "//ui/base/ime/init",
+ "//ui/base/ime/mojom",
"//ui/compositor",
"//ui/display",
"//ui/events:test_support",
@@ -1332,11 +1389,10 @@ test("content_browsertests") {
if (is_linux) {
sources += [
"../browser/utility_process_sandbox_browsertest.cc",
- "../zygote/zygote_browsertest.cc",
+ "../browser/zygote_host/zygote_browsertest.cc",
]
deps += [
"//services/service_manager/tests:interfaces",
- "//services/service_manager/zygote",
"//ui/gfx:test_support",
]
@@ -1397,7 +1453,7 @@ test("content_browsertests") {
"../browser/storage_service_sandbox_browsertest.cc",
"../browser/zoom_browsertest.cc",
]
- deps += [ "//content/browser/speech/proto" ]
+ deps += [ "//content/public/browser:proto" ]
}
if (is_posix) {
deps += [ "//services/tracing:test_utils" ]
@@ -1421,7 +1477,9 @@ test("content_browsertests") {
if (is_mac) {
sources += [
+ "../browser/accessibility/accessibility_tree_formatter_mac_browsertest.mm",
"../browser/accessibility/browser_accessibility_cocoa_browsertest.mm",
+ "../browser/accessibility/hit_testing_mac_browsertest.mm",
]
deps += [
"//content/shell:content_shell",
@@ -1466,6 +1524,21 @@ test("content_browsertests") {
data_deps += [ "//ppapi:ppapi_tests" ]
}
+ if ((is_win || is_chromeos || is_linux) && !is_tsan) {
+ # NOTE: We don't bother to build these tests when TSan is enabled, because
+ # they can't properly launch a child content_shell in that environment.
+ sources += [ "../browser/launch_as_mojo_client_browsertest.cc" ]
+ deps += [
+ "//content/shell:shell_controller_mojom",
+ "//mojo/public/cpp/platform",
+ "//mojo/public/mojom/base",
+ ]
+ data_deps += [
+ "//content/shell:content_shell",
+ "//mojo/core:shared_library",
+ ]
+ }
+
if (!is_chrome_branded) {
# These tests depend on single process mode, which is disabled
# in official builds.
@@ -1496,6 +1569,7 @@ test("content_browsertests") {
"../browser/renderer_host/input/event_latency_aura_browsertest.cc",
"../browser/renderer_host/input/touch_selection_controller_client_aura_browsertest.cc",
"../browser/renderer_host/render_widget_host_view_aura_browsertest.cc",
+ "../browser/renderer_host/render_widget_host_view_aura_vk_browsertest.cc",
"../browser/web_contents/web_contents_view_aura_browsertest.cc",
]
}
@@ -1539,6 +1613,7 @@ test("content_unittests") {
defines = []
sources = [
+ "../browser/accessibility/accessibility_tree_formatter_base_unittest.cc",
"../browser/accessibility/browser_accessibility_mac_unittest.mm",
"../browser/accessibility/browser_accessibility_manager_unittest.cc",
"../browser/accessibility/browser_accessibility_manager_win_unittest.cc",
@@ -1559,6 +1634,8 @@ test("content_unittests") {
"../browser/appcache/appcache_service_unittest.cc",
"../browser/appcache/appcache_storage_impl_unittest.cc",
"../browser/appcache/appcache_storage_unittest.cc",
+ "../browser/appcache/appcache_test_helper.cc",
+ "../browser/appcache/appcache_test_helper.h",
"../browser/appcache/appcache_unittest.cc",
"../browser/appcache/appcache_update_job_unittest.cc",
"../browser/appcache/chrome_appcache_service_unittest.cc",
@@ -1610,7 +1687,6 @@ test("content_unittests") {
"../browser/cache_storage/cache_storage_cache_unittest.cc",
"../browser/cache_storage/cache_storage_index_unittest.cc",
"../browser/cache_storage/cache_storage_manager_unittest.cc",
- "../browser/cache_storage/cache_storage_operation_unittest.cc",
"../browser/cache_storage/cache_storage_scheduler_unittest.cc",
"../browser/child_process_security_policy_unittest.cc",
"../browser/child_process_task_port_provider_mac_unittest.cc",
@@ -1726,6 +1802,7 @@ test("content_unittests") {
"../browser/native_file_system/native_file_system_manager_impl_unittest.cc",
"../browser/native_io/native_io_context_unittest.cc",
"../browser/net/cross_origin_embedder_policy_reporter_unittest.cc",
+ "../browser/net/cross_origin_opener_policy_reporter_unittest.cc",
"../browser/net/network_quality_observer_impl_unittest.cc",
"../browser/network_context_client_base_impl_unittest.cc",
"../browser/notification_service_impl_unittest.cc",
@@ -1835,9 +1912,9 @@ test("content_unittests") {
"../browser/service_worker/service_worker_database_unittest.cc",
"../browser/service_worker/service_worker_installed_scripts_sender_unittest.cc",
"../browser/service_worker/service_worker_job_unittest.cc",
+ "../browser/service_worker/service_worker_main_resource_loader_interceptor_unittest.cc",
+ "../browser/service_worker/service_worker_main_resource_loader_unittest.cc",
"../browser/service_worker/service_worker_metrics_unittest.cc",
- "../browser/service_worker/service_worker_navigation_loader_interceptor_unittest.cc",
- "../browser/service_worker/service_worker_navigation_loader_unittest.cc",
"../browser/service_worker/service_worker_new_script_loader_unittest.cc",
"../browser/service_worker/service_worker_object_host_unittest.cc",
"../browser/service_worker/service_worker_process_manager_unittest.cc",
@@ -1858,10 +1935,12 @@ test("content_unittests") {
"../browser/startup_task_runner_unittest.cc",
"../browser/storage_partition_impl_map_unittest.cc",
"../browser/storage_partition_impl_unittest.cc",
+ "../browser/tracing/background_reached_code_tracing_observer_android_unittest.cc",
"../browser/tracing/background_startup_tracing_observer_unittest.cc",
"../browser/tracing/background_tracing_config_unittest.cc",
"../browser/tracing/tracing_ui_unittest.cc",
"../browser/web_contents/aura/gesture_nav_simple_unittest.cc",
+ "../browser/web_contents/color_chooser_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",
@@ -1902,6 +1981,7 @@ test("content_unittests") {
"../child/dwrite_font_proxy/font_fallback_win_unittest.cc",
"../child/font_warmup_win_unittest.cc",
"../child/webthemeengine_impl_unittest.cc",
+ "../common/android/cpu_time_metrics_unittest.cc",
"../common/android/gin_java_bridge_value_unittest.cc",
"../common/background_fetch/background_fetch_mojom_traits_unittest.cc",
"../common/common_param_traits_unittest.cc",
@@ -1912,19 +1992,20 @@ test("content_unittests") {
"../common/input/actions_parser_unittest.cc",
"../common/input/event_with_latency_info_unittest.cc",
"../common/input/gesture_event_stream_validator_unittest.cc",
- "../common/input/synthetic_web_input_event_builders_unittest.cc",
"../common/input/touch_event_stream_validator_unittest.cc",
"../common/inter_process_time_ticks_converter_unittest.cc",
- "../common/mac/attributed_string_coder_unittest.mm",
+ "../common/mac/attributed_string_type_converters_unittest.mm",
"../common/origin_util_unittest.cc",
"../common/page_state_serialization_unittest.cc",
"../common/service_manager/service_manager_connection_impl_unittest.cc",
"../common/service_worker/service_worker_utils_unittest.cc",
+ "../common/state_transitions_unittest.cc",
"../common/tab_switch_time_recorder_unittest.cc",
"../common/unique_name_helper_unittest.cc",
"../common/user_agent_unittest.cc",
"../common/webplugininfo_unittest.cc",
"../public/browser/site_isolation_policy_unittest.cc",
+ "../public/browser/storage_partition_config_unittest.cc",
# TODO(jam): move these network/ tests to services/network.
"../public/common/drop_data_unittest.cc",
@@ -1936,6 +2017,7 @@ test("content_unittests") {
"../public/test/permission_type_unittest.cc",
"../public/test/referrer_unittest.cc",
"../public/test/test_utils_unittest.cc",
+ "../renderer/accessibility/ax_image_stopwords_unittest.cc",
"../renderer/categorized_worker_pool_unittest.cc",
"../renderer/child_frame_compositing_helper_unittest.cc",
"../renderer/frame_swap_message_queue_unittest.cc",
@@ -1948,7 +2030,6 @@ test("content_unittests") {
"../renderer/loader/test_request_peer.h",
"../renderer/loader/url_loader_client_impl_unittest.cc",
"../renderer/loader/web_url_loader_impl_unittest.cc",
- "../renderer/low_memory_mode_controller_unittest.cc",
"../renderer/media/audio/audio_output_ipc_factory_unittest.cc",
"../renderer/media/audio/audio_renderer_mixer_manager_unittest.cc",
"../renderer/media/audio/audio_renderer_sink_cache_unittest.cc",
@@ -1987,6 +2068,11 @@ test("content_unittests") {
configs += [ "//build/config/linux/atk" ]
}
+ if (is_android) {
+ sources +=
+ [ "../browser/accessibility/browser_accessibility_android_unittest.cc" ]
+ }
+
if (is_android || is_linux || is_mac || is_win || is_fuchsia) {
data = [
"$root_out_dir/content_shell.pak",
@@ -2038,11 +2124,11 @@ test("content_unittests") {
"//content/browser/devtools:devtools_background_services_proto",
"//content/browser/notifications:notification_proto",
"//content/browser/service_worker:service_worker_proto",
- "//content/browser/speech/proto",
"//content/child:for_content_tests",
"//content/common:buildflags",
"//content/gpu",
"//content/public/browser",
+ "//content/public/browser:proto",
"//content/public/child",
"//content/public/common",
"//content/public/common:service_names",
@@ -2188,7 +2274,7 @@ test("content_unittests") {
]
if (is_chromeos) {
sources += [
- "../browser/media/capture/lame_capture_overlay_chromeos_unittest.cc",
+ "../browser/media/capture/slow_capture_overlay_chromeos_unittest.cc",
]
}
}
@@ -2216,6 +2302,7 @@ test("content_unittests") {
"//third_party/mozilla",
"//third_party/ocmock",
"//ui/accelerated_widget_mac",
+ "//ui/base/mojom",
]
libs = [
"Carbon.framework",