# Copyright 2021 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/config/chromeos/ui_mode.gni")
sync_integration_tests_sources = [
"//chrome/browser/sync/test/integration/single_client_autofill_profile_sync_test.cc",
"//chrome/browser/sync/test/integration/single_client_bookmarks_sync_test.cc",
"//chrome/browser/sync/test/integration/single_client_collaboration_group_sync_test.cc",
"//chrome/browser/sync/test/integration/single_client_contact_info_sync_test.cc",
"//chrome/browser/sync/test/integration/single_client_custom_passphrase_sync_test.cc",
"//chrome/browser/sync/test/integration/single_client_device_info_sync_test.cc",
"//chrome/browser/sync/test/integration/single_client_history_delete_directives_sync_test.cc",
"//chrome/browser/sync/test/integration/single_client_history_sync_test.cc",
"//chrome/browser/sync/test/integration/single_client_offer_sync_test.cc",
"//chrome/browser/sync/test/integration/single_client_plus_address_setting_sync_test.cc",
"//chrome/browser/sync/test/integration/single_client_plus_address_sync_test.cc",
"//chrome/browser/sync/test/integration/single_client_preferences_sync_test.cc",
"//chrome/browser/sync/test/integration/single_client_reading_list_sync_test.cc",
"//chrome/browser/sync/test/integration/single_client_shared_tab_group_data_sync_test.cc",
"//chrome/browser/sync/test/integration/single_client_standalone_transport_sync_test.cc",
"//chrome/browser/sync/test/integration/single_client_sync_invalidations_test.cc",
"//chrome/browser/sync/test/integration/sync_exponential_backoff_test.cc",
]
if (!is_android) {
sync_integration_tests_sources += [
"//chrome/browser/sync/test/integration/apps_sync_test_base.cc",
"//chrome/browser/sync/test/integration/apps_sync_test_base.h",
"//chrome/browser/sync/test/integration/enable_disable_test.cc",
"//chrome/browser/sync/test/integration/local_sync_test.cc",
"//chrome/browser/sync/test/integration/migration_test.cc",
"//chrome/browser/sync/test/integration/password_manager_sync_test.cc",
"//chrome/browser/sync/test/integration/single_client_app_settings_sync_test.cc",
"//chrome/browser/sync/test/integration/single_client_common_sync_test.cc",
"//chrome/browser/sync/test/integration/single_client_dictionary_sync_test.cc",
"//chrome/browser/sync/test/integration/single_client_extension_apps_sync_test.cc",
"//chrome/browser/sync/test/integration/single_client_extensions_sync_test.cc",
"//chrome/browser/sync/test/integration/single_client_incoming_password_sharing_invitation_test.cc",
"//chrome/browser/sync/test/integration/single_client_nigori_sync_test.cc",
"//chrome/browser/sync/test/integration/single_client_outgoing_password_sharing_invitation_test.cc",
"//chrome/browser/sync/test/integration/single_client_password_sharing_policy_test.cc",
"//chrome/browser/sync/test/integration/single_client_passwords_sync_test.cc",
"//chrome/browser/sync/test/integration/single_client_polling_sync_test.cc",
"//chrome/browser/sync/test/integration/single_client_product_specifications_sync_test.cc",
"//chrome/browser/sync/test/integration/single_client_saved_tab_groups_sync_test.cc",
"//chrome/browser/sync/test/integration/single_client_search_engines_sync_test.cc",
"//chrome/browser/sync/test/integration/single_client_secondary_account_sync_test.cc",
"//chrome/browser/sync/test/integration/single_client_send_tab_to_self_sync_test.cc",
"//chrome/browser/sync/test/integration/single_client_sessions_sync_test.cc",
"//chrome/browser/sync/test/integration/single_client_sharing_message_sync_test.cc",
"//chrome/browser/sync/test/integration/single_client_themes_sync_test.cc",
"//chrome/browser/sync/test/integration/single_client_user_consents_sync_test.cc",
"//chrome/browser/sync/test/integration/single_client_user_events_sync_test.cc",
"//chrome/browser/sync/test/integration/single_client_wallet_credential_sync_test.cc",
"//chrome/browser/sync/test/integration/single_client_wallet_sync_test.cc",
"//chrome/browser/sync/test/integration/single_client_web_apps_sync_generated_icon_fix_sync_test.cc",
"//chrome/browser/sync/test/integration/single_client_web_apps_sync_test.cc",
"//chrome/browser/sync/test/integration/single_client_webauthn_credentials_sync_test.cc",
"//chrome/browser/sync/test/integration/sync_auth_test.cc",
"//chrome/browser/sync/test/integration/sync_errors_test.cc",
"//chrome/browser/sync/test/integration/web_apps_sync_test_base.cc",
"//chrome/browser/sync/test/integration/web_apps_sync_test_base.h",
# Tests with two clients can't run on Android.
"//chrome/browser/sync/test/integration/two_client_app_settings_sync_test.cc",
"//chrome/browser/sync/test/integration/two_client_autocomplete_sync_test.cc",
"//chrome/browser/sync/test/integration/two_client_autofill_sync_test.cc",
"//chrome/browser/sync/test/integration/two_client_bookmarks_sync_test.cc",
"//chrome/browser/sync/test/integration/two_client_contact_info_sync_test.cc",
"//chrome/browser/sync/test/integration/two_client_custom_passphrase_sync_test.cc",
"//chrome/browser/sync/test/integration/two_client_dictionary_sync_test.cc",
"//chrome/browser/sync/test/integration/two_client_extension_apps_sync_test.cc",
"//chrome/browser/sync/test/integration/two_client_extension_settings_sync_test.cc",
"//chrome/browser/sync/test/integration/two_client_extensions_sync_test.cc",
"//chrome/browser/sync/test/integration/two_client_history_sync_test.cc",
"//chrome/browser/sync/test/integration/two_client_passwords_sync_test.cc",
"//chrome/browser/sync/test/integration/two_client_power_bookmarks_sync_test.cc",
"//chrome/browser/sync/test/integration/two_client_preferences_sync_test.cc",
"//chrome/browser/sync/test/integration/two_client_search_engines_sync_test.cc",
"//chrome/browser/sync/test/integration/two_client_send_tab_to_self_sync_test.cc",
"//chrome/browser/sync/test/integration/two_client_sessions_sync_test.cc",
"//chrome/browser/sync/test/integration/two_client_themes_sync_test.cc",
"//chrome/browser/sync/test/integration/two_client_user_events_sync_test.cc",
"//chrome/browser/sync/test/integration/two_client_wallet_credential_sync_test.cc",
"//chrome/browser/sync/test/integration/two_client_wallet_sync_test.cc",
"//chrome/browser/sync/test/integration/two_client_web_apps_bmo_sync_test.cc",
"//chrome/browser/sync/test/integration/two_client_web_apps_generated_icon_fix_test.cc",
"//chrome/browser/sync/test/integration/two_client_web_apps_integration_test.cc",
"//chrome/browser/sync/test/integration/two_client_web_apps_integration_test_base.cc",
"//chrome/browser/sync/test/integration/two_client_web_apps_integration_test_base.h",
"//chrome/browser/sync/test/integration/two_client_web_apps_sync_test.cc",
"//chrome/browser/sync/test/integration/two_client_webauthn_credentials_sync_test.cc",
]
}
if (is_win || is_mac || is_linux) {
sync_integration_tests_sources += [ "//chrome/browser/sync/test/integration/two_client_web_apps_integration_test_mac_win_linux.cc" ]
}
if (is_win || is_linux) {
sync_integration_tests_sources += [ "//chrome/browser/sync/test/integration/two_client_web_apps_integration_test_win_linux.cc" ]
}
if (is_mac) {
sync_integration_tests_sources += [ "//chrome/browser/sync/test/integration/two_client_web_apps_integration_test_mac.cc" ]
}
if (is_win) {
sync_integration_tests_sources += [ "//chrome/browser/sync/test/integration/two_client_web_apps_integration_test_win.cc" ]
}
# https://crbug.com/1252812 The intent picker (launch icon) actions are not
# working on Lacros.
if (is_chromeos_ash) {
sync_integration_tests_sources += [ "//chrome/browser/sync/test/integration/two_client_web_apps_integration_test_cros.cc" ]
}
if (is_android) {
sync_integration_tests_sources += [
"//chrome/browser/sync/test/integration/single_client_web_apks_sync_test.cc",
"//chrome/test/android/browsertests_apk/android_browsertests_jni_onload.cc",
]
# Defined here so it's shared between android_sync_integration_tests (upstream)
# and android_live_sync_integration_tests (downstream).
android_sync_integration_tests_deps = [
"//chrome:chrome_android_core",
"//chrome/android:delegate_public_impl_java",
"//chrome/browser/android/webapk:webapk_sources",
"//chrome/browser/sync",
"//chrome/browser/ui:browser_navigator_params_headers",
"//chrome/test:android_browsertests_assets",
"//chrome/test:android_browsertests_java",
"//chrome/test:browser_tests_runner",
"//chrome/test:chrome_test_launcher",
"//chrome/test:sync_integration_test_support",
"//chrome/test:sync_integration_test_support_java",
"//chrome/test:test_support",
"//chrome/test:test_support_java",
"//chrome/test:test_support_ui_android",
"//components/bookmarks/browser",
"//components/browser_sync:switches",
"//components/data_sharing/public",
"//components/password_manager/core/browser/sharing",
"//components/plus_addresses",
"//components/plus_addresses:test_support",
"//components/plus_addresses/settings",
"//components/plus_addresses/settings:test_support",
"//components/plus_addresses/webdata",
"//components/reading_list/core:test_support",
"//components/reading_list/features:flags",
"//components/saved_tab_groups:core",
"//components/saved_tab_groups:test_support",
"//components/sync:test_support",
"//components/sync_bookmarks",
"//components/sync_device_info:test_support",
"//components/sync_preferences:common_syncable_prefs_database",
"//components/undo",
"//components/version_info",
"//content/test:android_test_message_pump_support",
"//testing/android/native_test:native_test_support",
]
# Defined here so it's shared between android_sync_integration_tests (upstream)
# and android_live_sync_integration_tests (downstream).
android_sync_integration_tests_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",
]
}