blob: eef405948e9dcb16c3feee7f5ad26e87124ec087 [file] [log] [blame]
# Copyright 2014 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/cipd/cipd.gni")
import("//build/config/buildflags_paint_preview.gni")
import("//build/config/chrome_build.gni")
import("//build/config/chromebox_for_meetings/buildflags.gni")
import("//build/config/chromeos/ui_mode.gni")
import("//build/config/compiler/compiler.gni")
import("//build/config/features.gni")
import("//build/config/ui.gni")
import("//build/toolchain/toolchain.gni")
import("//chrome/browser/buildflags.gni")
import("//chrome/browser/downgrade/buildflags.gni")
import("//chrome/browser/page_load_metrics/integration_tests/jsdeps.gni")
import("//chrome/browser/page_load_metrics/integration_tests/sources.gni")
import(
"//chrome/browser/sync/test/integration/sync_integration_tests_sources.gni")
import("//chrome/common/features.gni")
import("//chrome/test/base/js2gtest.gni")
import("//chrome/test/include_js_tests.gni")
import("//chrome/version.gni")
import("//chromeos/ash/components/assistant/assistant.gni")
import("//components/captive_portal/core/features.gni")
import("//components/exo/buildflags.gni")
import("//components/feed/features.gni")
import("//components/gwp_asan/buildflags/buildflags.gni")
import("//components/nacl/features.gni")
import("//components/offline_pages/buildflags/features.gni")
import("//components/optimization_guide/features.gni")
import("//components/os_crypt/features.gni")
import("//components/safe_browsing/buildflags.gni")
import("//components/services/screen_ai/buildflags/features.gni")
import("//components/signin/features.gni")
import("//components/soda/buildflags.gni")
import("//components/spellcheck/spellcheck_build_features.gni")
import("//crypto/features.gni")
import("//extensions/buildflags/buildflags.gni")
import("//mojo/public/tools/bindings/mojom.gni")
import("//net/features.gni")
import("//pdf/features.gni")
import("//ppapi/buildflags/buildflags.gni")
import("//printing/buildflags/buildflags.gni")
import("//rlz/buildflags/buildflags.gni")
import("//testing/libfuzzer/fuzzer_test.gni")
import("//testing/test.gni")
import("//third_party/protobuf/proto_library.gni")
import("//third_party/widevine/cdm/widevine.gni")
import("//ui/base/ui_features.gni")
import("//ui/gl/features.gni")
import("//ui/views/features.gni")
import("//ui/webui/webui_features.gni")
import("//v8/gni/v8.gni")
assert(!is_ios, "Chromium/iOS shouldn't use anything in //chrome")
if (is_android) {
import("//build/config/android/rules.gni")
import("//chrome/android/features/dev_ui/dev_ui_module.gni")
import("//tools/perf/chrome_telemetry_build/android_browser_types.gni")
import("//tools/v8_context_snapshot/v8_context_snapshot.gni")
}
# This target exists to reference other test executables to bring these files
# into the build.
group("test") {
testonly = true
}
if (is_android) {
android_library("test_support_java") {
testonly = true
deps = [
"//base:jni_java",
"//chrome/android:chrome_all_java",
"//chrome/browser/feedback/android:java",
"//chrome/browser/profiles/android:java",
"//components/autofill/android:autofill_java",
"//components/payments/content/android:java",
"//components/payments/mojom:mojom_java",
"//content/public/android:content_java",
"//third_party/androidx:androidx_annotation_annotation_java",
"//third_party/blink/public/mojom:android_mojo_bindings_java",
]
sources = [
"android/test_support/src/org/chromium/chrome/test_support/FamilyInfoFeedbackSourceTestBridge.java",
"android/test_support/src/org/chromium/chrome/test_support/PaymentRequestTestBridge.java",
"android/test_support/src/org/chromium/chrome/test_support/ToolbarManagerTestHelper.java",
]
}
generate_jni("test_support_jni_headers") {
testonly = true
sources = [
"android/test_support/src/org/chromium/chrome/test_support/FamilyInfoFeedbackSourceTestBridge.java",
"android/test_support/src/org/chromium/chrome/test_support/PaymentRequestTestBridge.java",
"android/test_support/src/org/chromium/chrome/test_support/ToolbarManagerTestHelper.java",
]
}
}
# Use a static library here because many test binaries depend on this but don't
# require many files from it. This makes linking more efficient.
static_library("test_support") {
defines = []
deps = []
testonly = true
sources = [
"../browser/autofill/autofill_uitest_util.cc",
"../browser/autofill/autofill_uitest_util.h",
"../browser/autofill/automated_tests/cache_replayer.cc",
"../browser/autofill/automated_tests/cache_replayer.h",
"../browser/notifications/notification_display_service_tester.cc",
"../browser/notifications/notification_display_service_tester.h",
"../browser/notifications/stub_notification_platform_bridge.cc",
"../browser/notifications/stub_notification_platform_bridge.h",
"../browser/password_manager/password_manager_test_util.cc",
"../browser/password_manager/password_manager_test_util.h",
"../browser/permissions/crowd_deny_fake_safe_browsing_database_manager.cc",
"../browser/permissions/crowd_deny_fake_safe_browsing_database_manager.h",
"../browser/profiles/profile_test_util.cc",
"../browser/profiles/profile_test_util.h",
"../browser/search_engines/template_url_service_factory_test_util.cc",
"../browser/search_engines/template_url_service_factory_test_util.h",
"../browser/search_engines/template_url_service_test_util.cc",
"../browser/search_engines/template_url_service_test_util.h",
"../browser/signin/identity_test_environment_profile_adaptor.cc",
"../browser/signin/identity_test_environment_profile_adaptor.h",
"base/chrome_render_view_host_test_harness.cc",
"base/chrome_render_view_host_test_harness.h",
"base/chrome_render_view_test.cc",
"base/chrome_render_view_test.h",
"base/chrome_test_launcher.cc",
"base/chrome_test_launcher.h",
"base/chrome_test_suite.cc",
"base/chrome_test_suite.h",
"base/chrome_test_utils.cc",
"base/chrome_test_utils.h",
"base/chrome_unit_test_suite.cc",
"base/chrome_unit_test_suite.h",
"base/fake_profile_manager.cc",
"base/fake_profile_manager.h",
"base/find_result_waiter.cc",
"base/find_result_waiter.h",
"base/js_test_api.cc",
"base/js_test_api.h",
"base/profile_deletion_observer.cc",
"base/profile_deletion_observer.h",
"base/profile_waiter.cc",
"base/profile_waiter.h",
"base/scoped_browser_locale.cc",
"base/scoped_browser_locale.h",
"base/scoped_testing_local_state.cc",
"base/scoped_testing_local_state.h",
"base/search_test_utils.cc",
"base/search_test_utils.h",
"base/test_launcher_utils.cc",
"base/test_launcher_utils.h",
"base/test_switches.cc",
"base/test_switches.h",
"base/testing_browser_process.cc",
"base/testing_browser_process.h",
"base/testing_browser_process_platform_part.cc",
"base/testing_browser_process_platform_part.h",
"base/testing_profile.cc",
"base/testing_profile.h",
"base/testing_profile_key.cc",
"base/testing_profile_key.h",
"base/testing_profile_manager.cc",
"base/testing_profile_manager.h",
"base/tracing.cc",
"base/tracing.h",
"base/web_feature_histogram_tester.cc",
"base/web_feature_histogram_tester.h",
]
if (enable_extensions) {
sources += [
"../browser/apps/platform_apps/app_browsertest_util.cc",
"../browser/apps/platform_apps/app_browsertest_util.h",
]
deps += [
"//components/media_router/browser:test_support",
"//components/media_router/common:test_support",
"//extensions/renderer",
]
}
if (is_chrome_branded &&
(is_mac || is_win || (is_posix && !is_android && !is_chromeos_ash) ||
is_fuchsia)) {
sources += [ "base/scoped_channel_override.h" ]
if (is_mac) {
sources += [ "base/scoped_channel_override_mac.cc" ]
} else if (is_win) {
sources += [ "base/scoped_channel_override_win.cc" ]
} else if (is_posix && !is_android && !is_chromeos_ash) {
sources += [ "base/scoped_channel_override_posix.cc" ]
} else if (is_fuchsia) {
sources += [ "base/scoped_channel_override_fuchsia.cc" ]
}
}
configs += [ "//build/config:precompiled_headers" ]
deps += [
"//build:chromeos_buildflags",
"//chrome/app:command_ids",
"//chrome/common/search:mojo_bindings",
"//components/autofill/content/renderer:test_support",
"//components/safe_browsing/content/renderer/phishing_classifier:unit_tests_support",
"//components/security_interstitials/content:security_interstitial_page",
"//components/spellcheck/renderer",
"//components/user_education/common",
"//ui/webui",
]
# New deps should go in the non-iOS section below.
public_deps = [
"//base/test:test_support",
"//chrome:resources",
"//chrome:strings",
"//chrome/browser:browser_process",
"//chrome/browser:test_support",
"//chrome/browser/safe_browsing",
"//chrome/child",
"//chrome/common:non_code_constants",
"//chrome/common:test_support",
"//chrome/renderer",
"//chrome/utility",
"//components/autofill/core/browser:test_support",
"//components/bookmarks/test",
"//components/browsing_topics:test_support",
"//components/captive_portal/core:test_support",
"//components/consent_auditor:test_support",
"//components/content_settings/core/browser",
"//components/custom_handlers/",
"//components/device_reauth:test_support",
"//components/domain_reliability",
"//components/find_in_page",
"//components/gcm_driver:test_support",
"//components/gcm_driver/crypto:test_support",
"//components/gcm_driver/instance_id:test_support",
"//components/history/core/test",
"//components/infobars/core",
"//components/metrics:content",
"//components/metrics:test_support",
"//components/network_session_configurator/common",
"//components/network_time",
"//components/network_time:network_time_test_support",
"//components/omnibox/browser:test_support",
"//components/optimization_guide/content/browser:test_support",
"//components/os_crypt",
"//components/password_manager/core/browser:test_support",
"//components/payments/core:test_support",
"//components/performance_manager/test_support",
"//components/permissions",
"//components/permissions:test_support",
"//components/policy/core/browser",
"//components/policy/core/common:test_support",
"//components/prefs:test_support",
"//components/privacy_sandbox:test_support",
"//components/profile_metrics",
"//components/safe_browsing/core/browser/db:database_manager",
"//components/safe_browsing/core/browser/db:v4_test_util",
"//components/safe_browsing/core/browser/tailored_security_service:tailored_security_service",
"//components/search_engines:test_support",
"//components/sessions:test_support",
"//components/signin/public/base:test_support",
"//components/startup_metric_utils/browser",
"//components/subresource_filter/content/browser",
"//components/subresource_filter/content/browser:test_support",
"//components/subresource_filter/core/common",
"//components/sync:test_support",
"//components/sync_preferences",
"//components/sync_preferences:test_support",
"//components/sync_sessions:test_support",
"//components/sync_user_events:test_support",
"//components/update_client:test_support",
"//components/user_education/test",
"//components/user_prefs",
"//components/variations:test_support",
"//components/web_resource:test_support",
"//components/webdata_services",
"//components/zoom",
"//components/zoom:test_support",
"//content/public/app",
"//content/public/child",
"//content/public/common",
"//content/public/renderer",
"//content/public/utility",
"//content/test:test_support",
"//extensions/buildflags",
"//google_apis:test_support",
"//gpu/ipc/service",
"//ipc:test_support",
"//media:media_buildflags",
"//net",
"//net:test_support",
"//ppapi/buildflags",
"//printing/buildflags",
"//services/data_decoder/public/cpp:test_support",
"//services/device/public/cpp:test_support",
"//services/device/public/cpp/geolocation",
"//services/test/echo:lib",
"//skia",
"//sql",
"//sql:test_support",
"//testing/gmock",
"//testing/gtest",
"//third_party/leveldatabase",
"//ui/base",
"//ui/base:test_support",
"//ui/events:events_base",
"//ui/gfx:test_support",
"//ui/gl",
]
data_deps = []
if (enable_pdf) {
public_deps += [ "//pdf" ]
}
if (is_chromeos_lacros && also_build_ash_chrome) {
data_deps += [
"//chrome/test:test_ash_chrome(//build/toolchain/linux:ash_clang_x64)",
]
}
if (is_chromeos_ash && also_build_lacros_chrome) {
data_deps += [ "//chrome:chrome(//build/toolchain/linux:lacros_clang_x64)" ]
}
if (is_android) {
public_deps += [
":test_support_ui_android",
"//chrome:chrome_android_core",
"//components/feed/core/v2:feed_core_stubs",
]
if (enable_vr) {
public_deps += [ "//chrome/browser/android/vr:test_support" ]
# Add a dummy implementation of RegisterJni to satisfy the linker.
sources += [ "../browser/android/vr/register_jni_monochrome.cc" ]
}
allow_circular_includes_from = [ ":test_support_ui_android" ]
} else {
public_deps += [
# Android uses //chrome:chrome_android_core instead of the //chrome/app
# target.
":test_support_ui",
"//chrome/app:test_support",
"//chrome/browser:test_support",
"//chrome/browser/web_applications",
"//components/crx_file",
"//components/keep_alive_registry",
"//components/pref_registry",
"//components/services/app_service/public/cpp:test_support",
"//components/storage_monitor",
"//components/storage_monitor:test_support",
"//components/ukm:test_support",
"//components/ukm:ukm_test_helper",
"//components/web_modal",
"//ui/compositor:test_support",
"//ui/snapshot",
]
if (enable_extensions) {
public_deps += [
"//chrome/browser/extensions:test_support",
"//extensions/browser:test_support",
"//extensions/common:test_support",
]
}
deps += [ "//components/constrained_window" ]
sources += [
"../browser/badging/test_badge_manager_delegate.cc",
"../browser/badging/test_badge_manager_delegate.h",
"../browser/banners/test_app_banner_manager_desktop.cc",
"../browser/banners/test_app_banner_manager_desktop.h",
"../browser/renderer_context_menu/render_view_context_menu_test_util.cc",
"../browser/renderer_context_menu/render_view_context_menu_test_util.h",
"../browser/themes/test/theme_service_changed_waiter.cc",
"../browser/themes/test/theme_service_changed_waiter.h",
"../browser/ui/profile_ui_test_utils.h",
"../browser/ui/tabs/pinned_tab_test_utils.cc",
"../browser/ui/tabs/pinned_tab_test_utils.h",
"../browser/ui/test/test_browser_ui.cc",
"../browser/ui/test/test_browser_ui.h",
"../test/base/browser_with_test_window_test.cc",
"../test/base/browser_with_test_window_test.h",
"base/dialog_test_browser_window.cc",
"base/dialog_test_browser_window.h",
"base/test_browser_window.cc",
"base/test_browser_window.h",
]
allow_circular_includes_from = [ ":test_support_ui" ]
}
if (use_nss_certs) {
public_configs = [ "//build/config/linux/nss" ]
}
if (is_mac) {
sources += [
"//chrome/app/chrome_crash_reporter_client.cc",
"//chrome/app/chrome_crash_reporter_client_mac.mm",
"base/launchservices_utils_mac.h",
"base/launchservices_utils_mac.mm",
"base/scoped_bundle_swizzler_mac.h",
"base/scoped_bundle_swizzler_mac.mm",
]
deps += [
"//build:branding_buildflags",
"//chrome/app_shim",
"//components/upload_list",
]
public_deps += [
"//components/crash/core/app",
"//third_party/breakpad",
]
}
if (is_win) {
sources += [
"../browser/webshare/win/fake_buffer.cc",
"../browser/webshare/win/fake_buffer.h",
"../browser/webshare/win/fake_data_transfer_manager.cc",
"../browser/webshare/win/fake_data_transfer_manager.h",
"../browser/webshare/win/fake_data_transfer_manager_interop.cc",
"../browser/webshare/win/fake_data_transfer_manager_interop.h",
"../browser/webshare/win/fake_data_writer_factory.cc",
"../browser/webshare/win/fake_data_writer_factory.h",
"../browser/webshare/win/fake_iasync_operation_with_progress.h",
"../browser/webshare/win/fake_random_access_stream.cc",
"../browser/webshare/win/fake_random_access_stream.h",
"../browser/webshare/win/fake_storage_file_statics.cc",
"../browser/webshare/win/fake_storage_file_statics.h",
"../browser/webshare/win/fake_uri_runtime_class_factory.cc",
"../browser/webshare/win/fake_uri_runtime_class_factory.h",
"../browser/webshare/win/scoped_fake_data_transfer_manager_interop.cc",
"../browser/webshare/win/scoped_fake_data_transfer_manager_interop.h",
"../browser/webshare/win/scoped_share_operation_fake_components.cc",
"../browser/webshare/win/scoped_share_operation_fake_components.h",
"//chrome/app/chrome_crash_reporter_client_win.cc",
"base/process_inspector_win.cc",
"base/process_inspector_win.h",
"base/process_lineage_win.cc",
"base/process_lineage_win.h",
]
deps += [ "//chrome/chrome_elf:constants" ]
public_deps += [
"//chrome/chrome_elf:crash",
"//chrome/install_static/test:test_support",
"//components/crash/core/app",
"//third_party/wtl",
]
libs = [ "runtimeobject.lib" ]
}
if (is_chromeos) {
sources += [
"../browser/certificate_provider/test_certificate_provider_extension.cc",
"../browser/certificate_provider/test_certificate_provider_extension.h",
"../browser/ui/views/frame/browser_non_client_frame_view_chromeos_test_utils.cc",
"../browser/ui/views/frame/browser_non_client_frame_view_chromeos_test_utils.h",
"../browser/ui/views/frame/immersive_mode_tester.cc",
"../browser/ui/views/frame/immersive_mode_tester.h",
]
deps += [ "//chromeos/dbus/constants" ]
}
if (is_chromeos) {
sources += [
"../browser/extensions/policy_test_utils.cc",
"../browser/extensions/policy_test_utils.h",
]
}
if (is_chromeos_ash) {
sources += [
"../browser/ash/accessibility/speech_monitor.cc",
"../browser/ash/accessibility/speech_monitor.h",
"../browser/ash/arc/tracing/arc_app_performance_tracing_test_helper.cc",
"../browser/ash/arc/tracing/arc_app_performance_tracing_test_helper.h",
"../browser/ash/child_accounts/child_account_test_utils.cc",
"../browser/ash/child_accounts/child_account_test_utils.h",
"../browser/ash/crosapi/metrics_reporting_ash_test_helper.cc",
"../browser/ash/crosapi/metrics_reporting_ash_test_helper.h",
"../browser/ash/crosapi/test_crosapi_dependency_registry.cc",
"../browser/ash/crosapi/test_crosapi_dependency_registry.h",
"../browser/ash/file_manager/file_manager_test_util.cc",
"../browser/ash/file_manager/file_manager_test_util.h",
"../browser/ash/login/test/device_state_mixin.cc",
"../browser/ash/login/test/device_state_mixin.h",
"../browser/ash/login/test/embedded_policy_test_server_mixin.cc",
"../browser/ash/login/test/embedded_policy_test_server_mixin.h",
"../browser/ash/login/test/fake_gaia_mixin.cc",
"../browser/ash/login/test/fake_gaia_mixin.h",
"../browser/ash/login/test/js_checker.cc",
"../browser/ash/login/test/js_checker.h",
"../browser/ash/login/test/local_state_mixin.cc",
"../browser/ash/login/test/local_state_mixin.h",
"../browser/ash/login/test/policy_test_server_constants.h",
"../browser/ash/login/test/scoped_policy_update.cc",
"../browser/ash/login/test/scoped_policy_update.h",
"../browser/ash/login/test/test_condition_waiter.h",
"../browser/ash/login/test/test_predicate_waiter.cc",
"../browser/ash/login/test/test_predicate_waiter.h",
"../browser/ash/login/users/avatar/fake_user_image_file_selector.cc",
"../browser/ash/login/users/avatar/fake_user_image_file_selector.h",
"../browser/ash/login/users/fake_chrome_user_manager.cc",
"../browser/ash/login/users/fake_chrome_user_manager.h",
"../browser/ash/policy/core/device_policy_cros_browser_test.cc",
"../browser/ash/policy/core/device_policy_cros_browser_test.h",
"../browser/ash/policy/core/device_policy_cros_test_helper.cc",
"../browser/ash/policy/core/device_policy_cros_test_helper.h",
"../browser/ash/policy/login/signin_profile_extensions_policy_test_base.cc",
"../browser/ash/policy/login/signin_profile_extensions_policy_test_base.h",
"../browser/ash/printing/history/test_print_job_database.cc",
"../browser/ash/printing/history/test_print_job_database.h",
"../browser/ash/printing/history/test_print_job_history_service_observer.cc",
"../browser/ash/printing/history/test_print_job_history_service_observer.h",
"../browser/ash/settings/device_settings_test_helper.cc",
"../browser/ash/settings/device_settings_test_helper.h",
"../browser/ash/settings/scoped_cros_settings_test_helper.cc",
"../browser/ash/settings/scoped_cros_settings_test_helper.h",
"../browser/chromeos/extensions/login_screen/login_screen_apitest_base.cc",
"../browser/chromeos/extensions/login_screen/login_screen_apitest_base.h",
"../browser/component_updater/fake_cros_component_manager.cc",
"../browser/component_updater/fake_cros_component_manager.h",
"../browser/ui/ash/accessibility/fake_accessibility_controller.cc",
"../browser/ui/ash/accessibility/fake_accessibility_controller.h",
"../browser/ui/ash/clipboard_history_test_util.cc",
"../browser/ui/ash/clipboard_history_test_util.h",
"../browser/ui/webui/chromeos/login/fake_app_launch_splash_screen_handler.cc",
"../browser/ui/webui/chromeos/login/fake_app_launch_splash_screen_handler.h",
"base/browser_process_platform_part_test_api_chromeos.cc",
"base/browser_process_platform_part_test_api_chromeos.h",
"base/chromeos/ash_browser_test_starter.cc",
"base/chromeos/ash_browser_test_starter.h",
# Only used for Chromevox tests, so only included on Chrome OS.
"base/extension_js_browser_test.cc",
"base/extension_js_browser_test.h",
]
public_deps += [
"//ash",
"//ash:test_support",
"//ash/components/settings",
"//ash/components/tpm",
"//ash/constants",
"//ash/public/cpp:test_support",
"//chrome/browser/ash",
"//chrome/browser/ash/system_web_apps",
"//chromeos/ash/components/account_manager",
"//chromeos/ash/components/dbus/session_manager",
"//chromeos/ash/components/dbus/userdataauth",
"//chromeos/ash/components/install_attributes:test_support",
"//chromeos/dbus/tpm_manager",
"//chromeos/login/login_state",
"//components/exo",
"//components/ownership",
"//components/user_manager:test_support",
"//ui/aura",
"//ui/aura:test_support",
"//ui/base/ime/init",
"//ui/chromeos/resources:resources_grit",
]
deps += [
"//ash/constants",
"//chrome/browser/ash:print_job_info_proto",
"//chrome/browser/ash/crosapi",
"//chrome/browser/ash/system_web_apps/test_support",
"//chrome/browser/chromeos",
"//chrome/browser/ui/ash/system_web_apps",
"//chromeos/ash/components/attestation:test_support",
"//chromeos/ash/components/cryptohome",
"//chromeos/ash/components/dbus",
"//chromeos/ash/components/dbus/concierge",
"//chromeos/dbus/power",
"//chromeos/system",
"//components/policy/test_support",
"//google_apis",
"//google_apis:test_support",
"//net:test_support",
]
}
if (is_chromeos_lacros) {
public_deps += [
"//chrome/browser:dlp_policy_event_proto",
"//components/reporting/client:report_queue",
"//components/reporting/client:test_support",
"//components/reporting/storage:test_support",
"//components/reporting/util:test_callbacks_support",
]
deps += [
"//chromeos/lacros",
"//chromeos/lacros:test_support",
"//chromeos/services/machine_learning/public/cpp:stub",
"//chromeos/startup",
"//chromeos/ui/base",
"//components/account_manager_core:test_support",
]
}
if (is_win || is_mac || is_linux || is_chromeos) {
public_deps += [
"//ui/base:pixel_diff_test_support",
"//ui/views:view_pixel_diff_test_support",
]
}
if (!is_fuchsia) {
# Crashes are handled by the platform.
public_deps += [ "//components/crash/core/app" ]
}
if (use_aura) {
sources += [
"base/test_browser_window_aura.cc",
"base/test_browser_window_aura.h",
]
deps += [
"//ui/aura:test_support",
"//ui/wm",
"//ui/wm/public",
]
}
if (toolkit_views) {
public_deps += [ "//ui/views:test_support" ]
sources += [
"../browser/password_manager/password_manager_uitest_util.cc",
"../browser/password_manager/password_manager_uitest_util.h",
"../browser/ui/chooser_bubble_testapi.h",
"../browser/ui/views/chooser_bubble_testapi_views.cc",
"../browser/ui/views/desktop_capture/desktop_media_picker_views_test_api.cc",
"../browser/ui/views/desktop_capture/desktop_media_picker_views_test_api.h",
"../browser/ui/views/media_router/app_menu_test_api.h",
"../browser/ui/views/media_router/app_menu_test_api_views.cc",
"../browser/ui/views/profiles/profile_picker_view_test_utils.cc",
"../browser/ui/views/web_apps/frame_toolbar/web_app_frame_toolbar_test_helper.cc",
"../browser/ui/views/web_apps/frame_toolbar/web_app_frame_toolbar_test_helper.h",
"base/test_theme_provider.cc",
"base/test_theme_provider.h",
"views/accessibility_checker.cc",
"views/accessibility_checker.h",
"views/chrome_test_views_delegate.h",
"views/chrome_test_widget.cc",
"views/chrome_test_widget.h",
"views/chrome_views_test_base.cc",
"views/chrome_views_test_base.h",
]
deps += [
"//chrome/browser/ui/color:mixers",
"//components/user_education/views",
]
}
if (enable_extensions) {
sources += [
"../browser/extensions/browsertest_util.cc",
"../browser/extensions/browsertest_util.h",
"../browser/extensions/extension_api_unittest.cc",
"../browser/extensions/extension_api_unittest.h",
"../browser/extensions/extension_apitest.cc",
"../browser/extensions/extension_apitest.h",
"../browser/extensions/extension_browsertest.cc",
"../browser/extensions/extension_browsertest.h",
"../browser/extensions/extension_function_test_utils.cc",
"../browser/extensions/extension_function_test_utils.h",
"../browser/extensions/mixin_based_extension_apitest.cc",
"../browser/extensions/mixin_based_extension_apitest.h",
"../browser/extensions/permissions_test_util.cc",
"../browser/extensions/permissions_test_util.h",
"../browser/extensions/test_extension_environment.cc",
"../browser/extensions/test_extension_environment.h",
"../browser/extensions/test_extension_prefs.cc",
"../browser/extensions/test_extension_prefs.h",
"../browser/policy/extension_force_install_mixin.cc",
"../browser/policy/extension_force_install_mixin.h",
"../browser/ui/web_applications/test/isolated_app_test_utils.cc",
"../browser/ui/web_applications/test/isolated_app_test_utils.h",
"../browser/ui/web_applications/test/ssl_test_utils.cc",
"../browser/ui/web_applications/test/ssl_test_utils.h",
"../browser/ui/web_applications/test/test_server_redirect_handle.cc",
"../browser/ui/web_applications/test/test_server_redirect_handle.h",
"../browser/ui/web_applications/test/web_app_browsertest_util.cc",
"../browser/ui/web_applications/test/web_app_browsertest_util.h",
"../browser/ui/web_applications/web_app_controller_browsertest.cc",
"../browser/ui/web_applications/web_app_controller_browsertest.h",
]
public_deps += [
"//apps:test_support",
"//chrome/common/extensions/api",
"//components/guest_view/browser:test_support",
"//extensions:test_support",
"//google_apis/common:test_support",
"//google_apis/drive",
]
deps += [
"//build:chromeos_buildflags",
"//chrome/browser/web_applications:web_applications_test_support",
"//components/webapps/browser",
"//third_party/zlib/google:zip",
]
}
if (enable_message_center) {
public_deps += [ "//ui/message_center:test_support" ]
}
if (enable_offline_pages) {
public_deps += [ "//components/offline_pages/core:test_support" ]
}
if (enable_ppapi) {
public_deps += [ "//ppapi/shared_impl" ]
}
}
if (is_android) {
template("telemetry_gpu_integration_test_android_template") {
forward_variables_from(invoker, [ "telemetry_target_suffix" ])
group(target_name) {
testonly = true
data_deps = [
"//content/test:telemetry_gpu_integration_test_support",
"//tools/perf/chrome_telemetry_build:telemetry_chrome_test${telemetry_target_suffix}",
]
}
}
foreach(_target_suffix, telemetry_android_browser_target_suffixes) {
telemetry_gpu_integration_test_android_template(
"telemetry_gpu_integration_test${_target_suffix}") {
telemetry_target_suffix = _target_suffix
}
}
} else if (is_fuchsia) {
group("telemetry_gpu_integration_test_fuchsia") {
testonly = true
data = [ "//content/test/gpu/run_gpu_integration_test_fuchsia.py" ]
data_deps = [
"//content/test:fuchsia_telemetry_test_data",
"//content/test:telemetry_gpu_integration_test_support",
"//tools/perf/chrome_telemetry_build:telemetry_chrome_test",
]
}
} else {
group("telemetry_gpu_integration_test") {
testonly = true
data_deps = [
"//content/test:telemetry_gpu_integration_test_support",
"//tools/perf/chrome_telemetry_build:telemetry_chrome_test",
]
}
}
if (is_win) {
source_set("credential_provider_test_utils") {
testonly = true
sources = [
"../browser/ui/startup/credential_provider_signin_dialog_win_test_data.cc",
"../browser/ui/startup/credential_provider_signin_dialog_win_test_data.h",
]
deps = [
"//base",
"//chrome/credential_provider/common:common_constants",
]
}
}
if (is_android) {
test("android_browsertests") {
configs += [ "//build/config:precompiled_headers" ]
defines = [
"HAS_OUT_OF_PROC_TEST_RUNNER",
"CHROME_VERSION_MAJOR=" + chrome_version_major,
]
use_default_launcher = false
android_manifest =
"${target_gen_dir}/android_browsertests_manifest/AndroidManifest.xml"
android_manifest_dep = ":android_browsertests_manifest"
deps = [
":android_browsertests_assets",
":android_browsertests_java",
":browser_tests_runner",
":sync_integration_test_support",
":sync_integration_test_support_java",
":test_support",
":test_support_java",
":test_support_jni_headers",
":test_support_ui_android",
"//build:chromeos_buildflags",
"//chrome:chrome_android_core",
"//chrome/android:delegate_public_impl_java",
"//chrome/browser/browsing_data:constants",
"//chrome/browser/dips:browser_tests",
"//chrome/browser/flags:flags_android",
"//chrome/browser/metrics:test_support",
"//chrome/browser/payments:browser_tests",
"//chrome/browser/policy:browser_tests",
"//chrome/browser/policy:test_support",
"//chrome/browser/preloading/prerender:browser_tests",
"//chrome/browser/privacy_budget:browser_tests",
"//chrome/browser/profiling_host:profiling_browsertests",
"//chrome/browser/webaudio:browser_tests",
"//components/blocked_content",
"//components/browser_ui/widget/android:java",
"//components/commerce/core:commerce_heuristics_data",
"//components/commerce/core:feature_list",
"//components/commerce/core:persisted_state_db_content_proto",
"//components/content_settings/browser:browser",
"//components/crash/android:crashpad_main",
"//components/infobars/content",
"//components/metrics/demographics",
"//components/metrics/demographics:test_support",
"//components/metrics_services_manager",
"//components/optimization_guide/core",
"//components/page_load_metrics/browser:test_support",
"//components/page_load_metrics/browser/observers/ad_metrics:test_support",
"//components/safe_browsing/core/browser/db:v4_database",
"//components/safe_browsing/core/common",
"//components/security_interstitials/core:unsafe_resource",
"//components/security_state/content/android",
"//components/session_proto_db:session_proto_db",
"//components/signin/public/identity_manager",
"//components/signin/public/identity_manager:test_support",
"//components/subresource_filter/core/browser:test_support",
"//components/subresource_filter/core/common:test_support",
"//components/sync:test_support",
"//components/ukm:test_support",
"//components/ukm:ukm_test_helper",
"//components/ukm/content",
"//components/unified_consent",
"//components/variations/service",
"//components/webapps/browser",
# TODO(crbug.com/961849): This is needed for ShellManager which is what
# the ChromeBrowserTestsActivity is using to build the java UI. It's
# likely we want to replace it with something new that uses ChromeWindow
# and CompositorViewHolder instead.
"//content/shell:content_shell_lib",
"//content/test:android_test_message_pump_support",
"//testing/android/native_test:native_test_support",
]
sources = [
"../browser/android/customtabs/custom_tabs_browsertest.cc",
"../browser/android/historical_tab_saver_browsertest.cc",
"../browser/android/webapk/webapk_icon_hasher_browsertest.cc",
"../browser/autofill/android/save_update_address_profile_flow_manager_browsertest.cc",
"../browser/browsing_data/access_context_audit_browsertest.cc",
"../browser/browsing_data/browsing_data_remover_browsertest_base.cc",
"../browser/browsing_data/browsing_data_remover_browsertest_base.h",
"../browser/browsing_data/chrome_browsing_data_lifetime_manager_browsertest.cc",
"../browser/engagement/important_sites_util_browsertest.cc",
"../browser/fast_checkout/fast_checkout_tab_helper_browsertest.cc",
"../browser/metrics/metrics_log_browsertest.cc",
"../browser/metrics/metrics_service_user_demographics_browsertest.cc",
"../browser/metrics/sampled_out_client_id_saved_browsertest.cc",
"../browser/metrics/startup_metrics_browsertest.cc",
"../browser/metrics/ukm_browsertest.cc",
"../browser/net/android_network_service_browsertest.cc",
"../browser/net/cert_verifier_service_browsertest.cc",
"../browser/net/cert_verify_proc_browsertest.cc",
"../browser/page_load_metrics/observers/ad_metrics/ad_density_intervention_android_browsertest.cc",
"../browser/password_manager/android/password_manager_android_browsertest.cc",
"../browser/password_manager/passwords_navigation_observer.cc",
"../browser/password_manager/passwords_navigation_observer.h",
"../browser/policy/policy_prefs_browsertest.cc",
"../browser/preloading/prefetch/search_prefetch/search_preload_unified_browsertest.cc",
"../browser/profiles/profile_browsertest_android.cc",
"../browser/safe_browsing/client_side_detection_service_browsertest.cc",
"../browser/safe_browsing/test_safe_browsing_database_helper.cc",
"../browser/safe_browsing/test_safe_browsing_database_helper.h",
"../browser/ssl/chrome_security_state_client_browsertest.cc",
"../browser/ssl/crlset_browsertest.cc",
"../browser/subresource_filter/subresource_filter_browser_test_harness.cc",
"../browser/subresource_filter/subresource_filter_browser_test_harness.h",
"../browser/toolbar_manager_test_helper_android.cc",
"../browser/toolbar_manager_test_helper_android.h",
"../browser/ui/autofill/payments/offer_notification_controller_android_browsertest.cc",
"../browser/ui/webui/policy/policy_ui_browsertest.cc",
"../renderer/autofill/fake_mojo_password_manager_driver.cc",
"../renderer/autofill/fake_mojo_password_manager_driver.h",
"../renderer/autofill/fake_password_generation_driver.cc",
"../renderer/autofill/fake_password_generation_driver.h",
"../renderer/autofill/password_autofill_agent_browsertest.cc",
"../renderer/autofill/password_generation_agent_browsertest.cc",
"../renderer/autofill/password_generation_test_utils.cc",
"../renderer/autofill/password_generation_test_utils.h",
"../renderer/cart/commerce_hint_agent_browsertest.cc",
"../renderer/cart/commerce_hint_agent_renderer_browsertest.cc",
"../renderer/safe_browsing/phishing_classifier_browsertest.cc",
"android/browsertests_apk/android_browsertests_jni_onload.cc",
"base/android/android_browser_test_browsertest_android.cc",
]
deps += [
"//components/autofill/content/renderer:test_support",
"//components/browsing_data/core:core",
"//components/enterprise:enterprise",
"//components/enterprise:test_support",
"//components/invalidation/impl:test_support",
"//components/messages/android:android",
"//components/messages/android:feature_flags",
"//components/messages/android/test:test_support_cpp",
"//components/messages/android/test:test_support_java",
"//components/password_manager/content/browser:browser",
"//components/policy:chrome_settings_proto_generated_compile",
"//components/policy/core/browser:test_support",
"//components/safe_browsing/content/browser:client_side_detection",
"//components/safe_browsing/content/common:interfaces",
"//components/safe_browsing/content/renderer/phishing_classifier:phishing_classifier",
"//components/safe_browsing/core/common/fbs:client_model",
"//components/safe_browsing/core/common/proto:client_model_proto",
"//components/spellcheck:buildflags",
"//components/spellcheck/renderer:renderer",
"//components/user_manager:user_manager",
]
# Add unwind tables in android_browsertests apk to support enabling
# sampling profiler. The unwind tables are generated from debug info in the
# binary. Removing "default_symbols" and adding symbols config removes the
# "strip_debug" config that strips the debug info, on android_browsertests
# apk.
if (enable_arm_cfi_table) {
sources += [ "../common/profiler/thread_profiler_browsertest.cc" ]
deps += [
"//chrome/android/modules/stack_unwinder/internal:java",
"//chrome/android/modules/stack_unwinder/internal:stack_unwinder_for_testing",
]
configs -= [ "//build/config/compiler:default_symbols" ]
if (symbol_level == 2) {
configs += [ "//build/config/compiler:symbols" ]
} else {
configs += [ "//build/config/compiler:minimal_symbols" ]
}
add_unwind_tables_in_apk = true
}
if (enable_arcore) {
# If AR is supported, we should also include WebXR's AR enterprise policy
# browsertest. The test should not be enabled when AR features are not
# enabled, since we won't be able to distinguish whether the test cases
# are failing due to absence of AR, or due to an issue with propagating
# the enterprise policy setting.
sources += [ "../browser/android/vr/webxr_policy_browsertest.cc" ]
}
if (enable_feed_v2) {
sources += [ "../browser/feed/rss_links_fetcher_browsertest.cc" ]
deps += [
"//components/feed:feature_list",
"//components/feed/core/v2:feed_core_v2",
"//components/feed/core/v2:ios_shared",
"//components/feed/core/v2:test_helpers",
"//components/feed/mojom:mojo_bindings",
]
}
data = [
"$root_gen_dir/chrome/android/chrome_apk_paks/chrome_100_percent.pak",
"$root_gen_dir/chrome/android/chrome_apk_paks/locales/en-US.pak",
"$root_gen_dir/chrome/android/chrome_apk_paks/resources.pak",
"$root_gen_dir/components/components_resources.pak",
"$root_gen_dir/components/dev_ui_components_resources.pak",
"$root_out_dir/browser_tests.pak",
"//components/test/data/ads_observer/",
"//components/test/data/payments/",
"//chrome/test/data/android/customtabs/",
"//chrome/test/data/banners/",
"//chrome/test/data/policy/",
"//chrome/test/data/ssl/",
"//content/test/data/",
]
if (dfmify_dev_ui) {
# If DevUI DFM is on, include Java classes and native resource split so
# that DevUI page tests would work.
deps += [
"//chrome/android/features/dev_ui:java",
"//chrome/android/modules/dev_ui/provider:java",
]
}
}
test("android_sync_integration_tests") {
configs += [ "//build/config:precompiled_headers" ]
defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
use_default_launcher = false
android_manifest =
"${target_gen_dir}/android_browsertests_manifest/AndroidManifest.xml"
android_manifest_dep = ":android_browsertests_manifest"
deps = [
":android_browsertests_assets",
":android_browsertests_java",
":browser_tests_runner",
":sync_integration_test_support",
":sync_integration_test_support_java",
":test_support",
":test_support_java",
":test_support_ui_android",
"//chrome:chrome_android_core",
"//chrome/android:delegate_public_impl_java",
"//components/bookmarks/browser",
"//components/sync:test_support",
"//components/sync_bookmarks",
"//components/sync_device_info:test_support",
"//components/undo",
"//content/test:android_test_message_pump_support",
"//testing/android/native_test:native_test_support",
]
sources = sync_integration_tests_sources +
[ "android/browsertests_apk/android_browsertests_jni_onload.cc" ]
data = [
"//chrome/test/data/sync/",
"$root_gen_dir/chrome/android/chrome_apk_paks/chrome_100_percent.pak",
"$root_gen_dir/chrome/android/chrome_apk_paks/locales/en-US.pak",
"$root_gen_dir/chrome/android/chrome_apk_paks/resources.pak",
"$root_gen_dir/components/components_resources.pak",
"$root_gen_dir/components/dev_ui_components_resources.pak",
]
}
static_library("test_support_ui_android") {
configs += [ "//build/config:precompiled_headers" ]
testonly = true
sources = [
"../browser/ssl/cert_verifier_platform_browser_test.cc",
"../browser/ssl/cert_verifier_platform_browser_test.h",
"base/android/android_browser_test.cc",
"base/android/android_browser_test.h",
]
public_deps = [ "//content/test:test_support" ]
deps = [
"//chrome/browser",
"//chrome/browser/ui",
"//content/public/browser",
]
}
android_assets("android_browsertests_assets") {
testonly = true
disable_compression = true
sources = []
deps = []
# These are grit() rules so they are in $root_gen_dir.
deps += [ "//components/resources" ]
sources += [
"$root_gen_dir/components/components_resources.pak",
"$root_gen_dir/components/dev_ui_components_resources.pak",
]
# These are repack() rules so they are in $root_out_dir.
deps += [ "//chrome:browser_tests_pak" ]
sources += [ "$root_out_dir/browser_tests.pak" ]
# These are assets rules so we can just depend on them.
deps += [
"//chrome/android:chrome_apk_pak_assets",
"//third_party/icu:icu_assets",
]
if (use_v8_context_snapshot) {
deps += [ "//tools/v8_context_snapshot:v8_context_snapshot_assets" ]
} else {
deps += [ "//v8:v8_external_startup_data_assets" ]
}
}
android_library("android_browsertests_java") {
testonly = true
deps = [
"//base:base_java",
"//base:base_java_test_support",
"//build/android/gtest_apk:native_test_instrumentation_test_runner_java",
"//chrome/android:base_module_java",
"//chrome/android:chrome_all_java",
"//chrome/browser/tabmodel:java",
"//components/crash/android:handler_java",
"//components/crash/android:java",
"//components/module_installer/android:module_installer_java",
"//content/public/android:content_java",
"//content/public/test/android:android_test_message_pump_support_java",
"//content/shell/android:content_shell_browsertests_java",
"//testing/android/native_test:native_test_java",
"//ui/android:ui_full_java",
]
sources = [
"android/browsertests_apk/src/org/chromium/android_browsertests_apk/ChromeBrowserTestsActivity.java",
"android/browsertests_apk/src/org/chromium/android_browsertests_apk/ChromeBrowserTestsApplication.java",
"android/browsertests_apk/src/org/chromium/android_browsertests_apk/ChromeBrowserTestsInstrumentationTestRunner.java",
]
}
jinja_template("android_browsertests_manifest") {
testonly = true
input = "//chrome/test/android/browsertests_apk/AndroidManifest.xml.jinja2"
output =
"${target_gen_dir}/android_browsertests_manifest/AndroidManifest.xml"
}
}
if (enable_pdf) {
source_set("pdf_extension_test_utils") {
testonly = true
sources = [
"../browser/pdf/pdf_extension_test_util.cc",
"../browser/pdf/pdf_extension_test_util.h",
]
deps = [
":test_support",
"//base",
]
}
}
static_library("browser_tests_runner") {
testonly = true
sources = []
deps = [
":test_support",
"//ui/gfx:gfx_switches", # Used by Fuchsia.
]
if (is_chromeos_ash) {
sources += [ "base/browser_tests_main_chromeos.cc" ]
} else {
sources += [ "base/browser_tests_main.cc" ]
}
if (is_win) {
deps += [ "//chrome/installer/util:strings" ]
}
if (is_android) {
deps += [ "//ui/compositor" ]
}
if (is_fuchsia) {
deps += [ "//ui/ozone:ozone_switches" ]
}
}
if (!is_android) {
static_library("webrtc_browser_tests_base") {
testonly = true
sources = [
"../browser/media/webrtc/test_stats_dictionary.cc",
"../browser/media/webrtc/test_stats_dictionary.h",
"../browser/media/webrtc/webrtc_browsertest_base.cc",
"../browser/media/webrtc/webrtc_browsertest_base.h",
"../browser/media/webrtc/webrtc_browsertest_common.cc",
"../browser/media/webrtc/webrtc_browsertest_common.h",
]
deps = [ ":test_support" ]
}
}
if (!is_android) {
test("browser_tests") {
use_xvfb = use_xvfb_in_this_config
configs += [ "//build/config:precompiled_headers" ]
configs += [
":disable_thinlto_cache_flags",
":pdb_larger_than_4gb",
]
defines = [
"HAS_OUT_OF_PROC_TEST_RUNNER",
"CHROME_VERSION_MAJOR=" + chrome_version_major,
]
deps = [
":browser_tests_runner",
":sync_integration_test_support",
":test_support",
":test_support_ui",
":webrtc_browser_tests_base",
"//base",
"//base:i18n",
"//base/allocator:buildflags",
"//base/test:test_support",
"//build:branding_buildflags",
"//build:chromeos_buildflags",
"//chrome:packed_resources",
"//chrome:resources",
"//chrome:strings",
"//chrome/app:command_ids",
"//chrome/app/vector_icons",
"//chrome/browser",
"//chrome/browser:browser_themes",
"//chrome/browser:buildflags",
"//chrome/browser:theme_properties",
"//chrome/browser/accessibility:test_support",
"//chrome/browser/apps/app_service:test_support",
"//chrome/browser/ash/system_web_apps/types:types",
"//chrome/browser/breadcrumbs:browser_tests",
"//chrome/browser/browsing_data:constants",
"//chrome/browser/devtools",
"//chrome/browser/devtools:test_support",
"//chrome/browser/dips:browser_tests",
"//chrome/browser/favicon",
"//chrome/browser/first_party_sets",
"//chrome/browser/image_decoder:browser_tests",
"//chrome/browser/media/router:media_router_feature",
"//chrome/browser/media/router:test_support",
"//chrome/browser/media/router/discovery/access_code:access_code_cast_feature",
"//chrome/browser/media/router/discovery/access_code:access_code_sink_service",
"//chrome/browser/metrics:test_support",
"//chrome/browser/notifications/scheduler:factory",
"//chrome/browser/notifications/scheduler/public",
"//chrome/browser/notifications/scheduler/test:test_support",
"//chrome/browser/payments:browser_tests",
"//chrome/browser/persisted_state_db",
"//chrome/browser/policy:browser_tests",
"//chrome/browser/policy:test_support",
"//chrome/browser/preloading/prerender:browser_tests",
"//chrome/browser/privacy_budget:browser_tests",
"//chrome/browser/profiling_host:profiling_browsertests",
"//chrome/browser/resource_coordinator:tab_manager_features",
"//chrome/browser/resource_coordinator:tab_metrics_event_proto",
"//chrome/browser/safe_browsing:verdict_cache_manager_factory",
"//chrome/browser/segmentation_platform:test_utils",
"//chrome/browser/sharing/proto",
"//chrome/browser/ui/color:color_headers",
"//chrome/browser/ui/tabs:tab_enums",
"//chrome/browser/ui/web_applications:browser_tests",
"//chrome/browser/web_applications:browser_tests",
"//chrome/browser/web_applications:web_applications_test_support",
"//chrome/browser/web_applications/extensions",
"//chrome/browser/webaudio:browser_tests",
"//chrome/common:version_header",
"//chrome/common/privacy_budget:test_support",
"//chrome/renderer",
"//chrome/services/removable_storage_writer:lib",
"//chrome/test/data:web_ui_test_bindings",
"//chrome/test/data:webui_test_resources",
"//chrome/test/data/webui:resources_grit",
"//chrome/test/media_router/access_code_cast:access_code_cast_integration_base",
"//chrome/test/payments:test_support",
"//components/accuracy_tips",
"//components/autofill/content/browser:risk_proto",
"//components/autofill/content/browser:test_support",
"//components/autofill/content/common/mojom",
"//components/autofill/content/renderer:test_support",
"//components/autofill_assistant/browser/public:unit_test_support",
"//components/back_forward_cache",
"//components/background_fetch",
"//components/background_sync",
"//components/base32",
"//components/blocked_content",
"//components/bookmarks/browser",
"//components/bookmarks/common",
"//components/bookmarks/managed",
"//components/breadcrumbs/core:feature_flags",
"//components/browser_sync",
"//components/browsing_data/content",
"//components/browsing_data/content:test_support",
"//components/browsing_data/core",
"//components/browsing_topics",
"//components/captive_portal/content",
"//components/captive_portal/core",
"//components/captive_portal/core:buildflags",
"//components/captive_portal/core:test_support",
"//components/cast_channel",
"//components/cbor",
"//components/certificate_transparency",
"//components/certificate_transparency:proto",
"//components/commerce/core:cart_db_content_proto",
"//components/commerce/core:commerce_heuristics_data",
"//components/commerce/core:coupon_db_content_proto",
"//components/commerce/core:feature_list",
"//components/component_updater/installer_policies:installer_policies_no_content_deps",
"//components/constrained_window",
"//components/content_settings/browser",
"//components/content_settings/common:mojom",
"//components/cookie_config",
"//components/country_codes",
"//components/crash/content/browser/error_reporting:mock_crash_endpoint",
"//components/dom_distiller/content/browser",
"//components/dom_distiller/content/browser:test_support",
"//components/dom_distiller/content/renderer",
"//components/dom_distiller/core:test_support",
"//components/drive:test_support",
"//components/embedder_support",
"//components/embedder_support:browser_util",
"//components/enterprise",
"//components/enterprise:test_support",
"//components/enterprise/common/proto:connectors_proto",
"//components/error_page/content/browser",
"//components/favicon/content",
"//components/favicon/core",
"//components/feature_engagement/public",
"//components/feature_engagement/test:test_support",
"//components/flags_ui",
"//components/heavy_ad_intervention",
"//components/history/content/browser",
"//components/history/core/common",
"//components/history_clusters/core:core",
"//components/image_fetcher/core",
"//components/infobars/content",
"//components/invalidation/impl",
"//components/invalidation/impl:test_support",
"//components/javascript_dialogs",
"//components/language/core/browser",
"//components/language/core/common",
"//components/lens",
"//components/live_caption",
"//components/live_caption:constants",
"//components/lookalikes/core",
"//components/lookalikes/core:features",
"//components/memory_pressure",
"//components/memory_pressure:test_support",
"//components/metrics:content",
"//components/metrics:metrics",
"//components/metrics/demographics",
"//components/metrics/demographics:test_support",
"//components/metrics_services_manager",
"//components/nacl/common:buildflags",
"//components/navigation_metrics",
"//components/no_state_prefetch/browser",
"//components/no_state_prefetch/common",
"//components/no_state_prefetch/renderer",
"//components/offline_items_collection/core/test_support",
"//components/omnibox/browser:vector_icons",
"//components/optimization_guide/content/browser",
"//components/optimization_guide/content/mojom:mojo_interfaces",
"//components/optimization_guide/content/renderer",
"//components/optimization_guide/core",
"//components/optimization_guide/core:bloomfilter",
"//components/optimization_guide/core:prediction",
"//components/optimization_guide/core:test_support",
"//components/optimization_guide/proto:optimization_guide_proto",
"//components/origin_trials:browser",
"//components/origin_trials/test",
"//components/page_load_metrics/browser",
"//components/page_load_metrics/browser:test_support",
"//components/page_load_metrics/browser/observers/ad_metrics",
"//components/page_load_metrics/browser/observers/ad_metrics:test_support",
"//components/page_load_metrics/common",
"//components/page_load_metrics/common:test_support",
"//components/password_manager/content/browser",
"//components/password_manager/core/browser:affiliation_proto",
"//components/password_manager/core/browser/form_parsing",
"//components/payments/content",
"//components/payments/content:utils",
"//components/performance_manager",
"//components/policy:chrome_settings_proto_generated_compile",
"//components/policy/core/browser:test_support",
"//components/policy/test_support",
"//components/privacy_sandbox",
"//components/privacy_sandbox:privacy_sandbox_prefs",
"//components/privacy_sandbox:test_support",
"//components/proxy_config",
"//components/reading_list/core",
"//components/reading_list/features:flags",
"//components/renderer_context_menu",
"//components/reputation/core",
"//components/reputation/core:proto",
"//components/resources",
"//components/safe_browsing:buildflags",
"//components/safe_browsing/content/browser",
"//components/safe_browsing/content/browser:client_side_detection",
"//components/safe_browsing/content/browser:safe_browsing_service",
"//components/safe_browsing/content/browser/password_protection",
"//components/safe_browsing/content/browser/password_protection:test_support",
"//components/safe_browsing/content/browser/web_ui",
"//components/safe_browsing/content/common:interfaces",
"//components/safe_browsing/content/common:interfaces_shared_cpp_sources",
"//components/safe_browsing/content/renderer",
"//components/safe_browsing/content/renderer/phishing_classifier",
"//components/safe_browsing/content/renderer/phishing_classifier:unit_tests_support",
"//components/safe_browsing/core/browser:verdict_cache_manager",
"//components/safe_browsing/core/browser/db:metadata_proto",
"//components/safe_browsing/core/browser/db:test_database_manager",
"//components/safe_browsing/core/browser/db:v4_database",
"//components/safe_browsing/core/browser/db:v4_get_hash_protocol_manager",
"//components/safe_browsing/core/browser/password_protection:password_protection_metrics_util",
"//components/safe_browsing/core/common",
"//components/safe_browsing/core/common/proto:client_model_proto",
"//components/saved_tab_groups:core",
"//components/search",
"//components/security_interstitials/content:proto",
"//components/security_interstitials/content:security_interstitial_page",
"//components/security_interstitials/core:unsafe_resource",
"//components/security_state/content",
"//components/segmentation_platform/internal",
"//components/segmentation_platform/internal:test_support",
"//components/segmentation_platform/public",
"//components/services/app_service/public/cpp:protocol_handling",
"//components/services/app_service/public/cpp:test_support",
"//components/services/app_service/public/mojom",
"//components/services/language_detection/public/cpp",
"//components/services/language_detection/public/mojom",
"//components/services/patch/content",
"//components/services/patch/public/cpp",
"//components/services/patch/public/mojom",
"//components/services/quarantine:test_support",
"//components/session_proto_db:session_proto_db",
"//components/signin/core/browser",
"//components/signin/public/base:signin_buildflags",
"//components/signin/public/identity_manager",
"//components/signin/public/identity_manager:test_support",
"//components/site_engagement/content",
"//components/site_isolation",
"//components/soda",
"//components/soda:constants",
"//components/spellcheck:buildflags",
"//components/spellcheck/browser",
"//components/spellcheck/common",
"//components/spellcheck/common:interfaces",
"//components/spellcheck/common:spellcheck_result",
"//components/spellcheck/renderer",
"//components/ssl_errors",
"//components/strings",
"//components/subresource_filter/core/browser",
"//components/subresource_filter/core/browser:test_support",
"//components/subresource_filter/core/common:test_support",
"//components/sync",
"//components/sync:test_support",
"//components/sync_device_info:test_support",
"//components/tab_count_metrics",
"//components/tab_groups",
"//components/tracing:background_tracing_utils",
"//components/translate/content/browser:test_support",
"//components/translate/content/renderer",
"//components/translate/core/common",
"//components/translate/core/language_detection",
"//components/ukm/content",
"//components/unified_consent",
"//components/url_formatter/spoof_checks/top_domains:browsertest_top500_domains",
"//components/url_formatter/spoof_checks/top_domains:browsertest_top500_domains_header",
"//components/url_formatter/spoof_checks/top_domains:generate_top_domains_browsertest_trie",
"//components/url_param_filter/core",
"//components/url_param_filter/core:test_support",
"//components/url_param_filter/core:url_param_filter_classification_proto",
"//components/user_education/common",
"//components/user_education/test",
"//components/user_manager",
"//components/user_prefs",
"//components/variations/service",
"//components/version_info",
"//components/webapps/browser",
"//components/webapps/common:common",
"//components/webrtc",
"//components/webrtc_logging/browser",
"//content/public/common",
"//content/test:browsertest_support",
"//content/test:test_support",
"//courgette:bsdiff",
"//courgette:courgette_lib",
"//crypto:test_support",
"//device/bluetooth:mocks",
"//device/fido:cablev2_test_util",
"//device/fido:test_support",
"//google_apis:test_support",
"//media:media_buildflags",
"//media:test_support",
"//media/cast:test_support",
"//media/mojo/services",
"//mojo/core/embedder",
"//mojo/public/cpp/system",
"//mojo/public/js:resources_grit",
"//net",
"//net:extras",
"//net:test_support",
"//pdf:buildflags",
"//ppapi/buildflags",
"//printing/buildflags",
"//rlz/buildflags",
"//services/audio/public/cpp:test_support",
"//services/device/public/cpp:test_support",
"//services/device/public/mojom",
"//services/image_annotation/public/cpp",
"//services/network/public/cpp",
"//services/network/public/proto:sct_audit_report_proto",
"//services/preferences/public/cpp",
"//services/preferences/public/cpp/tracked",
"//services/service_manager/public/cpp",
"//services/strings",
"//skia",
"//storage/browser:test_support",
"//testing/data_driven_testing",
"//testing/gmock",
"//testing/gtest",
"//testing/perf",
"//third_party/blink/public:blink_headers",
"//third_party/blink/public:buildflags",
"//third_party/blink/public/common",
"//third_party/blink/public/mojom:web_feature_mojo_bindings",
"//third_party/icu",
"//third_party/leveldatabase",
"//third_party/openscreen/src/cast/streaming:common",
"//third_party/protobuf:py_proto_runtime",
"//third_party/webrtc_overrides:webrtc_component",
"//third_party/widevine/cdm:buildflags",
"//third_party/widevine/cdm:headers",
"//third_party/zlib/google:zip",
"//ui/accessibility:test_support",
"//ui/base:test_support",
"//ui/base/clipboard:clipboard_test_support",
"//ui/base/dragdrop/mojom",
"//ui/compositor:test_support",
"//ui/display:test_support",
"//ui/native_theme:test_support",
"//ui/resources",
"//ui/shell_dialogs:test_support",
"//ui/web_dialogs:test_support",
"//ui/webui",
"//ui/webui:test_support",
"//ui/webui/resources/cr_components/history_clusters:mojo_bindings",
"//v8",
]
if (enable_extensions) {
deps += [
"//chrome/browser/extensions:test_support",
"//extensions/browser/updater",
"//extensions/buildflags",
"//extensions/renderer",
]
}
# Runtime dependencies
data_deps = [
"//chrome:browser_tests_pak",
"//chrome/browser/resources/media/mei_preload:component",
"//chrome/test/data:web_ui_test_mojom_js_module",
"//components/policy/proto",
"//testing:test_scripts_shared",
"//testing/buildbot/filters:browser_tests_filters",
"//testing/buildbot/filters:linux_trusty_rel_browser_tests_filters",
"//third_party/mesa_headers",
"//third_party/private_membership:private_membership_proto",
"//third_party/shell-encryption:serialization_proto",
"//third_party/widevine/cdm:widevine_test_license_server",
"//tools/media_engagement_preload:make_dafsa_runtime",
]
if (!is_component_build) {
# WebRTC's frame_analyzer doesn't build correctly on component builds,
# because some compilers will get confused by the fact that WebRTC
# symbols are exported while liking a WebRTC executable (which should
# instead statically link WebRTC).
# In any case, the tests that require frame_analyzer are only run in
# release mode.
data_deps += [ "//third_party/webrtc/rtc_tools:frame_analyzer" ]
}
data = [
"data/",
"//ash/components/arc/test/data/icons",
"//chrome/browser/page_load_metrics/integration_tests/data/",
"//chrome/test/data/cart/",
"//components/test/data/",
"//components/test/data/ad_tagging/",
"//components/test/data/ads_observer/",
"//components/test/data/autofill/",
"//components/test/data/optimization_guide/",
"//components/test/data/payments/",
"//components/test/data/subresource_filter/",
"//components/test/data/translate/",
"//components/test/data/update_client/",
"//content/test/data/",
"//google_apis/test/",
# Media data deps are included individually to prevent runaway isolate
# size growth.
"//media/test/data/90rotation.mp4",
"//media/test/data/bear-320x240-audio-only.webm",
"//media/test/data/bear-320x240-av_enc-a.webm",
"//media/test/data/bear-320x240-av_enc-av.webm",
"//media/test/data/bear-320x240-av_enc-v.webm",
"//media/test/data/bear-320x240-multitrack.webm",
"//media/test/data/bear-320x240-opus-av_enc-av.webm",
"//media/test/data/bear-320x240-opus-av_enc-v.webm",
"//media/test/data/bear-320x240-v-vp9_fullsample_enc-v.webm",
"//media/test/data/bear-320x240-v-vp9_profile2_subsample_cenc-v.mp4",
"//media/test/data/bear-320x240-v-vp9_profile2_subsample_cenc-v.webm",
"//media/test/data/bear-320x240-v-vp9_subsample_enc-v.webm",
"//media/test/data/bear-320x240-v_enc-v.webm",
"//media/test/data/bear-320x240-v_frag-vp9-cenc.mp4",
"//media/test/data/bear-320x240-video-only.webm",
"//media/test/data/bear-320x240.webm",
"//media/test/data/bear-640x360-a_frag-cbcs.mp4",
"//media/test/data/bear-640x360-a_frag-cenc.mp4",
"//media/test/data/bear-640x360-av_enc-av.webm",
"//media/test/data/bear-640x360-v_frag-cbc1.mp4",
"//media/test/data/bear-640x360-v_frag-cbcs.mp4",
"//media/test/data/bear-640x360-v_frag-cenc-mdat.mp4",
"//media/test/data/bear-640x360-v_frag-cenc.mp4",
"//media/test/data/bear-640x360-v_frag-cens.mp4",
"//media/test/data/bear-640x360.webm",
"//media/test/data/bear-a_enc-a.webm",
"//media/test/data/bear-av1-320x180-10bit-cenc.mp4",
"//media/test/data/bear-av1-320x180-10bit-cenc.webm",
"//media/test/data/bear-av1-cenc.mp4",
"//media/test/data/bear-av1-cenc.webm",
"//media/test/data/bear-flac-cenc.mp4",
"//media/test/data/bear-opus-cenc.mp4",
"//media/test/data/eme_and_get_display_media.html",
"//media/test/data/eme_load_session_after_close_test.html",
"//media/test/data/eme_player.html",
"//media/test/data/eme_player_js/",
"//media/test/data/eme_remove_session_test.html",
"//media/test/data/encrypted_frame_size_change.html",
"//media/test/data/frame_size_change-av_enc-v.webm",
"//media/test/data/id3_png_test.mp3",
"//media/test/data/mse_config_change.html",
"//media/test/data/mse_different_containers.html",
"//media/test/data/multiple_cdm_types.html",
"//media/test/data/no_streams.webm",
"//media/test/data/sfx.ogg",
"//media/test/data/test_key_system_instantiation.html",
"//media/test/data/webaudio_oscillator.html",
"//net/tools/testserver/",
"//third_party/mocha/mocha.js",
"//third_party/pywebsocket3/src/mod_pywebsocket/",
"//third_party/simplejson/",
"//third_party/webrtc/rtc_tools/compare_videos.py",
"//ui/webui/resources/",
]
if (enable_plugins) {
data += [
"//ppapi/tests/test_case.html",
"//ppapi/tests/test_case.html.mock-http-headers",
"//ppapi/tests/test_page.css",
"//ppapi/tests/test_page.css.mock-http-headers",
]
}
data += js2gtest_js_libraries
data += metric_integration_jsdeps
sources = [
"../../apps/app_restore_service_browsertest.cc",
"../../apps/load_and_launch_browsertest.cc",
"../browser/accessibility/accessibility_labels_service_browsertest.cc",
"../browser/accessibility/browser_accessibility_state_browsertest.cc",
"../browser/accessibility/image_annotation_browsertest.cc",
"../browser/accessibility/interstitial_accessibility_browsertest.cc",
"../browser/accessibility/page_colors_browsertest.cc",
"../browser/apps/guest_view/app_view_browsertest.cc",
"../browser/apps/guest_view/web_view_browsertest.cc",
"../browser/apps/platform_apps/app_browsertest.cc",
"../browser/apps/platform_apps/app_speech_recognition_browsertest.cc",
"../browser/apps/platform_apps/app_window_browsertest.cc",
"../browser/apps/platform_apps/event_page_browsertest.cc",
"../browser/apps/platform_apps/platform_app_navigation_redirector_browsertest.cc",
"../browser/apps/platform_apps/service_worker_browsertest.cc",
"../browser/attribution_reporting/chrome_attribution_browsertest.cc",
"../browser/autocomplete/autocomplete_browsertest.cc",
"../browser/autofill/autofill_autocomplete_browsertest.cc",
"../browser/autofill/autofill_browsertest.cc",
"../browser/autofill/autofill_metrics_browsertest.cc",
"../browser/autofill/autofill_server_browsertest.cc",
"../browser/autofill/content_autofill_driver_browsertest.cc",
"../browser/autofill/form_structure_browsertest.cc",
"../browser/autofill_assistant/password_change/apc_external_action_delegate_browsertest.cc",
"../browser/background_fetch/background_fetch_browsertest.cc",
"../browser/background_sync/background_sync_browsertest.cc",
"../browser/background_sync/background_sync_content_setting_browsertest.cc",
"../browser/background_sync/background_sync_metrics_browsertest.cc",
"../browser/banners/app_banner_manager_browsertest.cc",
"../browser/banners/app_banner_manager_browsertest_base.cc",
"../browser/banners/app_banner_manager_browsertest_base.h",
"../browser/banners/app_banner_manager_desktop_browsertest.cc",
"../browser/battery/battery_metrics_browsertest.cc",
"../browser/bitmap_fetcher/bitmap_fetcher_browsertest.cc",
"../browser/bluetooth/web_bluetooth_browsertest.cc",
"../browser/browser_encoding_browsertest.cc",
"../browser/browsing_data/access_context_audit_browsertest.cc",
"../browser/browsing_data/browsing_data_model_browsertest.cc",
"../browser/browsing_data/browsing_data_remover_browsertest.cc",
"../browser/browsing_data/browsing_data_remover_browsertest_base.cc",
"../browser/browsing_data/browsing_data_remover_browsertest_base.h",
"../browser/browsing_data/chrome_browsing_data_lifetime_manager_browsertest.cc",
"../browser/browsing_data/cookies_tree_model_browsertest.cc",
"../browser/browsing_data/counters/autofill_counter_browsertest.cc",
"../browser/browsing_data/counters/browsing_data_counter_utils_browsertest.cc",
"../browser/browsing_data/counters/cache_counter_browsertest.cc",
"../browser/browsing_data/counters/conditional_cache_counting_helper_browsertest.cc",
"../browser/browsing_data/counters/downloads_counter_browsertest.cc",
"../browser/browsing_data/counters/history_counter_browsertest.cc",
"../browser/browsing_data/counters/passwords_counter_browsertest.cc",
"../browser/browsing_data/counters/sync_aware_counter_browsertest.cc",
"../browser/browsing_data/incognito_browsing_data_browsertest.cc",
"../browser/browsing_data/navigation_entry_remover_browsertest.cc",
"../browser/browsing_data/third_party_data_remover_browsertest.cc",
"../browser/browsing_topics/browsing_topics_internals_browsertest.cc",
"../browser/browsing_topics/browsing_topics_service_browsertest.cc",
"../browser/capability_delegation_browsertest.cc",
"../browser/cart/cart_service_browsertest.cc",
"../browser/cart/fetch_discount_worker_browsertest.cc",
"../browser/chrome_back_forward_cache_browsertest.cc",
"../browser/chrome_content_browser_client_browsertest.cc",
"../browser/chrome_do_not_track_browsertest.cc",
"../browser/chrome_navigation_browsertest.cc",
"../browser/chrome_origin_trials_browsertest.cc",
"../browser/chrome_security_exploit_browsertest.cc",
"../browser/chrome_shared_array_buffer_browsertest.cc",
"../browser/chrome_web_platform_security_metrics_browsertest.cc",
"../browser/chrome_worker_browsertest.cc",
"../browser/client_hints/client_hints_browsertest.cc",
"../browser/component_updater/component_patcher_operation_browsertest.cc",
"../browser/component_updater/pki_metadata_component_installer_browsertest.cc",
"../browser/content_index/content_index_browsertest.cc",
"../browser/content_language/content_language_browsertest.cc",
"../browser/content_settings/mixed_content_settings_tab_helper_browsertest.cc",
"../browser/content_settings/sound_content_setting_observer_browsertest.cc",
"../browser/crash_recovery_browsertest.cc",
"../browser/custom_handlers/protocol_handler_registry_browsertest.cc",
"../browser/data_use_measurement/chrome_data_use_measurement_browsertest.cc",
"../browser/device_api/managed_configuration_api_browsertest.cc",
"../browser/devtools/device/adb/adb_client_socket_browsertest.cc",
"../browser/devtools/device/adb/mock_adb_server.cc",
"../browser/devtools/device/adb/mock_adb_server.h",
"../browser/devtools/device/devtools_android_bridge_browsertest.cc",
"../browser/devtools/device/port_forwarding_browsertest.cc",
"../browser/devtools/device/usb/android_usb_browsertest.cc",
"../browser/devtools/devtools_browsertest.cc",
"../browser/devtools/global_confirm_info_bar_browsertest.cc",
"../browser/devtools/protocol/devtools_protocol_browsertest.cc",
"../browser/devtools/protocol/devtools_protocol_test_support.cc",
"../browser/devtools/protocol/devtools_protocol_test_support.h",
"../browser/direct_sockets/direct_sockets_apitest.cc",
"../browser/dom_distiller/distillable_page_utils_browsertest.cc",
"../browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc",
"../browser/dom_distiller/tab_utils_browsertest.cc",
"../browser/dom_distiller/test_distillation_observers.cc",
"../browser/dom_distiller/test_distillation_observers.h",
"../browser/domain_reliability/browsertest.cc",
"../browser/download/download_browsertest.cc",
"../browser/download/download_browsertest.h",
"../browser/download/download_danger_prompt_browsertest.cc",
"../browser/download/download_frame_policy_browsertest.cc",
"../browser/download/download_started_animation_browsertest.cc",
"../browser/download/save_page_browsertest.cc",
"../browser/engagement/site_engagement_helper_browsertest.cc",
"../browser/enterprise/browser_management/management_service_browsertest.cc",
"../browser/enterprise/connectors/analysis/content_analysis_dialog_browsertest.cc",
"../browser/enterprise/connectors/connectors_service_browsertest.cc",
"../browser/enterprise/reporting/report_scheduler_browsertest.cc",
"../browser/enterprise/util/managed_browser_utils_browsertest.cc",
"../browser/extensions/api/bookmark_manager_private/bookmark_manager_private_api_browsertest.cc",
"../browser/fast_shutdown_browsertest.cc",
"../browser/favicon/content_favicon_driver_browsertest.cc",
"../browser/file_system_access/chrome_file_system_access_permission_context_browsertest.cc",
"../browser/file_system_access/file_system_access_tab_helper_browsertest.cc",
"../browser/first_party_sets/first_party_sets_policy_browsertest.cc",
"../browser/first_run/first_run_browsertest.cc",
"../browser/geolocation/geolocation_browsertest.cc",
"../browser/guest_view/mime_handler_view/chrome_mime_handler_view_browsertest.cc",
"../browser/headless/headless_mode_browsertest.cc",
"../browser/headless/headless_mode_browsertest.h",
"../browser/heavy_ad_intervention/heavy_ad_helper_browsertest.cc",
"../browser/hid/hid_browsertest.cc",
"../browser/history/history_browsertest.cc",
"../browser/history/redirect_browsertest.cc",
"../browser/history_clusters/history_clusters_internals_browsertest.cc",
"../browser/history_clusters/history_clusters_metrics_browsertest.cc",
"../browser/icon_loader_browsertest.cc",
"../browser/icon_transcoder/svg_icon_transcoder_browsertest.cc",
"../browser/idle/idle_browsertest.cc",
"../browser/iframe_browsertest.cc",
"../browser/image_fetcher/image_fetcher_impl_browsertest.cc",
"../browser/importer/importer_unittest_utils.cc",
"../browser/importer/importer_unittest_utils.h",
"../browser/infobars/infobar_observer.cc",
"../browser/infobars/infobar_observer.h",
"../browser/infobars/infobars_browsertest.cc",
"../browser/installable/installable_manager_browsertest.cc",
"../browser/interest_group/interest_group_permissions_browsertest.cc",
"../browser/invalidation/profile_invalidation_provider_factory_browsertest.cc",
"../browser/l10n_util_browsertest.cc",
"../browser/lifetime/browser_close_manager_browsertest.cc",
"../browser/lifetime/browser_shutdown_browsertest.cc",
"../browser/loader/signed_exchange_policy_browsertest.cc",
"../browser/loadtimes_extension_bindings_browsertest.cc",
"../browser/locale_tests_browsertest.cc",
"../browser/login_detection/login_detection_browsertest.cc",
"../browser/login_detection/password_store_sites_browsertest.cc",
"../browser/lookalikes/lookalike_url_navigation_throttle_browsertest.cc",
"../browser/media/autoplay_metrics_browsertest.cc",
"../browser/media/cast_mirroring_performance_browsertest.cc",
"../browser/media/cast_mirroring_service_host_browsertest.cc",
"../browser/media/defer_background_media_browsertest.cc",
"../browser/media/encrypted_media_browsertest.cc",
"../browser/media/encrypted_media_supported_types_browsertest.cc",
"../browser/media/history/media_history_browsertest.cc",
"../browser/media/media_browsertest.cc",
"../browser/media/media_browsertest.h",
"../browser/media/media_engagement_autoplay_browsertest.cc",
"../browser/media/media_engagement_browsertest.cc",
"../browser/media/router/discovery/access_code/access_code_cast_sink_service_browsertest.cc",
"../browser/media/test_license_server.cc",
"../browser/media/test_license_server.h",
"../browser/media/test_license_server_config.h",
"../browser/media/unified_autoplay_browsertest.cc",
"../browser/media/webrtc/capture_handle_browsertest.cc",
"../browser/media/webrtc/conditional_focus_browsertest.cc",
"../browser/media/webrtc/media_stream_devices_controller_browsertest.cc",
"../browser/media/webrtc/multi_capture_browsertest.cc",
"../browser/media/webrtc/region_capture_browsertest.cc",
"../browser/media/webrtc/same_origin_observer_browsertest.cc",
"../browser/media/webrtc/test_stats_dictionary_unittest.cc",
# TODO(b/246519185) - Py3 incompatible, decide if to keep test.
# "../browser/media/webrtc/webrtc_apprtc_browsertest.cc",
"../browser/media/webrtc/webrtc_browsertest_perf.cc",
"../browser/media/webrtc/webrtc_browsertest_perf.h",
"../browser/media/webrtc/webrtc_browsertest_perf_unittest.cc",
"../browser/media/webrtc/webrtc_desktop_capture_browsertest.cc",
"../browser/media/webrtc/webrtc_disable_encryption_flag_browsertest.cc",
"../browser/media/webrtc/webrtc_getdisplaymedia_browsertest.cc",
"../browser/media/webrtc/webrtc_internals_integration_browsertest.cc",
"../browser/media/webrtc/webrtc_internals_perf_browsertest.cc",
"../browser/media/webrtc/webrtc_pan_tilt_zoom_browsertest.cc",
"../browser/media/webrtc/webrtc_stats_perf_browsertest.cc",
"../browser/media/webrtc/webrtc_video_display_perf_browsertest.cc",
"../browser/media/webrtc/webrtc_video_high_bitrate_browsertest.cc",
"../browser/media/webrtc/webrtc_video_quality_browsertest.cc",
"../browser/media/webrtc/webrtc_webcam_browsertest.cc",
"../browser/media/wv_test_license_server_config.cc",
"../browser/media/wv_test_license_server_config.h",
"../browser/media_galleries/fileapi/media_file_validator_browsertest.cc",
"../browser/media_galleries/media_galleries_dialog_controller_mock.cc",
"../browser/media_galleries/media_galleries_dialog_controller_mock.h",
"../browser/memory/memory_ablation_study_unittest.cc",
"../browser/metrics/cloned_install_client_id_reset_browsertest.cc",
"../browser/metrics/desktop_session_duration/audible_contents_tracker_browsertest.cc",
"../browser/metrics/metrics_log_browsertest.cc",
"../browser/metrics/metrics_reporting_state_browsertest.cc",
"../browser/metrics/metrics_service_browsertest.cc",
"../browser/metrics/metrics_service_user_demographics_browsertest.cc",
"../browser/metrics/oom/out_of_memory_reporter_browsertest.cc",
"../browser/metrics/process_memory_metrics_emitter_browsertest.cc",
"../browser/metrics/sampled_out_client_id_saved_browsertest.cc",
"../browser/metrics/startup_metrics_browsertest.cc",
"../browser/metrics/tab_stats/tab_stats_tracker_browsertest.cc",
"../browser/metrics/ukm_background_recorder_browsertest.cc",
"../browser/metrics/ukm_browsertest.cc",
"../browser/metrics/usage_scenario/tab_usage_scenario_tracker_browsertest.cc",
"../browser/metrics/variations/force_field_trials_browsertest.cc",
"../browser/metrics/variations/variations_http_headers_browsertest.cc",
"../browser/metrics/variations/variations_safe_mode_browsertest.cc",
"../browser/metrics/variations/variations_safe_mode_end_to_end_browsertest.cc",
"../browser/navigation_predictor/anchor_element_preloader_browsertest.cc",
"../browser/navigation_predictor/navigation_predictor_browsertest.cc",
"../browser/navigation_predictor/navigation_predictor_preconnect_client_browsertest.cc",
"../browser/navigation_predictor/search_engine_preconnector_browsertest.cc",
"../browser/net/cert_verifier_service_browsertest.cc",
"../browser/net/cert_verify_proc_browsertest.cc",
"../browser/net/chrome_accept_encoding_header_browsertest.cc",
"../browser/net/chrome_accept_header_browsertest.cc",
"../browser/net/chrome_mojo_proxy_resolver_factory_browsertest.cc",
"../browser/net/chrome_network_delegate_browsertest.cc",
"../browser/net/chrome_network_service_browsertest.cc",
"../browser/net/chrome_network_service_restart_browsertest.cc",
"../browser/net/cookie_policy_browsertest.cc",
"../browser/net/cookie_store_sameparty_browsertest.cc",
"../browser/net/cookie_store_samesite_browsertest.cc",
"../browser/net/dns_over_https_browsertest.cc",
"../browser/net/dns_probe_browsertest.cc",
"../browser/net/errorpage_browsertest.cc",
"../browser/net/explicitly_allowed_network_ports_browsertest.cc",
"../browser/net/explicitly_allowed_ports_switch_browsertest.cc",
"../browser/net/external_protocol_browsertest.cc",
"../browser/net/load_timing_browsertest.cc",
"../browser/net/log_net_log_browsertest.cc",
"../browser/net/net_error_tab_helper_browsertest.cc",
"../browser/net/netinfo_network_quality_estimator_holdback_browsertest.cc",
"../browser/net/network_connection_tracker_browsertest.cc",
"../browser/net/network_context_configuration_browsertest.cc",
"../browser/net/network_quality_estimator_browsertest.cc",
"../browser/net/network_quality_estimator_prefs_browsertest.cc",
"../browser/net/network_quality_netinfo_browsertest.cc",
"../browser/net/network_quality_tracker_browsertest.cc",
"../browser/net/network_request_metrics_browsertest.cc",
"../browser/net/nss_context_chromeos_browsertest.cc",
"../browser/net/private_network_access_browsertest.cc",
"../browser/net/profile_network_context_service_browsertest.cc",
"../browser/net/profile_network_context_service_test_utils.cc",
"../browser/net/profile_network_context_service_test_utils.h",
"../browser/net/proxy_browsertest.cc",
"../browser/net/proxy_test_utils.cc",
"../browser/net/proxy_test_utils.h",
"../browser/net/samesite_cookies_policy_browsertest.cc",
"../browser/net/storage_test_utils.cc",
"../browser/net/storage_test_utils.h",
"../browser/net/stub_resolver_config_reader_browsertest.cc",
"../browser/net/system_network_context_manager_browsertest.cc",
"../browser/net/trust_token_usecounter_browsertest.cc",
"../browser/net/websocket_browsertest.cc",
"../browser/new_tab_page/new_tab_page_browsertest.cc",
"../browser/new_tab_page/new_tab_page_util_browsertest.cc",
"../browser/no_best_effort_tasks_browsertest.cc",
"../browser/no_best_effort_tasks_during_startup_browsertest.cc",
"../browser/notifications/notification_permission_browsertest.cc",
"../browser/notifications/scheduler/notification_schedule_service_browsertest.cc",
"../browser/ntp_tiles/ntp_tiles_browsertest.cc",
"../browser/optimization_guide/browser_test_util.cc",
"../browser/optimization_guide/browser_test_util.h",
"../browser/optimization_guide/hints_fetcher_browsertest.cc",
"../browser/optimization_guide/optimization_guide_internals_page_browsertest.cc",
"../browser/optimization_guide/optimization_guide_keyed_service_browsertest.cc",
"../browser/optimization_guide/page_content_annotations_service_browsertest.cc",
"../browser/optimization_guide/page_text_observer_browsertest.cc",
"../browser/optimization_guide/prediction/prediction_manager_browsertest.cc",
"../browser/origin_trials/origin_trials_browsertest.cc",
"../browser/page_load_metrics/observers/ad_metrics/ad_density_intervention_browsertest.cc",
"../browser/page_load_metrics/observers/ad_metrics/ads_page_load_metrics_observer_browsertest.cc",
"../browser/page_load_metrics/observers/ad_metrics/large_sticky_ad_intervention_browsertest.cc",
"../browser/page_load_metrics/observers/ad_metrics/overlay_popup_ad_intervention_browsertest.cc",
"../browser/page_load_metrics/observers/back_forward_cache_page_load_metrics_observer_browsertest.cc",
"../browser/page_load_metrics/observers/core/amp_page_load_metrics_observer_browsertest.cc",
"../browser/page_load_metrics/observers/core/ukm_page_load_metrics_observer_browsertest.cc",
"../browser/page_load_metrics/observers/foreground_duration_ukm_observer_browsertest.cc",
"../browser/page_load_metrics/observers/formfill_page_load_metrics_observer_browsertest.cc",
"../browser/page_load_metrics/observers/https_engagement_metrics/https_engagement_page_load_metrics_observer_browsertest.cc",
"../browser/page_load_metrics/observers/javascript_frameworks_ukm_observer_browsertest.cc",
"../browser/page_load_metrics/observers/live_tab_count_page_load_metrics_observer_browsertest.cc",
"../browser/page_load_metrics/observers/multi_tab_loading_page_load_metrics_observer_browsertest.cc",
"../browser/page_load_metrics/observers/prefetch_proxy_page_load_metrics_observer_browsertest.cc",
"../browser/page_load_metrics/observers/prerender_page_load_metrics_observer_browsertest.cc",
"../browser/page_load_metrics/observers/security_state_page_load_metrics_observer_browsertest.cc",
"../browser/page_load_metrics/observers/signed_exchange_page_load_metrics_browsertest.cc",
"../browser/page_load_metrics/observers/third_party_metrics_observer_browsertest.cc",
"../browser/page_load_metrics/observers/use_counter_page_load_metrics_observer_browsertest.cc",
"../browser/page_load_metrics/page_load_metrics_browsertest.cc",
"../browser/password_manager/credential_manager_browsertest.cc",
"../browser/password_manager/password_manager_browsertest.cc",
"../browser/performance_manager/background_tab_loading_policy_browsertest.cc",
"../browser/performance_manager/frame_node_impl_browsertest.cc",
"../browser/performance_manager/mechanisms/page_discarder_browsertest.cc",
"../browser/performance_manager/observers/page_load_metrics_observer_browsertest.cc",
"../browser/performance_manager/page_load_tracker_decorator_browsertest.cc",
"../browser/performance_manager/page_node_browsertest.cc",
"../browser/performance_manager/policies/bfcache_policy_browsertest.cc",
"../browser/permissions/permission_delegation_browsertest.cc",
"../browser/permissions/permission_manager_browsertest.cc",
"../browser/permissions/permission_request_manager_browsertest.cc",
"../browser/permissions/permissions_browsertest.cc",
"../browser/permissions/permissions_browsertest.h",
"../browser/permissions/unused_site_permissions_service_browsertest.cc",
"../browser/picture_in_picture/document_picture_in_picture_window_controller_browsertest.cc",
"../browser/picture_in_picture/video_picture_in_picture_window_controller_browsertest.cc",
"../browser/policy/policy_initialization_browsertest.cc",
"../browser/policy/policy_network_browsertest.cc",
"../browser/policy/policy_prefs_browsertest.cc",
"../browser/policy/test/browsing_history_policy_browsertest.cc",
"../browser/policy/test/cast_policy_browsertest.cc",
"../browser/policy/test/content_settings_policy_browsertest.cc",
"../browser/policy/test/default_search_provider_policy_browsertest.cc",
"../browser/policy/test/force_google_safe_search_policy_browsertest.cc",
"../browser/policy/test/hsts_policy_browsertest.cc",
"../browser/policy/test/jit_policy_browsertest.cc",
"../browser/policy/test/policy_browsertest.cc",
"../browser/policy/test/policy_statistics_collector_browsertest.cc",
"../browser/policy/test/policy_test_google_browsertest.cc",
"../browser/policy/test/proxy_policies_browsertest.cc",
"../browser/policy/test/restore_on_startup_policy_browsertest.cc",
"../browser/policy/test/url_blocklist_policy_browsertest.cc",
"../browser/portal/portal_browsertest.cc",
"../browser/portal/portal_recently_audible_browsertest.cc",
"../browser/predictors/loading_predictor_browsertest.cc",
"../browser/prefetch/prefetch_browsertest.cc",
"../browser/prefs/pref_functional_browsertest.cc",
"../browser/prefs/pref_service_browsertest.cc",
"../browser/prefs/tracked/pref_hash_browsertest.cc",
"../browser/preloading/latency_ablation_browsertest.cc",
"../browser/preloading/prefetch/no_state_prefetch/prerender_nostate_prefetch_browsertest.cc",
"../browser/preloading/prefetch/prefetch_proxy/prefetch_proxy_browsertest.cc",
"../browser/preloading/prefetch/prefetch_proxy/prefetch_proxy_test_utils.cc",
"../browser/preloading/prefetch/prefetch_proxy/prefetch_proxy_test_utils.h",
"../browser/preloading/prefetch/search_prefetch/search_prefetch_browser_test_base.cc",
"../browser/preloading/prefetch/search_prefetch/search_prefetch_browser_test_base.h",
"../browser/preloading/prefetch/search_prefetch/search_prefetch_service_browsertest.cc",
"../browser/preloading/prefetch/search_prefetch/search_preload_unified_browsertest.cc",
"../browser/preloading/prefetch/zero_suggest_prefetch/zero_suggest_prefetch_tab_helper_browsertest.cc",
"../browser/privacy_sandbox/privacy_sandbox_settings_browsertest.cc",
"../browser/profile_resetter/profile_resetter_browsertest.cc",
"../browser/profiles/host_zoom_map_browsertest.cc",
"../browser/profiles/incognito_profile_containment_browsertest.cc",
"../browser/profiles/profile_activity_metrics_recorder_browsertest.cc",
"../browser/profiles/profile_browsertest.cc",
"../browser/profiles/profile_list_desktop_browsertest.cc",
"../browser/profiles/profile_manager_browsertest.cc",
"../browser/profiles/profile_theme_update_service_browsertest.cc",
"../browser/push_messaging/push_messaging_browsertest.cc",
"../browser/reduce_accept_language/reduce_accept_language_browsertest.cc",
"../browser/referrer_policy_browsertest.cc",
"../browser/renderer_context_menu/accessibility_labels_bubble_model_browsertest.cc",
"../browser/renderer_context_menu/accessibility_labels_menu_observer_browsertest.cc",
"../browser/renderer_context_menu/mock_render_view_context_menu.cc",
"../browser/renderer_context_menu/mock_render_view_context_menu.h",
"../browser/renderer_context_menu/render_view_context_menu_browsertest.cc",
"../browser/renderer_context_menu/render_view_context_menu_browsertest_util.cc",
"../browser/renderer_context_menu/render_view_context_menu_browsertest_util.h",
"../browser/renderer_context_menu/spelling_bubble_model_browsertest.cc",
"../browser/renderer_context_menu/spelling_menu_observer_browsertest.cc",
"../browser/renderer_host/render_process_host_chrome_browsertest.cc",
"../browser/repost_form_warning_browsertest.cc",
"../browser/resource_coordinator/discard_before_unload_helper.cc",
"../browser/resource_coordinator/discard_before_unload_helper.h",
"../browser/resource_coordinator/discard_before_unload_helper_browsertest.cc",
"../browser/resource_coordinator/tab_activity_watcher_browsertest.cc",
"../browser/resource_coordinator/tab_helper_browsertest.cc",
"../browser/resource_coordinator/tab_manager_browsertest.cc",
"../browser/safe_browsing/client_side_detection_service_browsertest.cc",
"../browser/safe_browsing/cloud_content_scanning/deep_scanning_browsertest_base.cc",
"../browser/safe_browsing/cloud_content_scanning/deep_scanning_browsertest_base.h",
"../browser/safe_browsing/cloud_content_scanning/deep_scanning_test_utils.cc",
"../browser/safe_browsing/cloud_content_scanning/deep_scanning_test_utils.h",
"../browser/safe_browsing/download_protection/download_protection_service_browsertest.cc",
"../browser/safe_browsing/test_safe_browsing_database_helper.cc",
"../browser/safe_browsing/test_safe_browsing_database_helper.h",
"../browser/safe_xml_parser_browsertest.cc",
"../browser/search/ntp_custom_background_enabled_policy_handler_browsertest.cc",
"../browser/search_engines/template_url_scraper_browsertest.cc",
"../browser/secure_origin_allowlist_browsertest.cc",
"../browser/segmentation_platform/service_browsertest.cc",
"../browser/serial/chrome_serial_browsertest.cc",
"../browser/sessions/better_session_restore_browsertest.cc",
"../browser/sessions/closed_tab_cache_browsertest.cc",
"../browser/sessions/exit_type_service_browsertest.cc",
"../browser/sessions/session_id_generator_browsertest.cc",
"../browser/sessions/session_restore_browsertest.cc",
"../browser/sessions/session_restore_observer_browsertest.cc",
"../browser/sessions/session_service_log_browsertest.cc",
"../browser/sessions/tab_restore_browsertest.cc",
"../browser/shared_highlighting/shared_highlighting_browsertest.cc",
"../browser/signin/e2e_tests/live_sign_in_test.cc",
"../browser/signin/e2e_tests/live_test.cc",
"../browser/signin/e2e_tests/live_test.h",
"../browser/signin/remove_local_account_browsertest.cc",
"../browser/signin/signin_browser_test_base.cc",
"../browser/signin/signin_browser_test_base.h",
"../browser/site_isolation/chrome_site_per_process_browsertest.cc",
"../browser/site_isolation/chrome_site_per_process_test.cc",
"../browser/site_isolation/chrome_site_per_process_test.h",
"../browser/site_isolation/isolated_sandboxed_iframe_browsertest.cc",
"../browser/site_isolation/origin_agent_cluster_browsertest.cc",
"../browser/site_isolation/site_details_browsertest.cc",
"../browser/spellchecker/spellcheck_service_browsertest.cc",
"../browser/ssl/certificate_reporting_test_utils.cc",
"../browser/ssl/certificate_reporting_test_utils.h",
"../browser/ssl/certificate_transparency_browsertest.cc",
"../browser/ssl/chrome_expect_ct_reporter_browsertest.cc",
"../browser/ssl/connection_help_tab_helper_browsertest.cc",
"../browser/ssl/crlset_browsertest.cc",
"../browser/ssl/https_only_mode_browsertest.cc",
"../browser/ssl/known_interception_disclosure_infobar_browsertest.cc",
"../browser/ssl/known_interception_disclosure_ui_browsertest.cc",
"../browser/ssl/ocsp_browsertest.cc",
"../browser/ssl/security_state_tab_helper_browsertest.cc",
"../browser/ssl/ssl_browsertest.cc",
"../browser/ssl/ssl_fenced_frame_browsertest.cc",
"../browser/ssl/ssl_prerender_browsertest.cc",
"../browser/ssl/stateful_ssl_host_state_delegate_test.cc",
"../browser/storage/durable_storage_browsertest.cc",
"../browser/storage/shared_storage_browsertest.cc",
"../browser/storage_access_api/api_browsertest.cc",
"../browser/subresource_filter/ad_tagging_browsertest.cc",
"../browser/subresource_filter/ads_intervention_manager_browsertest.cc",
"../browser/subresource_filter/ruleset_browsertest.cc",
"../browser/subresource_filter/subresource_filter_browser_test_harness.cc",
"../browser/subresource_filter/subresource_filter_browser_test_harness.h",
"../browser/subresource_filter/subresource_filter_browsertest.cc",
"../browser/subresource_filter/subresource_filter_devtools_browsertest.cc",
"../browser/subresource_filter/subresource_filter_dns_alias_browsertest.cc",
"../browser/subresource_filter/subresource_filter_fenced_frame_browsertest.cc",
"../browser/subresource_filter/subresource_filter_intercepting_browsertest.cc",
"../browser/subresource_filter/subresource_filter_popup_browsertest.cc",
"../browser/subresource_filter/subresource_filter_prerender_browsertest.cc",
"../browser/subresource_filter/subresource_filter_settings_browsertest.cc",
"../browser/subresource_filter/subresource_filter_special_subframe_navigations_browsertest.cc",
"../browser/subresource_filter/subresource_filter_web_socket_browsertest.cc",
"../browser/subresource_filter/subresource_filter_worker_browsertest.cc",
"../browser/sync/sessions/sync_sessions_router_tab_helper_browsertest.cc",
"../browser/sync/sync_encryption_keys_tab_helper_browsertest.cc",
"../browser/sync_file_system/mock_local_change_processor.cc",
"../browser/sync_file_system/mock_local_change_processor.h",
"../browser/sync_file_system/mock_remote_file_sync_service.cc",
"../browser/sync_file_system/mock_remote_file_sync_service.h",
"../browser/tab_contents/navigation_metrics_recorder_browsertest.cc",
"../browser/tab_contents/view_source_browsertest.cc",
"../browser/task_manager/mock_web_contents_task_manager.cc",
"../browser/task_manager/mock_web_contents_task_manager.h",
"../browser/task_manager/providers/web_contents/background_contents_tag_browsertest.cc",
"../browser/task_manager/providers/web_contents/devtools_tag_browsertest.cc",
"../browser/task_manager/providers/web_contents/extension_tag_browsertest.cc",
"../browser/task_manager/providers/web_contents/subframe_task_browsertest.cc",
"../browser/task_manager/providers/web_contents/tab_contents_tag_browsertest.cc",
"../browser/task_manager/providers/worker_task_provider_browsertest.cc",
"../browser/task_manager/task_manager_browsertest.cc",
"../browser/task_manager/task_manager_browsertest_util.cc",
"../browser/task_manager/task_manager_browsertest_util.h",
"../browser/task_manager/task_manager_tester.cc",
"../browser/task_manager/task_manager_tester.h",
"../browser/themes/theme_service_browsertest.cc",
"../browser/tracing/chrome_tracing_delegate_browsertest.cc",
"../browser/translate/language_detection_service_browsertest.cc",
"../browser/translate/translate_frame_binder_browsertest.cc",
"../browser/translate/translate_manager_browsertest.cc",
"../browser/translate/translate_model_service_browsertest.cc",
"../browser/ui/ask_google_for_suggestions_dialog_browsertest.cc",
"../browser/ui/autofill/edit_address_profile_dialog_controller_impl_browsertest.cc",
"../browser/ui/autofill/payments/card_unmask_prompt_view_browsertest.cc",
"../browser/ui/autofill/payments/card_unmask_prompt_view_tester.h",
"../browser/ui/autofill/payments/save_card_bubble_controller_impl_browsertest.cc",
"../browser/ui/autofill/payments/save_upi_bubble_controller_impl_browsertest.cc",
"../browser/ui/autofill/save_update_address_profile_bubble_controller_impl_browsertest.cc",
"../browser/ui/autofill_assistant/password_change/assistant_onboarding_controller_impl_browsertest.cc",
"../browser/ui/blocked_content/popup_opener_tab_helper_browsertest.cc",
"../browser/ui/blocked_content/popup_tracker_browsertest.cc",
"../browser/ui/blocked_content/safe_browsing_triggered_popup_blocker_browsertest.cc",
"../browser/ui/blocked_content/tab_under_blocker_browsertest.cc",
"../browser/ui/bookmarks/bookmark_browsertest.cc",
"../browser/ui/browser_browsertest.cc",
"../browser/ui/browser_command_controller_browsertest.cc",
"../browser/ui/browser_commands_browsertest.cc",
"../browser/ui/browser_navigator_browsertest.cc",
"../browser/ui/browser_navigator_browsertest.h",
"../browser/ui/browser_tab_strip_model_delegate_browsertest.cc",
"../browser/ui/browser_tabrestore_browsertest.cc",
"../browser/ui/collected_cookies_browsertest.cc",
"../browser/ui/content_settings/content_setting_bubble_model_browsertest.cc",
"../browser/ui/content_settings/content_setting_image_model_browsertest.cc",
"../browser/ui/content_settings/framebust_block_browsertest.cc",
"../browser/ui/exclusive_access/fullscreen_controller_browsertest.cc",
"../browser/ui/exclusive_access/mouse_lock_controller_browsertest.cc",
"../browser/ui/extensions/extension_enable_flow_browsertest.cc",
"../browser/ui/extensions/extension_enable_flow_test_delegate.cc",
"../browser/ui/extensions/extension_enable_flow_test_delegate.h",
"../browser/ui/extensions/extension_image_util_browsertest.cc",
"../browser/ui/extensions/hosted_app_browsertest.cc",
"../browser/ui/extensions/settings_overridden_params_providers_browsertest.cc",
"../browser/ui/find_bar/find_bar_controller_browsertest.cc",
"../browser/ui/find_bar/find_bar_host_browsertest.cc",
"../browser/ui/hats/hats_service_browsertest.cc",
"../browser/ui/hats/trust_safety_sentiment_service_browsertest.cc",
"../browser/ui/javascript_dialogs/javascript_dialog_browsertest.cc",
"../browser/ui/login/login_handler_browsertest.cc",
"../browser/ui/managed_ui_browsertest.cc",
"../browser/ui/native_window_tracker_browsertest.cc",
"../browser/ui/omnibox/alternate_nav_infobar_delegate_browsertest.cc",
"../browser/ui/passwords/manage_passwords_test.cc",
"../browser/ui/passwords/manage_passwords_test.h",
"../browser/ui/passwords/password_generation_popup_view_browsertest.cc",
"../browser/ui/passwords/password_generation_popup_view_tester.h",
"../browser/ui/passwords/well_known_change_password_navigation_throttle_browsertest.cc",
"../browser/ui/permission_bubble/permission_bubble_browser_test_util.cc",
"../browser/ui/permission_bubble/permission_bubble_browser_test_util.h",
"../browser/ui/popup_browsertest.cc",
"../browser/ui/prefs/prefs_tab_helper_browsertest.cc",
"../browser/ui/privacy_sandbox/privacy_sandbox_dialog_helper_browsertest.cc",
"../browser/ui/profile_error_browsertest.cc",
"../browser/ui/read_later/read_later_test_utils.cc",
"../browser/ui/read_later/read_later_test_utils.h",
"../browser/ui/renderer_event_injection_browsertest.cc",
"../browser/ui/search/instant_test_base.cc",
"../browser/ui/search/instant_test_base.h",
"../browser/ui/search/new_tab_page_navigation_throttle_browsertest.cc",
"../browser/ui/search/third_party_ntp_browsertest.cc",
"../browser/ui/search_engines/search_engine_tab_helper_browsertest.cc",
"../browser/ui/startup/startup_browser_creator_browsertest.cc",
"../browser/ui/sync/one_click_signin_links_delegate_impl_browsertest.cc",
"../browser/ui/tab_modal_confirm_dialog_browsertest.cc",
"../browser/ui/tab_modal_confirm_dialog_browsertest.h",
"../browser/ui/tab_ui_helper_browsertest.cc",
"../browser/ui/tabs/pinned_tab_service_browsertest.cc",
"../browser/ui/test/browser_ui_browsertest.cc",
"../browser/ui/test/test_browser_dialog.cc",
"../browser/ui/test/test_browser_dialog.h",
"../browser/ui/test/test_infobar.cc",
"../browser/ui/test/test_infobar.h",
"../browser/ui/thumbnails/thumbnail_readiness_tracker_browsertest.cc",
"../browser/ui/toolbar/toolbar_actions_model_browsertest.cc",
"../browser/ui/update_chrome_dialog_browsertest.cc",
"../browser/ui/user_education/open_page_and_show_help_bubble_browsertest.cc",
"../browser/ui/views/apps/app_info_dialog/app_info_dialog_views_browsertest.cc",
"../browser/ui/views/autofill_assistant/password_change/assistant_stopped_bubble_coordinator_impl_browsertest.cc",
"../browser/ui/views/bluetooth_device_credentials_view_browsertest.cc",
"../browser/ui/views/bluetooth_device_pair_confirm_view_browsertest.cc",
"../browser/ui/views/bookmarks/bookmark_bar_view_browsertest.cc",
"../browser/ui/views/bookmarks/bookmark_bar_view_test_helper.h",
"../browser/ui/views/bookmarks/saved_tab_groups/saved_tab_group_bar_browsertest.cc",
"../browser/ui/views/confirm_bubble_views_browsertest.cc",
"../browser/ui/views/content_setting_bubble_contents_browsertest.cc",
"../browser/ui/views/content_test_utils.cc",
"../browser/ui/views/content_test_utils.h",
"../browser/ui/views/device_chooser_browsertest.cc",
"../browser/ui/views/eye_dropper/eye_dropper_browsertest.cc",
"../browser/ui/views/file_system_access/file_system_access_test_utils.cc",
"../browser/ui/views/file_system_access/file_system_access_test_utils.h",
"../browser/ui/views/hats/hats_browsertest.cc",
"../browser/ui/views/incognito_clear_browsing_data_dialog_browsertest.cc",
"../browser/ui/views/intent_picker_dialog_browsertest.cc",
"../browser/ui/views/privacy_sandbox/privacy_sandbox_dialog_view_browsertest.cc",
"../browser/ui/views/privacy_sandbox/privacy_sandbox_notice_bubble_browsertest.cc",
"../browser/ui/views/reader_mode/reader_mode_icon_view_browsertest.cc",
"../browser/ui/views/sharing/remote_copy_browsertest.cc",
"../browser/ui/views/sharing/shared_clipboard_browsertest.cc",
"../browser/ui/views/sharing/sharing_browsertest.cc",
"../browser/ui/views/sharing/sharing_browsertest.h",
"../browser/ui/views/tab_search_bubble_host_browsertest.cc",
"../browser/ui/views/tabs/tab_search_button_browsertest.cc",
"../browser/ui/views/tabs/tab_strip_browsertest.cc",
"../browser/ui/views/toolbar/app_menu_browsertest.cc",
"../browser/ui/views/toolbar/avatar_toolbar_button_browsertest.cc",
"../browser/ui/views/toolbar/chrome_labs_browsertest.cc",
"../browser/ui/views/toolbar/home_button_browsertest.cc",
"../browser/ui/views/web_apps/frame_toolbar/web_app_frame_toolbar_browsertest.cc",
"../browser/ui/views/web_apps/frame_toolbar/web_app_minimal_ui_test.cc",
"../browser/ui/views/web_apps/protocol_handler_launch_dialog_browsertest.cc",
"../browser/ui/views/web_apps/web_app_detailed_install_dialog_browsertest.cc",
"../browser/ui/views/web_apps/web_app_tab_strip_browsertest.cc",
"../browser/ui/views/webauthn/authenticator_dialog_view_browsertest.cc",
"../browser/ui/views/webid/fake_delegate.cc",
"../browser/ui/views/webid/fake_delegate.h",
"../browser/ui/views/webid/fedcm_account_selection_view_desktop_browsertest.cc",
"../browser/ui/views/webview_accessibility_browsertest.cc",
"../browser/ui/webauthn/authenticator_dialog_browsertest.cc",
"../browser/ui/webui/access_code_cast/access_code_cast_dialog_browsertest.cc",
"../browser/ui/webui/access_code_cast/access_code_cast_handler_browsertest.cc",
"../browser/ui/webui/app_service_internals/app_service_internals_browsertest.cc",
"../browser/ui/webui/autofill_and_password_manager_internals/autofill_internals_ui_browsertest.cc",
"../browser/ui/webui/autofill_and_password_manager_internals/password_manager_internals_ui_browsertest.cc",
"../browser/ui/webui/bookmarks/bookmarks_browsertest.cc",
"../browser/ui/webui/bookmarks/bookmarks_browsertest.h",
"../browser/ui/webui/chrome_url_data_manager_browsertest.cc",
"../browser/ui/webui/chrome_web_ui_controller_factory_browsertest.cc",
"../browser/ui/webui/chrome_webui_navigation_browsertest.cc",
"../browser/ui/webui/commander/commander_ui_browsertest.cc",
"../browser/ui/webui/constrained_web_dialog_ui_browsertest.cc",
"../browser/ui/webui/extensions/extension_settings_browsertest.cc",
"../browser/ui/webui/extensions/extension_settings_browsertest.h",
"../browser/ui/webui/extensions/extensions_internals_browsertest.cc",
"../browser/ui/webui/history_clusters/history_clusters_handler_browsertest.cc",
"../browser/ui/webui/identity_internals_ui_browsertest.cc",
"../browser/ui/webui/identity_internals_ui_browsertest.h",
"../browser/ui/webui/inspect_ui_browsertest.cc",
"../browser/ui/webui/interstitials/interstitial_ui_browsertest.cc",
"../browser/ui/webui/log_web_ui_url_browsertest.cc",
"../browser/ui/webui/management/management_a11y_browsertest.cc",
"../browser/ui/webui/management/management_a11y_browsertest.h",
"../browser/ui/webui/management/management_ui_browsertest.cc",
"../browser/ui/webui/net_internals/net_internals_ui_browsertest.cc",
"../browser/ui/webui/net_internals/net_internals_ui_browsertest.h",
"../browser/ui/webui/new_tab_page/webui_ntp_browsertest.cc",
"../browser/ui/webui/ntp/new_tab_ui_browsertest.cc",
"../browser/ui/webui/policy/policy_ui_browsertest.cc",
"../browser/ui/webui/prefs_internals_browsertest.cc",
"../browser/ui/webui/profile_helper_browsertest.cc",
"../browser/ui/webui/realbox/realbox_handler_browsertest.cc",
"../browser/ui/webui/settings/settings_clear_browsing_data_handler_browsertest.cc",
"../browser/ui/webui/settings/settings_secure_dns_handler_browsertest.cc",
"../browser/ui/webui/settings/settings_ui_browsertest.cc",
"../browser/ui/webui/side_panel/customize_chrome/customize_chrome_browsertest.cc",
"../browser/ui/webui/support_tool/support_tool_ui_browsertest.cc",
"../browser/ui/webui/tab_search/tab_search_ui_browsertest.cc",
"../browser/ui/webui/webui_load_timer_browsertest.cc",
"../browser/ui/zoom/zoom_controller_browsertest.cc",
"../browser/ukm_worker_browsertest.cc",
"../browser/unload_browsertest.cc",
"../browser/url_param_filter/url_param_classifications_loader_browsertest.cc",
"../browser/url_param_filter/url_param_filter_browsertest.cc",
"../browser/usb/chrome_usb_browsertest.cc",
"../browser/user_agent/user_agent_browsertest.cc",
"../browser/wake_lock/wake_lock_browsertest.cc",
"../browser/web_applications/alternative_error_page_override_info_browsertest.cc",
"../browser/webauthn/chrome_webauthn_browsertest.cc",
"../browser/window_placement/window_placement_browsertest.cc",
"../browser/window_placement/window_placement_permission_context_browsertest.cc",
"../common/time_format_browsertest.cc",
"../renderer/accessibility/read_anything_app_controller_browsertest.cc",
"../renderer/autofill/autofill_renderer_browsertest.cc",
"../renderer/autofill/fake_mojo_password_manager_driver.cc",
"../renderer/autofill/fake_mojo_password_manager_driver.h",
"../renderer/autofill/fake_password_generation_driver.cc",
"../renderer/autofill/fake_password_generation_driver.h",
"../renderer/autofill/form_autocomplete_browsertest.cc",
"../renderer/autofill/form_autofill_browsertest.cc",
"../renderer/autofill/form_control_click_detection_browsertest.cc",
"../renderer/autofill/page_passwords_analyser_browsertest.cc",
"../renderer/autofill/password_autofill_agent_browsertest.cc",
"../renderer/autofill/password_generation_agent_browsertest.cc",
"../renderer/autofill/password_generation_test_utils.cc",
"../renderer/autofill/password_generation_test_utils.h",
"../renderer/cart/commerce_hint_agent_browsertest.cc",
"../renderer/cart/commerce_hint_agent_renderer_browsertest.cc",
"../renderer/chrome_content_renderer_client_browsertest.cc",
"../renderer/chrome_content_settings_agent_delegate_browsertest.cc",
"../renderer/chrome_render_frame_observer_browsertest.cc",
"../renderer/translate/per_frame_translate_agent_browsertest.cc",
"../renderer/translate/translate_agent_browsertest.cc",
"../renderer/translate/translate_script_browsertest.cc",
"base/devtools_listener.cc",
"base/devtools_listener.h",
"base/devtools_listener_browsertest.cc",
"base/in_process_browser_test_browsertest.cc",
"base/memory_tracing_browsertest.cc",
"base/test_chrome_web_ui_controller_factory_browsertest.cc",
"base/ui_test_utils_browsertest.cc",
"base/web_ui_browser_test_browsertest.cc",
"data/webui/async_gen.cc",
"data/webui/async_gen.h",
"data/webui/certificate_viewer_ui_test-inl.h",
"data/webui/chrome_send_browsertest.cc",
"data/webui/chrome_send_browsertest.h",
"data/webui/history_ui_browsertest.cc",
"data/webui/history_ui_browsertest.h",
"data/webui/mojo/mojo_file_system_access_browsertest.cc",
"data/webui/mojo/mojo_js_interface_broker_browsertest.cc",
"data/webui/mojo/mojo_web_ui_controller_browsertest.cc",
"data/webui/ntp4_browsertest.cc",
"data/webui/ntp4_browsertest.h",
"data/webui/webui_resource_browsertest.cc",
"gpu/webgl_infobar_browsertest.cc",
"interaction/webui_interaction_test_util_browsertest.cc",
"v8/wasm_trap_handler_browsertest.cc",
]
if (is_chrome_branded) {
sources += [ "../browser/ui/views/side_panel/lens/lens_side_panel_coordinator_browsertest.cc" ]
}
if (enable_reporting) {
sources += [ "../browser/net/reporting_browsertest.cc" ]
}
if (enable_screen_ai_service) {
sources += [
"../browser/accessibility/ax_screen_ai_annotator.cc",
"../browser/accessibility/ax_screen_ai_annotator.h",
"../browser/accessibility/screen_ai_service_browsertest.cc",
]
deps += [
"//components/services/screen_ai/public/cpp:screen_ai_install_state",
"//components/services/screen_ai/public/cpp:screen_ai_service_router_factory",
"//components/services/screen_ai/public/mojom",
]
}
if (!is_chromeos_lacros) {
sources += [
# crbug.com/1230268 These tests need to be fixed for Lacros.
"../browser/enterprise/connectors/analysis/content_analysis_delegate_browsertest.cc",
"../browser/enterprise/connectors/file_system/browsertest_helper.cc",
"../browser/enterprise/connectors/file_system/browsertest_helper.h",
"../browser/enterprise/connectors/file_system/signin_experience_browsertest.cc",
"../browser/safe_browsing/download_protection/deep_scanning_browsertest.cc",
# Lacros does not seem to have any actual WebView-based UI to test.
"../browser/ui/webui/webui_webview_browsertest.cc",
# TODO(b/223493879): Migration of Live Caption feature to LaCrOS is not
# finished yet. These should probably be moved to
# lacros_chrome_browsertests as well.
"../browser/accessibility/live_caption_controller_browsertest.cc",
"../browser/accessibility/live_caption_speech_recognition_host_browsertest.cc",
"../browser/accessibility/live_caption_unavailability_notifier_browsertest.cc",
# These tests also run on Lacros, as part of
# lacros_chrome_browsertests_run_in_series below.
"../browser/ui/views/intent_picker_bubble_view_browsertest.cc",
"../browser/ui/views/location_bar/intent_chip_button_browsertest.cc",
"../browser/ui/views/web_apps/web_app_integration_browsertest.cc",
]
deps += [
"//chrome/browser/ui/web_applications:app_service_browser_tests",
"//chrome/browser/web_applications:app_service_browser_tests",
]
}
if (is_win) {
sources += [
"../browser/ui/views/web_apps/web_app_integration_browsertest_win.cc",
]
}
if (is_chromeos_ash) {
data += [ "//chrome/browser/resources/chromeos/arc_support/i18n_template_no_process.js" ]
sources += [
"../browser/media/webrtc/get_display_media_set_browsertest.cc",
"../browser/sessions/tab_restore_service_browsertest.cc",
]
deps += [
"//chrome/browser/ash/system_web_apps:browser_tests",
"//chrome/browser/ash/system_web_apps/test_support",
"//chrome/browser/ash/system_web_apps/test_support:test_support_ui",
"//chrome/browser/ui/ash/system_web_apps",
]
}
if (build_with_tflite_lib) {
sources += [ "../browser/permissions/prediction_service_browsertest.cc" ]
deps += [ "//components/permissions/prediction_service" ]
}
#If this target is used on Android in the future, these browser / speech/*
# files will probably not be applicable.
sources += [
"../browser/speech/extension_api/tts_extension_apitest.cc",
"../browser/speech/speech_recognition_browsertest.cc",
]
if (enable_click_to_call) {
sources += [ "../browser/ui/views/sharing/click_to_call_browsertest.cc" ]
}
if (enable_pdf) {
sources += [
"../browser/pdf/pdf_extension_test.cc",
"../browser/pdf/pdf_find_request_manager_browsertest.cc",
"../browser/plugins/pdf_iframe_navigation_throttle_browsertest.cc",
]
deps += [
":pdf_extension_test_utils",
"//components/pdf/browser",
"//components/pdf/common",
"//pdf:features",
"//pdf/loader",
]
}
if (safe_browsing_mode != 0) {
deps += [ "//components/safe_browsing/content/common/proto:download_file_types_proto" ]
}
# TODO(crbug.com/1240796): Page.printToPdf is currently available only when
# Chrome is running in headless mode and native headless mode is currently
# available only on Linux, Windows and Mac platforms.
if (enable_basic_printing && enable_pdf && (is_linux || is_win || is_mac)) {
sources +=
[ "../browser/devtools/protocol/devtools_printtopdf_browsertest.cc" ]
}
if (is_linux) {
sources += [
"../browser/ozone_platform_browsertest.cc",
"../browser/ui/views/frame/desktop_browser_frame_aura_linux_browsertest.cc",
]
deps += [
"//ui/linux:linux_ui",
"//ui/linux:linux_ui_factory",
]
}
if (is_linux || is_chromeos) {
sources += [
"../browser/error_reporting/webui_js_error_reporting_browsertest.cc",
]
deps += [ "//chrome/browser/error_reporting:test_support" ]
}
if (is_chromeos) {
deps += [
"//chrome/browser/web_applications/app_service",
"//chromeos/constants",
"//chromeos/ui/frame",
"//components/account_manager_core:test_support",
"//ui/chromeos/styles:cros_tokens_color_mappings",
]
sources += [
"../browser/browser_process_platform_part_chromeos_browsertest.cc",
"../browser/certificate_provider/test_certificate_provider_extension_mixin.cc",
"../browser/certificate_provider/test_certificate_provider_extension_mixin.h",
"../browser/download/notification/download_notification_browsertest.cc",
"../browser/ui/views/frame/browser_non_client_frame_view_chromeos_browsertest.cc",
]
}
if (is_linux) {
sources += [
"../browser/chrome_main_process_singleton_browsertest.cc",
"../browser/headless/headless_mode_browsertest_linux.cc",
"../browser/process_singleton_browsertest.cc",
]
}
if (is_win) {
sources += [
"../browser/chrome_browser_main_win_browsertest.cc",
"../browser/chrome_main_process_singleton_browsertest.cc",
"../browser/font_prewarmer_tab_helper_browsertest.cc",
"../browser/headless/headless_mode_browsertest_win.cc",
"../browser/importer/edge_importer_browsertest_win.cc",
"../browser/importer/ie_importer_browsertest_win.cc",
"../browser/net/chrome_mojo_proxy_resolver_win_browsertest.cc",
"../browser/printing/pdf_to_emf_converter_browsertest.cc",
"../browser/process_singleton_browsertest.cc",
"../browser/profiles/profile_shortcut_manager_browsertest_win.cc",
"../browser/safe_browsing/chrome_cleaner/reporter_runner_browsertest_win.cc",
"../browser/spellchecker/spell_check_host_chrome_impl_win_browsertest.cc",
"../browser/ui/startup/credential_provider_signin_dialog_win_browsertest.cc",
"../browser/ui/startup/startup_browser_creator_corrupt_profiles_browsertest_win.cc",
"../browser/ui/startup/startup_browser_creator_triggered_reset_browsertest_win.cc",
"../browser/ui/startup/startup_browser_creator_welcome_back_browsertest.cc",
"../browser/ui/views/chrome_cleaner_dialog_browsertest_win.cc",
"../browser/ui/views/chrome_cleaner_reboot_dialog_browsertest_win.cc",
"../browser/ui/views/settings_reset_prompt_dialog_browsertest.cc",
"../browser/ui/views/try_chrome_dialog_win/try_chrome_dialog_browsertest.cc",
"../browser/ui/views/uninstall_view_browsertest.cc",
"../test/delayload/delayload_hook_browsertest.cc",
]
configs += [ "//build/config/win:delayloads" ]
data_deps += [ "//chrome/browser/web_applications/chrome_pwa_launcher" ]
data += [ "$root_out_dir/chrome_200_percent.pak" ]
deps += [
"//chrome:other_version",
"//chrome/app:chrome_dll_resources",
"//chrome/app:command_ids",
"//chrome/browser/safe_browsing/chrome_cleaner",
"//chrome/browser/safe_browsing/chrome_cleaner:public",
"//chrome/browser/ui/startup:buildflags",
"//chrome/credential_provider/common:common_constants",
"//chrome/test:credential_provider_test_utils",
"//components/chrome_cleaner/public/constants",
"//components/onc",
"//sandbox/win:sandbox",
"//services/test/echo/public/mojom",
"//third_party/wtl",
"//ui/resources",
]
if (target_cpu == "x64") {
sources += [ "../common/profiler/thread_profiler_browsertest.cc" ]
}
if (is_chrome_branded) {
deps += [ "//chrome/browser/win/conflicts:browser_tests" ]
}
}
if (is_mac) {
sources += [
"../browser/app_controller_mac_browsertest.mm",
"../browser/apps/app_shim/app_shim_listener_browsertest_mac.mm",
"../browser/apps/app_shim/test/app_shim_listener_test_api_mac.cc",
"../browser/apps/app_shim/test/app_shim_listener_test_api_mac.h",
"../browser/headless/headless_mode_browsertest_mac.mm",
"../browser/mac/auth_session_request_browsertest.mm",
"../browser/renderer_host/chrome_render_widget_host_view_mac_history_swiper_browsertest.mm",
"../browser/spellchecker/spell_check_host_chrome_impl_mac_browsertest.cc",
"../browser/ui/cocoa/accelerators_cocoa_browsertest.mm",
"../browser/ui/cocoa/applescript/bookmark_applescript_utils_test.h",
"../browser/ui/cocoa/applescript/bookmark_applescript_utils_test.mm",
"../browser/ui/cocoa/applescript/bookmark_folder_applescript_browsertest.mm",
"../browser/ui/cocoa/applescript/bookmark_item_applescript_browsertest.mm",
"../browser/ui/cocoa/applescript/browsercrapplication+applescript_test.mm",
"../browser/ui/cocoa/applescript/tab_applescript_browsertest.mm",
"../browser/ui/cocoa/applescript/window_applescript_test.mm",
"../browser/ui/cocoa/apps/app_shim_menu_controller_mac_browsertest.mm",
"../browser/ui/cocoa/apps/native_app_window_cocoa_browsertest.mm",
"../browser/ui/cocoa/browser_window_mac_browsertest.mm",
"../browser/ui/cocoa/color_panel_cocoa_unittest.mm",
"../browser/ui/cocoa/renderer_context_menu/render_view_context_menu_mac_cocoa_browsertest.mm",
"../browser/ui/cocoa/share_menu_controller_browsertest.mm",
"../browser/ui/cocoa/task_manager_mac_browsertest.mm",
"../browser/ui/cocoa/touchbar/browser_window_touch_bar_controller_browsertest.mm",
"../browser/ui/find_bar/find_bar_platform_helper_mac_browsertest.mm",
"../browser/ui/test/test_browser_dialog_mac.h",
"../browser/ui/test/test_browser_dialog_mac.mm",
"../browser/ui/views/frame/browser_non_client_frame_view_mac_browsertest.mm",
"../browser/webshare/mac/sharing_service_operation_browsertest.cc",
"../common/mac/app_mode_chrome_locator_browsertest.mm",
"../common/profiler/thread_profiler_browsertest.cc",
]
sources -= [
# TODO(groby): This test depends on hunspell and we cannot run it on
# Mac, which does not use hunspell by default.
"../browser/spellchecker/spellcheck_service_browsertest.cc",
]
data_deps += [
"//chrome",
"//chrome:chrome_framework",
]
deps += [
"//chrome/app_shim",
"//chrome/browser/apps/app_shim",
"//chrome/browser/renderer_host:history_swiper",
"//components/onc",
"//components/remote_cocoa/app_shim",
"//third_party/ocmock",
"//ui/accelerated_widget_mac",
]
} else {
# !is_mac
sources += [
"../browser/ui/views/create_application_shortcut_view_browsertest.cc",
]
data_deps += [ "//chrome:packed_resources" ]
}
if (enable_soda) {
sources +=
[ "../browser/speech/speech_recognition_service_browsertest.cc" ]
deps += [
"//chrome/services/speech:lib",
"//chrome/services/speech/soda",
]
if (is_mac) {
data_deps += [ "//third_party/soda-mac64:soda_resources" ]
} else if (is_win && target_cpu == "x86") {
data_deps += [ "//third_party/soda-win32:soda_resources" ]
} else if (is_win && target_cpu == "x64") {
data_deps += [ "//third_party/soda-win64:soda_resources" ]
} else {
data_deps += [ "//third_party/soda:soda_resources" ]
}
}
if (use_ozone) {
deps += [ "//ui/ozone" ]
}
if (is_cfm) {
sources += [ "../browser/ui/webui/ash/chromebox_for_meetings/network_settings_dialog_browsertest.cc" ]
}
if (!is_chromeos_ash) {
sources += [
"../browser/chrome_multiprofile_startup_browsertest.cc",
"../browser/enterprise/reporting/cloud_profile_reporting_browsertest.cc",
"../browser/profiles/avatar_menu_browsertest.cc",
"../browser/profiles/profile_keyed_service_browsertest.cc",
"../browser/profiles/profile_window_browsertest.cc",
"../browser/ui/views/accessibility/accessibility_focus_highlight_browsertest.cc",
"../browser/ui/views/profiles/signin_view_controller_delegate_views_browsertest.cc",
]
if (!is_chromeos_lacros) {
sources += [ "../browser/external_protocol/external_protocol_handler_browsertest.cc" ]
}
sources -= [
"../browser/invalidation/profile_invalidation_provider_factory_browsertest.cc",
"../browser/net/nss_context_chromeos_browsertest.cc",
"data/webui/certificate_viewer_ui_test-inl.h",
]
}
if (is_chromeos_lacros) {
sources += [
"../browser/apps/app_service/webapk/webapk_utils_lacros_browsertest.cc",
"../browser/chromeos/policy/dlp/data_transfer_dlp_controller_browsertest.cc",
"../browser/chromeos/policy/dlp/dlp_content_manager_test_helper.cc",
"../browser/chromeos/policy/dlp/dlp_content_manager_test_helper.h",
"../browser/chromeos/policy/dlp/dlp_content_restriction_set_browsertest.cc",
"../browser/chromeos/policy/dlp/dlp_content_tab_helper_browsertest.cc",
"../browser/chromeos/policy/dlp/dlp_data_transfer_notifier_browsertest.cc",
"../browser/chromeos/policy/dlp/dlp_reporting_manager_test_helper.cc",
"../browser/chromeos/policy/dlp/dlp_reporting_manager_test_helper.h",
"../browser/chromeos/policy/dlp/dlp_rules_manager_impl_browsertest.cc",
"../browser/chromeos/policy/dlp/dlp_rules_manager_test_utils.cc",
"../browser/chromeos/policy/dlp/dlp_rules_manager_test_utils.h",
"../browser/chromeos/policy/dlp/mock_dlp_content_observer.cc",
"../browser/chromeos/policy/dlp/mock_dlp_content_observer.h",
"../browser/chromeos/policy/dlp/mock_dlp_rules_manager.cc",
"../browser/chromeos/policy/dlp/mock_dlp_rules_manager.h",
"../browser/lacros/app_mode/kiosk_session_service_browsertest.cc",
"../browser/lacros/lacros_extension_apps_controller_browsertest.cc",
"../browser/lacros/lacros_extension_apps_publisher_browsertest.cc",
"../browser/policy/restricted_mgs_policy_provider_lacros_browsertest.cc",
"../browser/ui/sharing_hub/sharing_hub_bubble_controller_chromeos_lacros_browsertest.cc",
"../browser/web_applications/app_service/lacros_web_apps_controller_browsertest.cc",
]
deps += [
":lacros_test_support_ui",
"//chromeos/crosapi/mojom",
"//chromeos/lacros",
"//chromeos/lacros:test_support",
"//chromeos/startup",
"//chromeos/ui/base",
"//chromeos/ui/frame:test_support",
"//components/account_manager_core:test_support",
"//components/services/app_service/public/cpp:intents",
"//components/webapk:proto",
]
}
if (include_js_tests) {
deps += [
"//chrome/test/data/webui:browser_tests_js_mojo_webui",
"//chrome/test/data/webui:browser_tests_js_webui",
]
if (is_chromeos_ash) {
deps += [
"//ash/webui/color_internals:browser_tests_js",
"//ash/webui/eche_app_ui:browser_tests_js",
"//ash/webui/help_app_ui:browser_tests_js",
"//ash/webui/media_app_ui:browser_tests_js",
"//ash/webui/personalization_app:browser_tests_js",
"//ash/webui/system_apps:browser_tests",
"//ash/webui/system_extensions_internals_ui:browser_tests_js",
"//chrome/test/data/webui:browser_tests_js_mojo_lite_webui",
"//chromeos/ash/components/human_presence:browser_tests_js",
]
data_deps += [ "//chrome/test/data/webui:browser_tests_js_webui" ]
if (!is_official_build) {
deps += [ "//ash/webui/sample_system_web_app_ui:browser_tests_js" ]
}
}
}
if (enable_captive_portal_detection) {
sources +=
[ "../browser/ssl/captive_portal_blocking_page_browsertest.cc" ]
}
if (is_chromeos_ash) {
sources += [
"../browser/lifetime/application_lifetime_chromeos_browsertest.cc",
"../browser/ui/sharing_hub/sharing_hub_bubble_controller_chromeos_ash_browsertest.cc",
]
deps += [ "//chrome/browser/ui:ash_test_support" ]
}
if (!is_chromeos) {
sources += [
"../browser/external_protocol/external_protocol_policy_browsertest.cc",
"../browser/lifetime/application_lifetime_browsertest.cc",
]
}
if (is_win || is_chromeos || is_mac) {
sources += [ "../browser/webshare/share_service_browsertest.cc" ]
}
if (enable_plugins) {
sources += [
"../browser/plugins/plugin_info_host_impl_browsertest.cc",
"../browser/plugins/plugin_response_interceptor_url_loader_throttle_browsertest.cc",
]
}
if (enable_ppapi) {
sources += [
"ppapi/ppapi_browsertest.cc",
"ppapi/ppapi_filechooser_browsertest.cc",
]
deps += [ "//ppapi/shared_impl:test_support" ]
# TODO(thakis): Why do these need copying in browser_tests?
# content_browsertests uses the non-copied files instead.
data_deps += [
"//ppapi:copy_test_files",
"//ppapi:copy_test_files2",
"//ppapi:ppapi_tests",
]
}
if (enable_dice_support) {
sources += [
"../browser/signin/dice_browsertest.cc",
"../browser/signin/dice_web_signin_interceptor_browsertest.cc",
"../browser/signin/signin_ui_util_browsertest.cc",
"../browser/ui/signin_intercept_first_run_experience_dialog_browsertest.cc",
"../browser/ui/signin_reauth_view_controller_browsertest.cc",
"../browser/ui/views/sync/inline_login_ui_browsertest.cc",
"../browser/unified_consent/unified_consent_browsertest.cc",
]
if (is_win) {
sources += [ "../browser/signin/signin_util_win_browsertest.cc" ]
}
} else {
sources += [ "../browser/signin/mirror_browsertest.cc" ]
}
if (enable_nacl) {
sources += [
"../browser/extensions/extension_nacl_browsertest.cc",
"../browser/nacl_host/test/gdb_debug_stub_browsertest.cc",
"nacl/nacl_browsertest.cc",
"nacl/nacl_browsertest_uma.cc",
"nacl/nacl_browsertest_util.cc",
"nacl/nacl_browsertest_util.h",
"nacl/pnacl_header_test.cc",
"nacl/pnacl_header_test.h",
]
deps += [
"//components/nacl/browser",
"//components/nacl/renderer",
"//components/nacl/renderer/plugin:nacl_trusted_plugin",
]
data_deps += [
"//chrome/test/data/nacl",
"//ppapi:ppapi_nacl_tests_all",
"//ppapi/native_client:irt",
"//ppapi/tests/extensions",
]
if (is_chromeos_ash) {
data += [ "//ash/webui/common/resources/cr.js" ]
sources += [
"../browser/ui/views/extensions/request_file_system_dialog_browsertest.cc",
"//third_party/liblouis/wasm/liblouis_wrapper_browsertest.cc",
]
data_deps += [
"//components/nacl/loader:nacl_helper",
"//ppapi/native_client:irt",
"//third_party/liblouis:liblouis_test_data",
]
}
if (is_win || is_linux || is_chromeos) {
sources += [ "../browser/nacl_host/test/nacl_gdb_browsertest.cc" ]
data_deps += [ "//chrome/browser/nacl_host/test:mock_nacl_gdb" ]
}
if (is_win) {
# TODO(halyavin) NaCl on Windows can't open debug stub socket in
# browser process as needed by this test. See http://crbug.com/157312.
sources -= [ "../browser/nacl_host/test/gdb_debug_stub_browsertest.cc" ]
}
if (is_linux || is_chromeos) {
data_deps += [ "//components/nacl/loader:nacl_helper" ]
}
}
if (enable_extensions) {
sources += [
"../browser/apps/platform_apps/api/browser/browser_apitest.cc",
"../browser/apps/platform_apps/api/media_galleries/media_galleries_watch_apitest.cc",
"../browser/apps/platform_apps/api/sync_file_system/sync_file_system_apitest.cc",
"../browser/apps/platform_apps/api/sync_file_system/sync_file_system_browsertest.cc",
"../browser/apps/platform_apps/audio_focus_web_contents_observer_browsertest.cc",
"../browser/extensions/active_tab_apitest.cc",
"../browser/extensions/alert_apitest.cc",
"../browser/extensions/all_urls_apitest.cc",
"../browser/extensions/api/activity_log_private/activity_log_private_apitest.cc",
"../browser/extensions/api/alarms/alarms_apitest.cc",
"../browser/extensions/api/autofill_private/autofill_private_apitest.cc",
"../browser/extensions/api/automation/automation_apitest.cc",
"../browser/extensions/api/bookmarks/bookmark_apitest.cc",
"../browser/extensions/api/braille_display_private/braille_display_private_apitest.cc",
"../browser/extensions/api/braille_display_private/mock_braille_controller.cc",
"../browser/extensions/api/braille_display_private/mock_braille_controller.h",
"../browser/extensions/api/browsing_data/browsing_data_test.cc",
"../browser/extensions/api/command_line_private/command_line_private_apitest.cc",
"../browser/extensions/api/commands/command_service_browsertest.cc",
"../browser/extensions/api/content_settings/content_settings_apitest.cc",
"../browser/extensions/api/context_menus/context_menu_apitest.cc",
"../browser/extensions/api/context_menus/extension_context_menu_browsertest.cc",
"../browser/extensions/api/cookies/cookies_apitest.cc",
"../browser/extensions/api/cryptotoken_private/cryptotoken_private_browsertest.cc",
"../browser/extensions/api/debugger/debugger_apitest.cc",
"../browser/extensions/api/debugger/debugger_extension_apitest.cc",
"../browser/extensions/api/declarative/declarative_apitest.cc",
"../browser/extensions/api/declarative_content/declarative_content_apitest.cc",
"../browser/extensions/api/declarative_content/request_content_script_apitest.cc",
"../browser/extensions/api/declarative_content/set_icon_apitest.cc",
"../browser/extensions/api/declarative_net_request/declarative_net_request_apitest.cc",
"../browser/extensions/api/declarative_net_request/declarative_net_request_browsertest.cc",
"../browser/extensions/api/desktop_capture/desktop_capture_apitest.cc",
"../browser/extensions/api/developer_private/developer_private_apitest.cc",
"../browser/extensions/api/downloads/downloads_api_browsertest.cc",
"../browser/extensions/api/enterprise_reporting_private/enterprise_reporting_private_apitest.cc",
"../browser/extensions/api/enterprise_reporting_private/enterprise_reporting_private_browsertest.cc",
"../browser/extensions/api/extension_action/browser_action_apitest.cc",