blob: 436b543c7fa045ee79a050926882489c4139350c [file] [log] [blame]
# Copyright 2016 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.
# This target is only used in routinely device checks. Thus, the target name is
# different from other EG2 tests.
source_set("device_check_eg2_tests") {
defines = [ "CHROME_EARL_GREY_2" ]
configs += [
"//build/config/compiler:enable_arc",
"//build/config/ios:xctest_config",
]
testonly = true
sources = [ "device_check_egtest.mm" ]
deps = [
":eg_test_support+eg2",
"//ios/testing/earl_grey:eg_test_support+eg2",
"//ios/third_party/earl_grey2:test_lib",
"//url",
]
frameworks = [ "UIKit.framework" ]
}
source_set("hooks") {
configs += [ "//build/config/compiler:enable_arc" ]
testonly = true
sources = [ "eg_tests_hook.mm" ]
deps = [
"//base",
"//components/policy/core/common:test_support",
"//ios/chrome/app:tests_hook",
"//ios/chrome/browser/policy:test_support",
]
}
source_set("eg_app_support+eg2") {
defines = [ "CHROME_EARL_GREY_2" ]
configs += [
"//build/config/compiler:enable_arc",
"//build/config/ios:xctest_config",
]
testonly = true
sources = [
"accessibility_util.h",
"accessibility_util.mm",
"chrome_actions_app_interface.h",
"chrome_actions_app_interface.mm",
"chrome_earl_grey_app_interface.h",
"chrome_earl_grey_app_interface.mm",
"chrome_matchers_app_interface.h",
"chrome_matchers_app_interface.mm",
"chrome_test_case_app_interface.h",
"chrome_test_case_app_interface.mm",
"earl_grey_scoped_block_swizzler_app_interface.h",
"earl_grey_scoped_block_swizzler_app_interface.mm",
]
deps = [
"//base",
"//base/test:test_support",
"//components/autofill/core/browser",
"//components/browsing_data/core",
"//components/content_settings/core/browser",
"//components/metrics/demographics",
"//components/prefs",
"//components/strings",
"//components/sync/base",
"//components/translate/core/browser",
"//components/ukm/ios:features",
"//components/unified_consent",
"//components/variations",
"//ios/chrome/app:app_internal",
"//ios/chrome/app/strings",
"//ios/chrome/browser",
"//ios/chrome/browser/autofill",
"//ios/chrome/browser/autofill/automation:eg_app_support+eg2",
"//ios/chrome/browser/browser_state",
"//ios/chrome/browser/content_settings:content_settings",
"//ios/chrome/browser/device_sharing:eg_app_support+eg2",
"//ios/chrome/browser/feature_engagement:eg_app_support+eg2",
"//ios/chrome/browser/find_in_page",
"//ios/chrome/browser/metrics:eg_app_support+eg2",
"//ios/chrome/browser/ntp:features",
"//ios/chrome/browser/passwords",
"//ios/chrome/browser/passwords:eg_app_support+eg2",
"//ios/chrome/browser/policy:eg_app_support+eg2",
"//ios/chrome/browser/translate:eg_app_support+eg2",
"//ios/chrome/browser/ui:feature_flags",
"//ios/chrome/browser/ui/authentication:eg_app_support+eg2",
"//ios/chrome/browser/ui/authentication/cells",
"//ios/chrome/browser/ui/authentication/signin/advanced_settings_signin:constants",
"//ios/chrome/browser/ui/autofill:autofill_ui",
"//ios/chrome/browser/ui/autofill:eg_app_support+eg2",
"//ios/chrome/browser/ui/autofill/manual_fill",
"//ios/chrome/browser/ui/autofill/manual_fill:manual_fill_ui",
"//ios/chrome/browser/ui/bookmarks:constants",
"//ios/chrome/browser/ui/bookmarks:eg_app_support+eg2",
"//ios/chrome/browser/ui/collection_view/cells",
"//ios/chrome/browser/ui/commands",
"//ios/chrome/browser/ui/content_suggestions:constants",
"//ios/chrome/browser/ui/content_suggestions:content_suggestions_constant",
"//ios/chrome/browser/ui/content_suggestions:content_suggestions_ui",
"//ios/chrome/browser/ui/content_suggestions:eg_app_support+eg2",
"//ios/chrome/browser/ui/default_promo:utils",
"//ios/chrome/browser/ui/find_bar:eg_app_support+eg2",
"//ios/chrome/browser/ui/first_run:eg_app_support+eg2",
"//ios/chrome/browser/ui/fullscreen/test:eg_app_support+eg2",
"//ios/chrome/browser/ui/history:constants",
"//ios/chrome/browser/ui/infobars",
"//ios/chrome/browser/ui/infobars:eg_app_support+eg2",
"//ios/chrome/browser/ui/location_bar:constants",
"//ios/chrome/browser/ui/location_bar:location_bar",
"//ios/chrome/browser/ui/main:scene_state_header",
"//ios/chrome/browser/ui/material_components",
"//ios/chrome/browser/ui/omnibox:app_support+eg2",
"//ios/chrome/browser/ui/omnibox:omnibox_internal",
"//ios/chrome/browser/ui/omnibox/keyboard_assist",
"//ios/chrome/browser/ui/passwords:app_support+eg2",
"//ios/chrome/browser/ui/popup_menu:constants",
"//ios/chrome/browser/ui/qr_scanner:eg_app_support+eg2",
"//ios/chrome/browser/ui/reading_list:eg_app_support+eg2",
"//ios/chrome/browser/ui/recent_tabs:app_support+eg2",
"//ios/chrome/browser/ui/recent_tabs:recent_tabs_ui_constants",
"//ios/chrome/browser/ui/safe_mode",
"//ios/chrome/browser/ui/safe_mode:eg_app_support+eg2",
"//ios/chrome/browser/ui/settings:constants",
"//ios/chrome/browser/ui/settings:eg_app_support+eg2",
"//ios/chrome/browser/ui/settings:settings",
"//ios/chrome/browser/ui/settings:settings_root",
"//ios/chrome/browser/ui/settings:settings_root_constants",
"//ios/chrome/browser/ui/settings/autofill",
"//ios/chrome/browser/ui/settings/autofill:constants",
"//ios/chrome/browser/ui/settings/cells",
"//ios/chrome/browser/ui/settings/clear_browsing_data",
"//ios/chrome/browser/ui/settings/google_services:constants",
"//ios/chrome/browser/ui/settings/google_services:eg_app_support+eg2",
"//ios/chrome/browser/ui/settings/language:eg_app_support+eg2",
"//ios/chrome/browser/ui/settings/password:eg_app_support+eg2",
"//ios/chrome/browser/ui/settings/password:password_constants",
"//ios/chrome/browser/ui/settings/privacy:privacy_ui",
"//ios/chrome/browser/ui/settings/sync",
"//ios/chrome/browser/ui/tab_switcher/tab_grid:features",
"//ios/chrome/browser/ui/tab_switcher/tab_grid:tab_grid_ui_constants",
"//ios/chrome/browser/ui/tab_switcher/tab_grid/grid:grid_ui_constants",
"//ios/chrome/browser/ui/table_view:feature_flags",
"//ios/chrome/browser/ui/table_view/cells",
"//ios/chrome/browser/ui/toolbar:eg_app_support+eg2",
"//ios/chrome/browser/ui/toolbar:toolbar_ui",
"//ios/chrome/browser/ui/toolbar/public",
"//ios/chrome/browser/ui/util",
"//ios/chrome/browser/ui/util:eg_app_support+eg2",
"//ios/chrome/browser/unified_consent",
"//ios/chrome/browser/web",
"//ios/chrome/browser/web:eg_app_support+eg2",
"//ios/chrome/browser/web:tab_id_tab_helper",
"//ios/chrome/browser/web_state_list",
"//ios/chrome/test/app:test_support",
"//ios/testing:block_swizzler",
"//ios/testing:hardware_keyboarr_support",
"//ios/testing:nserror_support",
"//ios/testing:verify_custom_webkit",
"//ios/testing/earl_grey:eg_app_support+eg2",
"//ios/third_party/earl_grey2:app_framework+link",
"//ios/third_party/gtx:gtx+link",
"//ios/third_party/material_components_ios",
"//ios/web:eg_app_support+eg2",
"//ios/web/common",
"//ios/web/public",
"//ios/web/public/deprecated",
"//ios/web/public/test:element_selector",
"//ios/web/public/test:util",
"//services/metrics/public/cpp:metrics_cpp",
"//third_party/metrics_proto",
"//ui/base",
"//ui/base:test_support",
]
frameworks = [ "IOKit.framework" ]
all_dependent_configs = [ "//third_party/protobuf:protobuf_config" ]
}
source_set("eg_test_support+eg2") {
defines = [ "CHROME_EARL_GREY_2" ]
configs += [
"//build/config/compiler:enable_arc",
"//build/config/ios:xctest_config",
]
testonly = true
sources = [
"accessibility_util.h",
"accessibility_util.mm",
"chrome_actions.h",
"chrome_actions.mm",
"chrome_actions_app_interface.h",
"chrome_earl_grey.h",
"chrome_earl_grey.mm",
"chrome_earl_grey_app_interface.h",
"chrome_earl_grey_ui.h",
"chrome_earl_grey_ui.mm",
"chrome_matchers.h",
"chrome_matchers.mm",
"chrome_matchers_app_interface.h",
"chrome_test_case.h",
"chrome_test_case.mm",
"chrome_test_case_app_interface.h",
"chrome_xcui_actions.h",
"chrome_xcui_actions.mm",
"earl_grey_scoped_block_swizzler.h",
"earl_grey_scoped_block_swizzler.mm",
"earl_grey_scoped_block_swizzler_app_interface.h",
"scoped_block_popups_pref.h",
"scoped_block_popups_pref.mm",
"web_http_server_chrome_test_case.h",
"web_http_server_chrome_test_case.mm",
]
public_deps = [
":chrome_egtest_bundle_main+eg2",
"//components/content_settings/core/common",
]
deps = [
"//base",
"//base/test:test_support",
"//components/strings",
"//components/sync/base",
"//ios/chrome/app/strings",
"//ios/chrome/browser/ui/popup_menu:constants",
"//ios/chrome/browser/ui/recent_tabs:recent_tabs_ui_constants",
"//ios/chrome/browser/ui/safe_mode:eg_test_support+eg2",
"//ios/chrome/browser/ui/settings/password:eg_test_support+eg2",
"//ios/chrome/browser/ui/tab_switcher/tab_grid:tab_grid_ui_constants",
"//ios/chrome/browser/ui/tab_switcher/tab_grid/grid:grid_ui_constants",
"//ios/chrome/browser/ui/table_view:constants",
"//ios/chrome/browser/ui/toolbar:eg_test_support+eg2",
"//ios/chrome/test:eg_test_support+eg2",
"//ios/testing:http_server_bundle_data",
"//ios/testing:nserror_support",
"//ios/testing/earl_grey:eg_test_support+eg2",
"//ios/third_party/earl_grey2:test_lib",
"//ios/third_party/gtx:gtx+link",
"//ios/web/public/test:element_selector",
"//ios/web/public/test/http_server",
"//net:test_support",
"//third_party/metrics_proto",
"//ui/base",
"//url",
]
all_dependent_configs = [ "//third_party/protobuf:protobuf_config" ]
}
source_set("chrome_egtest_bundle_main+eg2") {
defines = [ "CHROME_EARL_GREY_2" ]
configs += [
"//build/config/compiler:enable_arc",
"//build/config/ios:xctest_config",
]
testonly = true
sources = [
"chrome_egtest_bundle_main.h",
"chrome_egtest_bundle_main.mm",
]
deps = [
"//base",
"//base:i18n",
"//ui/base",
]
}