blob: 905ab4c501836df1ca58fd24d76b8e349458e139 [file] [log] [blame]
# Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
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_web_eg2tests_module",
]
}
chrome_ios_eg2_test_app_host("ios_chrome_eg2tests") {
}
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/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/ui/bookmarks: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:eg2_tests",
"//ios/chrome/browser/context_menu:eg2_tests",
"//ios/chrome/browser/device_sharing:eg2_tests",
"//ios/chrome/browser/feature_engagement:eg2_tests",
"//ios/chrome/browser/metrics:eg2_tests",
"//ios/chrome/browser/net:eg2_tests",
"//ios/chrome/browser/ntp_tiles:eg2_tests",
"//ios/chrome/browser/passwords:eg2_tests",
"//ios/chrome/browser/policy:eg2_tests",
"//ios/chrome/browser/policy_url_blocking:eg2_tests",
"//ios/chrome/browser/prerender:eg2_tests",
"//ios/chrome/browser/safe_browsing:eg2_tests",
"//ios/chrome/browser/ui/autofill:eg2_tests",
"//ios/chrome/browser/ui/autofill/manual_fill:eg2_tests",
"//ios/chrome/browser/ui/content_suggestions:eg2_tests",
"//ios/chrome/browser/ui/integration_tests: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/google_services:eg2_tests",
"//ios/chrome/browser/ui/settings/language:eg2_tests",
"//ios/chrome/browser/ui/settings/password:eg2_tests",
"//ios/chrome/browser/ui/settings/sync: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/ui/authentication/signin:eg2_tests",
"//ios/chrome/browser/ui/authentication/signin/advanced_settings_signin: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/ui/activity_services:eg2_tests",
"//ios/chrome/browser/ui/browser_view:eg2_tests",
"//ios/chrome/browser/ui/dialogs:eg2_tests",
"//ios/chrome/browser/ui/download:eg2_tests",
"//ios/chrome/browser/ui/find_bar:eg2_tests",
"//ios/chrome/browser/ui/first_run:eg2_tests",
"//ios/chrome/browser/ui/fullscreen:eg2_tests",
"//ios/chrome/browser/ui/history:eg2_tests",
"//ios/chrome/browser/ui/infobars:eg2_tests",
"//ios/chrome/browser/ui/keyboard:eg2_tests",
"//ios/chrome/browser/ui/link_to_text:eg2_tests",
"//ios/chrome/browser/ui/ntp:eg2_tests",
"//ios/chrome/browser/ui/omnibox:eg2_tests",
"//ios/chrome/browser/ui/omnibox/popup:eg2_tests",
"//ios/chrome/browser/ui/open_in:eg2_tests",
"//ios/chrome/browser/ui/page_info:eg2_tests",
"//ios/chrome/browser/ui/passwords:eg2_tests",
"//ios/chrome/browser/ui/popup_menu:eg2_tests",
"//ios/chrome/browser/ui/qr_scanner:eg2_tests",
"//ios/chrome/browser/ui/reading_list:eg2_tests",
"//ios/chrome/browser/ui/recent_tabs:eg2_tests",
"//ios/chrome/browser/ui/sad_tab:eg2_tests",
"//ios/chrome/browser/ui/safe_mode:eg2_tests",
"//ios/chrome/browser/ui/settings/sync/utils:eg2_tests",
"//ios/chrome/browser/ui/side_swipe:eg2_tests",
"//ios/chrome/browser/ui/start_surface:eg2_tests",
"//ios/chrome/browser/ui/tab_switcher/tab_grid:eg2_tests",
"//ios/chrome/browser/ui/tabs:eg2_tests",
"//ios/chrome/browser/ui/thumb_strip:eg2_tests",
"//ios/chrome/browser/ui/toolbar:eg2_tests",
"//ios/chrome/browser/ui/webui:eg2_tests",
"//ios/chrome/browser/ui/webui/interstitials:eg2_tests",
]
data_deps = [ ":ios_chrome_eg2tests" ]
shards = 2
}
chrome_ios_eg2_test("ios_chrome_web_eg2tests_module") {
xcode_test_application_name = "ios_chrome_eg2tests"
deps = [ "//ios/chrome/browser/web:eg2_tests" ]
data_deps = [ ":ios_chrome_eg2tests" ]
}
source_set("eg2_tests") {
defines = [ "CHROME_EARL_GREY_2" ]
configs += [
"//build/config/compiler:enable_arc",
"//build/config/ios:xctest_config",
]
testonly = true
sources = [ "smoke_egtest.mm" ]
deps = [
"//ios/chrome/app/strings",
"//ios/chrome/browser:pref_names",
"//ios/chrome/browser/ui:feature_flags",
"//ios/chrome/browser/ui/settings/password:password_constants",
"//ios/chrome/test/earl_grey:eg_test_support+eg2",
"//ios/testing/earl_grey:eg_test_support+eg2",
"//ios/third_party/earl_grey2:test_lib",
"//ios/web/common",
"//ui/base",
]
frameworks = [ "UIKit.framework" ]
}