# Copyright 2018 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/ios/ios_sdk.gni")
import("//build/config/ios/rules.gni")
import("//ios/chrome/test/earl_grey2/chrome_ios_eg2_test.gni")
group("all_tests") {
testonly = true
deps = [
":ios_chrome_autofill_automation_eg2tests_module",
":ios_chrome_bookmarks_eg2tests_module",
":ios_chrome_device_check_eg2tests_module",
":ios_chrome_eg2tests",
":ios_chrome_flaky_eg2tests_module",
":ios_chrome_integration_eg2tests_module",
":ios_chrome_multitasking_eg2tests_module",
":ios_chrome_settings_eg2tests_module",
":ios_chrome_signin_eg2tests_module",
":ios_chrome_smoke_eg2tests_module",
":ios_chrome_ui_eg2tests_module",
":ios_chrome_variations_smoke_eg2tests_module",
":ios_chrome_web_eg2tests_module",
]
}
chrome_ios_eg2_test_app_host("ios_chrome_eg2tests") {
eg_extension_target =
"//ios/chrome/test/eg_open_extension:appex(${default_toolchain}_app_ext)"
eg_extension_name = "eg_open_extension.appex"
}
chrome_ios_eg2_test_app_host("ios_chrome_multitasking_eg2tests") {
deps = [ "//ios/chrome/app:multitasking_test_app_delegate" ]
eg_main_application_delegate = "MultitaskingTestApplicationDelegate"
}
chrome_ios_eg2_test("ios_chrome_autofill_automation_eg2tests_module") {
xcode_test_application_name = "ios_chrome_eg2tests"
deps = [ "//ios/chrome/browser/autofill/model/automation:eg2_tests" ]
data_deps = [ ":ios_chrome_eg2tests" ]
}
chrome_ios_eg2_test("ios_chrome_bookmarks_eg2tests_module") {
xcode_test_application_name = "ios_chrome_eg2tests"
deps = [
"//ios/chrome/browser/bookmarks/ui_bundled:eg2_tests",
"//ios/chrome/browser/bookmarks/ui_bundled/folder_chooser:eg2_tests",
"//ios/chrome/browser/bookmarks/ui_bundled/home:eg2_tests",
]
data_deps = [ ":ios_chrome_eg2tests" ]
}
chrome_ios_eg2_test("ios_chrome_device_check_eg2tests_module") {
xcode_test_application_name = "ios_chrome_eg2tests"
deps = [ "//ios/chrome/test/earl_grey:device_check_eg2_tests" ]
data_deps = [ ":ios_chrome_eg2tests" ]
}
chrome_ios_eg2_test("ios_chrome_flaky_eg2tests_module") {
xcode_test_application_name = "ios_chrome_eg2tests"
deps = [
":ios_chrome_bookmarks_eg2tests_module_deps_group",
":ios_chrome_integration_eg2tests_module_deps_group",
":ios_chrome_settings_eg2tests_module_deps_group",
":ios_chrome_signin_eg2tests_module_deps_group",
":ios_chrome_smoke_eg2tests_module_deps_group",
":ios_chrome_ui_eg2tests_module_deps_group",
":ios_chrome_web_eg2tests_module_deps_group",
]
data_deps = [ ":ios_chrome_eg2tests" ]
}
chrome_ios_eg2_test("ios_chrome_integration_eg2tests_module") {
xcode_test_application_name = "ios_chrome_eg2tests"
deps = [
"//ios/chrome/browser/autofill/model:eg2_tests",
"//ios/chrome/browser/autofill/ui_bundled:eg2_tests",
"//ios/chrome/browser/autofill/ui_bundled/branding:eg2_tests",
"//ios/chrome/browser/autofill/ui_bundled/manual_fill:eg2_tests",
"//ios/chrome/browser/context_menu/ui_bundled:eg2_tests",
"//ios/chrome/browser/default_promo/ui_bundled:eg2_tests",
"//ios/chrome/browser/device_sharing/model:eg2_tests",
"//ios/chrome/browser/feature_engagement/model:eg2_tests",
"//ios/chrome/browser/find_in_page/model:eg2_tests",
"//ios/chrome/browser/https_upgrades/model:eg2_tests",
"//ios/chrome/browser/incognito_reauth/ui_bundled:eg2_tests",
"//ios/chrome/browser/metrics/model:eg2_tests",
"//ios/chrome/browser/net/model:eg2_tests",
"//ios/chrome/browser/ntp_tiles/model:eg2_tests",
"//ios/chrome/browser/optimization_guide/model:eg2_tests",
"//ios/chrome/browser/passwords/model:eg2_tests",
"//ios/chrome/browser/policy/model:eg2_tests",
"//ios/chrome/browser/policy_url_blocking/model:eg2_tests",
"//ios/chrome/browser/prerender/model:eg2_tests",
"//ios/chrome/browser/safe_browsing/model:eg2_tests",
"//ios/chrome/browser/snapshots/model:eg2_tests",
"//ios/chrome/browser/ssl/model:eg2_tests",
"//ios/chrome/browser/supervised_user/model:eg2_tests",
"//ios/chrome/browser/sync/model/prefs:eg2_tests",
"//ios/chrome/browser/tips_notifications/eg_test:eg2_tests",
"//ios/chrome/browser/ui/content_suggestions:eg2_tests",
"//ios/chrome/browser/ui/content_suggestions/tab_resumption:eg2_tests",
"//ios/chrome/browser/ui/integration_tests:eg2_tests",
"//ios/chrome/browser/ui/push_notification:eg2_tests",
"//ios/chrome/browser/variations/model:eg2_tests",
]
data_deps = [ ":ios_chrome_eg2tests" ]
}
chrome_ios_eg2_test("ios_chrome_multitasking_eg2tests_module") {
xcode_test_application_name = "ios_chrome_multitasking_eg2tests"
deps = [
":ios_chrome_bookmarks_eg2tests_module_deps_group",
":ios_chrome_integration_eg2tests_module_deps_group",
":ios_chrome_settings_eg2tests_module_deps_group",
":ios_chrome_signin_eg2tests_module_deps_group",
":ios_chrome_smoke_eg2tests_module_deps_group",
":ios_chrome_ui_eg2tests_module_deps_group",
":ios_chrome_web_eg2tests_module_deps_group",
]
data_deps = [ ":ios_chrome_multitasking_eg2tests" ]
}
chrome_ios_eg2_test("ios_chrome_smoke_eg2tests_module") {
xcode_test_application_name = "ios_chrome_eg2tests"
deps = [ "//ios/chrome/test/earl_grey2:eg2_tests" ]
data_deps = [ ":ios_chrome_eg2tests" ]
}
chrome_ios_eg2_test("ios_chrome_settings_eg2tests_module") {
xcode_test_application_name = "ios_chrome_eg2tests"
deps = [
"//ios/chrome/browser/ui/settings:eg2_tests",
"//ios/chrome/browser/ui/settings/autofill:eg2_tests",
"//ios/chrome/browser/ui/settings/clear_browsing_data:eg2_tests",
"//ios/chrome/browser/ui/settings/content_settings:eg2_tests",
"//ios/chrome/browser/ui/settings/google_services:eg2_tests",
"//ios/chrome/browser/ui/settings/google_services/manage_accounts:eg2_tests",
"//ios/chrome/browser/ui/settings/language:eg2_tests",
"//ios/chrome/browser/ui/settings/notifications:eg2_tests",
"//ios/chrome/browser/ui/settings/notifications/tracking_price:eg2_tests",
"//ios/chrome/browser/ui/settings/password:eg2_tests",
"//ios/chrome/browser/ui/settings/password/password_checkup:eg2_tests",
"//ios/chrome/browser/ui/settings/password/password_sharing:eg2_tests",
"//ios/chrome/browser/ui/settings/password/passwords_in_other_apps:eg2_tests",
"//ios/chrome/browser/ui/settings/privacy:eg2_tests",
"//ios/chrome/browser/ui/settings/privacy/lockdown_mode:eg2_tests",
"//ios/chrome/browser/ui/settings/privacy/privacy_guide:eg2_tests",
"//ios/chrome/browser/ui/settings/safety_check:eg2_tests",
"//ios/chrome/browser/ui/settings/sync:eg2_tests",
"//ios/chrome/browser/ui/settings/tabs:eg2_tests",
"//ios/chrome/browser/ui/settings/tabs/inactive_tabs:eg2_tests",
]
data_deps = [ ":ios_chrome_eg2tests" ]
}
chrome_ios_eg2_test("ios_chrome_signin_eg2tests_module") {
xcode_test_application_name = "ios_chrome_eg2tests"
deps = [
"//ios/chrome/browser/signin/model:eg2_tests",
"//ios/chrome/browser/ui/authentication/account_menu:eg2_tests",
"//ios/chrome/browser/ui/authentication/signin:eg2_tests",
"//ios/chrome/browser/ui/authentication/signin/consistency_promo_signin:eg2_tests",
"//ios/chrome/browser/ui/authentication/signin/forced_signin:eg2_tests",
"//ios/chrome/browser/ui/authentication/signin/two_screens_signin:eg2_tests",
"//ios/chrome/browser/ui/authentication/signout_action_sheet:eg2_tests",
]
data_deps = [ ":ios_chrome_eg2tests" ]
}
chrome_ios_eg2_test("ios_chrome_ui_eg2tests_module") {
xcode_test_application_name = "ios_chrome_eg2tests"
deps = [
"//ios/chrome/browser/autofill/ui_bundled/authentication:eg2_tests",
"//ios/chrome/browser/autofill/ui_bundled/bottom_sheet:eg2_tests",
"//ios/chrome/browser/autofill/ui_bundled/form_input_accessory:eg2_tests",
"//ios/chrome/browser/bring_android_tabs/ui_bundled:eg2_tests",
"//ios/chrome/browser/browser_view/ui_bundled:eg2_tests",
"//ios/chrome/browser/bubble/ui_bundled:eg2_tests",
"//ios/chrome/browser/contextual_panel/ui:eg2_tests",
"//ios/chrome/browser/default_promo/ui_bundled/generic:eg2_tests",
"//ios/chrome/browser/default_promo/ui_bundled/post_restore:eg2_tests",
"//ios/chrome/browser/dialogs/ui_bundled:eg2_tests",
"//ios/chrome/browser/download/ui_bundled:eg2_tests",
"//ios/chrome/browser/find_bar/ui_bundled:eg2_tests",
"//ios/chrome/browser/first_run/ui_bundled:eg2_tests",
"//ios/chrome/browser/first_run/ui_bundled/default_browser:eg2_tests",
"//ios/chrome/browser/first_run/ui_bundled/omnibox_position:eg2_tests",
"//ios/chrome/browser/history/ui_bundled:eg2_tests",
"//ios/chrome/browser/incognito_interstitial/ui_bundled:eg2_tests",
"//ios/chrome/browser/keyboard/ui_bundled:eg2_tests",
"//ios/chrome/browser/lens_overlay/ui:eg2_tests",
"//ios/chrome/browser/link_to_text/ui_bundled:eg2_tests",
"//ios/chrome/browser/ntp/ui_bundled:eg2_tests",
"//ios/chrome/browser/ntp/ui_bundled/feed_management:eg2_tests",
"//ios/chrome/browser/passwords/ui_bundled:eg2_tests",
"//ios/chrome/browser/passwords/ui_bundled/bottom_sheet:eg2_tests",
"//ios/chrome/browser/permissions/ui_bundled:eg2_tests",
"//ios/chrome/browser/phone_number/ui_bundled:eg2_tests",
"//ios/chrome/browser/plus_addresses/ui:eg2_tests",
"//ios/chrome/browser/policy/ui_bundled/idle:eg2_tests",
"//ios/chrome/browser/qr_scanner/ui_bundled:eg2_tests",
"//ios/chrome/browser/sad_tab/ui_bundled:eg2_tests",
"//ios/chrome/browser/safe_mode/ui_bundled:eg2_tests",
"//ios/chrome/browser/settings/model/sync/utils:eg2_tests",
"//ios/chrome/browser/shared/ui/util:eg2_tests",
"//ios/chrome/browser/side_swipe/ui_bundled:eg2_tests",
"//ios/chrome/browser/start_surface/ui_bundled:eg2_tests",
"//ios/chrome/browser/tabs/ui_bundled:eg2_tests",
"//ios/chrome/browser/text_fragments/ui_bundled:eg2_tests",
"//ios/chrome/browser/ui/content_suggestions/safety_check:eg2_tests",
"//ios/chrome/browser/ui/content_suggestions/set_up_list:eg2_tests",
"//ios/chrome/browser/ui/fullscreen:eg2_tests",
"//ios/chrome/browser/ui/infobars:eg2_tests",
"//ios/chrome/browser/ui/omnibox:eg2_tests",
"//ios/chrome/browser/ui/omnibox/popup:eg2_tests",
"//ios/chrome/browser/ui/omnibox/popup/carousel:eg2_tests",
"//ios/chrome/browser/ui/omnibox/popup/row/actions:eg2_tests",
"//ios/chrome/browser/ui/page_info:eg2_tests",
"//ios/chrome/browser/ui/popup_menu:eg2_tests",
"//ios/chrome/browser/ui/popup_menu/overflow_menu:eg2_tests",
"//ios/chrome/browser/ui/popup_menu/overflow_menu/destination_usage_history:eg2_tests",
"//ios/chrome/browser/ui/price_notifications:eg2_tests",
"//ios/chrome/browser/ui/reading_list:eg2_tests",
"//ios/chrome/browser/ui/recent_tabs:eg2_tests",
"//ios/chrome/browser/ui/save_to_drive:eg2_tests",
"//ios/chrome/browser/ui/search_engine_choice:eg2_tests",
"//ios/chrome/browser/ui/search_with:eg2_tests",
"//ios/chrome/browser/ui/send_tab_to_self:eg2_tests",
"//ios/chrome/browser/ui/settings/address_bar_preference:eg2_tests",
"//ios/chrome/browser/ui/sharing:eg2_tests",
"//ios/chrome/browser/ui/sharing/activity_services:eg2_tests",
"//ios/chrome/browser/ui/tab_switcher/tab_grid:eg2_tests",
"//ios/chrome/browser/ui/tab_switcher/tab_grid/inactive_tabs:eg2_tests",
"//ios/chrome/browser/ui/tab_switcher/tab_grid/pinned_tabs/tests:eg2_tests",
"//ios/chrome/browser/ui/tab_switcher/tab_grid/tab_groups:eg2_tests",
"//ios/chrome/browser/ui/tab_switcher/tab_strip/test:eg2_tests",
"//ios/chrome/browser/ui/toolbar:eg2_tests",
"//ios/chrome/browser/ui/toolbar/tab_groups/test:eg2_tests",
"//ios/chrome/browser/unit_conversion/ui_bundled:eg2_tests",
"//ios/chrome/browser/webui/ui_bundled:eg2_tests",
"//ios/chrome/browser/webui/ui_bundled/interstitials:eg2_tests",
"//ios/chrome/browser/webui/ui_bundled/optimization_guide_internals:eg2_tests",
]
data_deps = [ ":ios_chrome_eg2tests" ]
}
chrome_ios_eg2_test("ios_chrome_variations_smoke_eg2tests_module") {
xcode_test_application_name = "ios_chrome_eg2tests"
deps = [ "//ios/chrome/test/variations_smoke_test:eg2_tests" ]
data_deps = [ ":ios_chrome_eg2tests" ]
# Current seed to be injected in variations smoke test.
_variations_seed_abs_path =
"//ios/chrome/test/data/variations/variations_seed_ios.json"
data = [
"//testing/scripts/variations_seed_access_helper.py",
_variations_seed_abs_path,
]
executable_args = [
"--variations-seed-path",
"@WrappedPath(" + rebase_path(_variations_seed_abs_path, root_build_dir) +
")",
]
}
chrome_ios_eg2_test("ios_chrome_web_eg2tests_module") {
xcode_test_application_name = "ios_chrome_eg2tests"
deps = [ "//ios/chrome/browser/web/model:eg2_tests" ]
data_deps = [ ":ios_chrome_eg2tests" ]
}
source_set("eg2_tests") {
configs += [ "//build/config/ios:xctest_config" ]
testonly = true
sources = [ "smoke_egtest.mm" ]
deps = [
"//ios/chrome/app/strings",
"//ios/chrome/browser/bookmarks/ui_bundled:eg_test_support+eg2",
"//ios/chrome/browser/shared/model/prefs:pref_names",
"//ios/chrome/browser/shared/public/features",
"//ios/chrome/browser/ui/settings:settings_root_constants",
"//ios/chrome/browser/ui/settings/password:eg_test_support+eg2",
"//ios/chrome/browser/ui/settings/password:password_constants",
"//ios/chrome/browser/ui/settings/password/password_settings:password_settings_constants",
"//ios/chrome/test/earl_grey:eg_test_support+eg2",
"//ios/testing/earl_grey:eg_test_support+eg2",
"//ios/web/common",
"//ui/base",
]
frameworks = [ "UIKit.framework" ]
}