# Copyright 2016 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
source_set("settings_root") {
sources = [
"bar_button_activity_indicator.h",
"bar_button_activity_indicator.mm",
"settings_controller_protocol.h",
"settings_navigation_controller.h",
"settings_root_table_view_controller.h",
"settings_root_table_view_controller.mm",
"settings_root_view_controlling.h",
]
deps = [
":constants",
":settings_root_constants",
"//ios/chrome/app/strings",
"//ios/chrome/browser/keyboard/ui_bundled",
"//ios/chrome/browser/net/model:crurl",
"//ios/chrome/browser/shared/model/browser_state",
"//ios/chrome/browser/shared/public/commands",
"//ios/chrome/browser/shared/public/features",
"//ios/chrome/browser/shared/ui/table_view",
"//ios/chrome/browser/shared/ui/table_view:styler",
"//ios/chrome/browser/shared/ui/table_view:utils",
"//ios/chrome/browser/shared/ui/table_view/cells",
"//ios/chrome/browser/ui/settings/cells",
"//ios/chrome/browser/ui/settings/cells:public",
"//ios/chrome/common/ui/colors",
"//ios/chrome/common/ui/util",
"//ios/public/provider/chrome/browser/user_feedback:user_feedback_api",
"//ui/base",
]
}
source_set("settings_root_constants") {
sources = [
"settings_root_table_constants.h",
"settings_root_table_constants.mm",
]
deps = [ "//base" ]
}
source_set("settings_navigation_controller_constants") {
sources = [
"settings_navigation_controller_constants.h",
"settings_navigation_controller_constants.mm",
]
frameworks = [ "Foundation.framework" ]
}
source_set("settings_root_categories") {
sources = [
"settings_root_table_view_controller+toolbar_add.h",
"settings_root_table_view_controller+toolbar_add.mm",
"settings_root_table_view_controller+toolbar_settings.h",
"settings_root_table_view_controller+toolbar_settings.mm",
]
deps = [
":settings_root",
":settings_root_constants",
"//ios/chrome/app/strings",
"//ui/base",
]
frameworks = [ "UIKit.framework" ]
}
source_set("settings") {
sources = [
"about_chrome_table_view_controller.h",
"about_chrome_table_view_controller.mm",
"search_engine_table_view_controller.h",
"search_engine_table_view_controller.mm",
"settings_navigation_controller.mm",
"settings_table_view_controller.h",
"settings_table_view_controller.mm",
"table_cell_catalog_view_controller.h",
"table_cell_catalog_view_controller.mm",
"translate_table_view_controller.h",
"translate_table_view_controller.mm",
"voice_search_table_view_controller.h",
"voice_search_table_view_controller.mm",
]
deps = [
":constants",
":settings_navigation_controller_constants",
":settings_root",
"//base",
"//base:i18n",
"//build:branding_buildflags",
"//components/autofill/core/browser",
"//components/autofill/core/common",
"//components/browsing_data/core",
"//components/content_settings/core/browser",
"//components/content_settings/core/common",
"//components/feature_engagement",
"//components/history/core/browser",
"//components/image_fetcher/ios",
"//components/keyed_service/core",
"//components/password_manager/core/browser",
"//components/password_manager/core/common",
"//components/prefs",
"//components/prefs/ios",
"//components/resources",
"//components/safe_browsing/core/common",
"//components/safe_browsing/core/common:safe_browsing_prefs",
"//components/search_engines",
"//components/signin/public/identity_manager",
"//components/signin/public/identity_manager/objc",
"//components/strings",
"//components/sync/base",
"//components/translate/core/browser",
"//components/translate/core/common",
"//components/url_formatter",
"//components/version_info",
"//ios/chrome/app/application_delegate:app_state_header",
"//ios/chrome/app/strings",
"//ios/chrome/browser/autofill/model",
"//ios/chrome/browser/autofill/ui_bundled:autofill_shared_ui",
"//ios/chrome/browser/autofill/ui_bundled/cells",
"//ios/chrome/browser/browsing_data/model",
"//ios/chrome/browser/browsing_data/model:feature_flags",
"//ios/chrome/browser/bubble/ui_bundled:constants",
"//ios/chrome/browser/bubble/ui_bundled:ui_bundled",
"//ios/chrome/browser/commerce/model/push_notification",
"//ios/chrome/browser/content_notification/model:util",
"//ios/chrome/browser/content_settings/model",
"//ios/chrome/browser/default_browser/model:utils",
"//ios/chrome/browser/favicon/model",
"//ios/chrome/browser/feature_engagement/model",
"//ios/chrome/browser/first_run/ui_bundled:field_trial",
"//ios/chrome/browser/history/model",
"//ios/chrome/browser/keyboard/ui_bundled",
"//ios/chrome/browser/language/model",
"//ios/chrome/browser/main/model",
"//ios/chrome/browser/net/model:crurl",
"//ios/chrome/browser/ntp/model:util",
"//ios/chrome/browser/ntp/ui_bundled:feature_flags",
"//ios/chrome/browser/passwords/model",
"//ios/chrome/browser/passwords/model:password_checkup_utils",
"//ios/chrome/browser/photos/model",
"//ios/chrome/browser/photos/model:photos_service_factory",
"//ios/chrome/browser/prerender/model:prerender_pref",
"//ios/chrome/browser/push_notification/model:push_notification_service",
"//ios/chrome/browser/search_engines/model",
"//ios/chrome/browser/settings/model/sync/utils",
"//ios/chrome/browser/settings/model/sync/utils:identity_error_util",
"//ios/chrome/browser/shared/coordinator/chrome_coordinator",
"//ios/chrome/browser/shared/coordinator/scene:scene_state_header",
"//ios/chrome/browser/shared/model/application_context",
"//ios/chrome/browser/shared/model/browser_state",
"//ios/chrome/browser/shared/model/prefs",
"//ios/chrome/browser/shared/model/prefs:pref_names",
"//ios/chrome/browser/shared/model/profile",
"//ios/chrome/browser/shared/model/url:constants",
"//ios/chrome/browser/shared/model/utils",
"//ios/chrome/browser/shared/public/commands",
"//ios/chrome/browser/shared/public/features",
"//ios/chrome/browser/shared/public/features:system_flags",
"//ios/chrome/browser/shared/ui/elements:elements_internal",
"//ios/chrome/browser/shared/ui/list_model",
"//ios/chrome/browser/shared/ui/symbols",
"//ios/chrome/browser/shared/ui/symbols:buildflags",
"//ios/chrome/browser/shared/ui/symbols:icons",
"//ios/chrome/browser/shared/ui/table_view",
"//ios/chrome/browser/shared/ui/table_view:styler",
"//ios/chrome/browser/shared/ui/table_view:utils",
"//ios/chrome/browser/shared/ui/table_view/cells",
"//ios/chrome/browser/shared/ui/util",
"//ios/chrome/browser/shared/ui/util:snackbar_util",
"//ios/chrome/browser/shared/ui/util:terms_util",
"//ios/chrome/browser/signin/model",
"//ios/chrome/browser/signin/model:system_identity",
"//ios/chrome/browser/sync/model",
"//ios/chrome/browser/tabs/model/inactive_tabs:features",
"//ios/chrome/browser/translate/model",
"//ios/chrome/browser/ui/authentication",
"//ios/chrome/browser/ui/authentication:signin_presenter",
"//ios/chrome/browser/ui/authentication/cells",
"//ios/chrome/browser/ui/authentication/enterprise:enterprise_utils",
"//ios/chrome/browser/ui/authentication/signin:signin_headers",
"//ios/chrome/browser/ui/content_suggestions/cells",
"//ios/chrome/browser/ui/search_engine_choice:ui_util",
"//ios/chrome/browser/ui/settings/address_bar_preference",
"//ios/chrome/browser/ui/settings/address_bar_preference/cells",
"//ios/chrome/browser/ui/settings/autofill",
"//ios/chrome/browser/ui/settings/bandwidth",
"//ios/chrome/browser/ui/settings/cells",
"//ios/chrome/browser/ui/settings/cells:public",
"//ios/chrome/browser/ui/settings/clear_browsing_data",
"//ios/chrome/browser/ui/settings/clear_browsing_data:features",
"//ios/chrome/browser/ui/settings/content_settings",
"//ios/chrome/browser/ui/settings/default_browser",
"//ios/chrome/browser/ui/settings/downloads",
"//ios/chrome/browser/ui/settings/elements:enterprise_info_popover_view_controller",
"//ios/chrome/browser/ui/settings/google_services",
"//ios/chrome/browser/ui/settings/google_services:constants",
"//ios/chrome/browser/ui/settings/google_services/manage_accounts",
"//ios/chrome/browser/ui/settings/google_services/manage_accounts:manage_accounts_ui",
"//ios/chrome/browser/ui/settings/language:language",
"//ios/chrome/browser/ui/settings/language:language_ui",
"//ios/chrome/browser/ui/settings/multi_identity",
"//ios/chrome/browser/ui/settings/notifications",
"//ios/chrome/browser/ui/settings/notifications:utils",
"//ios/chrome/browser/ui/settings/password",
"//ios/chrome/browser/ui/settings/password:password_constants",
"//ios/chrome/browser/ui/settings/password/password_details",
"//ios/chrome/browser/ui/settings/password/password_details:password_details_ui",
"//ios/chrome/browser/ui/settings/password/resources",
"//ios/chrome/browser/ui/settings/privacy",
"//ios/chrome/browser/ui/settings/privacy:privacy_ui",
"//ios/chrome/browser/ui/settings/privacy/safe_browsing:safe_browsing_promo_delegate",
"//ios/chrome/browser/ui/settings/resources",
"//ios/chrome/browser/ui/settings/safety_check",
"//ios/chrome/browser/ui/settings/safety_check:constants",
"//ios/chrome/browser/ui/settings/safety_check:safety_check_ui",
"//ios/chrome/browser/ui/settings/sync",
"//ios/chrome/browser/ui/settings/tabs",
"//ios/chrome/browser/ui/settings/tabs/inactive_tabs",
"//ios/chrome/browser/ui/settings/utils",
"//ios/chrome/browser/upgrade/model:public",
"//ios/chrome/browser/voice/model",
"//ios/chrome/browser/voice/model:prefs",
"//ios/chrome/browser/web/model",
"//ios/chrome/common",
"//ios/chrome/common/ui/colors",
"//ios/chrome/common/ui/reauthentication",
"//ios/chrome/common/ui/table_view:cells_constants",
"//ios/chrome/common/ui/util",
"//ios/chrome/common/ui/util:image_util",
"//ios/public/provider/chrome/browser/signin:signin_resources_api",
"//ios/public/provider/chrome/browser/user_feedback:user_feedback_api",
"//net",
"//ui/base",
"//url",
]
allow_circular_includes_from = [ "//ios/chrome/browser/ui/authentication" ]
public_deps = [ "//ios/third_party/material_components_ios" ]
frameworks = [ "UIKit.framework" ]
}
source_set("constants") {
sources = [
"settings_table_view_controller_constants.h",
"settings_table_view_controller_constants.mm",
]
frameworks = [ "Foundation.framework" ]
deps = [ "//ios/chrome/browser/shared/ui/list_model" ]
}
source_set("test_support") {
testonly = true
sources = [
"passphrase_table_view_controller_test.h",
"passphrase_table_view_controller_test.mm",
]
deps = [
":settings",
":settings_root",
"//base",
"//components/autofill/core/browser",
"//components/keyed_service/core",
"//components/pref_registry",
"//components/prefs",
"//components/sync",
"//components/sync:test_support",
"//components/sync_preferences",
"//components/sync_preferences:test_support",
"//google_apis",
"//ios/chrome/app/application_delegate:app_state_header",
"//ios/chrome/browser/search_engines/model",
"//ios/chrome/browser/shared/coordinator/scene:scene_state_header",
"//ios/chrome/browser/shared/model/application_context",
"//ios/chrome/browser/shared/model/browser/test:test_support",
"//ios/chrome/browser/shared/model/browser_state",
"//ios/chrome/browser/shared/model/prefs:browser_prefs",
"//ios/chrome/browser/shared/model/prefs:pref_names",
"//ios/chrome/browser/shared/model/profile",
"//ios/chrome/browser/shared/model/profile/test",
"//ios/chrome/browser/shared/ui/table_view:test_support",
"//ios/chrome/browser/signin/model",
"//ios/chrome/browser/signin/model:fake_system_identity",
"//ios/chrome/browser/signin/model:fake_system_identity_manager",
"//ios/chrome/browser/signin/model:test_support",
"//ios/chrome/browser/sync/model",
"//ios/chrome/browser/sync/model:test_support",
"//ios/chrome/browser/ui/settings/password",
"//ios/chrome/test:test_support",
"//ios/chrome/test/app:test_support",
"//ios/web/public/test",
"//testing/gtest",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"about_chrome_table_view_controller_unittest.mm",
"search_engine_table_view_controller_eea_unittest.mm",
"search_engine_table_view_controller_non_eea_unittest.mm",
"search_engine_table_view_controller_unittest.h",
"search_engine_table_view_controller_unittest.mm",
"settings_navigation_controller_unittest.mm",
"settings_root_table_view_controller_unittest.mm",
"settings_table_view_controller_unittest.mm",
"translate_table_view_controller_unittest.mm",
"voice_search_table_view_controller_unittest.mm",
]
deps = [
":settings",
":settings_root",
":test_support",
"//base",
"//base/test:test_support",
"//components/autofill/core/common",
"//components/content_settings/core/browser",
"//components/country_codes",
"//components/handoff",
"//components/language/core/browser",
"//components/password_manager/core/browser:test_support",
"//components/password_manager/core/common",
"//components/policy:generated",
"//components/policy/core/common",
"//components/policy/core/common:common_constants",
"//components/policy/core/common:test_support",
"//components/pref_registry",
"//components/prefs:test_support",
"//components/search_engines",
"//components/signin/public/base",
"//components/strings",
"//components/sync:test_support",
"//components/sync_preferences",
"//components/sync_preferences:test_support",
"//components/translate/core/browser",
"//components/translate/core/common",
"//components/variations",
"//components/variations/service",
"//ios/chrome/app/strings",
"//ios/chrome/browser/browsing_data/model",
"//ios/chrome/browser/browsing_data/model:counters",
"//ios/chrome/browser/content_settings/model",
"//ios/chrome/browser/favicon/model",
"//ios/chrome/browser/history/model",
"//ios/chrome/browser/passwords/model",
"//ios/chrome/browser/policy/model:policy_util",
"//ios/chrome/browser/policy/model:test_support",
"//ios/chrome/browser/prerender/model:prerender_pref",
"//ios/chrome/browser/search_engines/model",
"//ios/chrome/browser/shared/coordinator/scene:scene_state_header",
"//ios/chrome/browser/shared/model/application_context",
"//ios/chrome/browser/shared/model/browser/test:test_support",
"//ios/chrome/browser/shared/model/browser_state",
"//ios/chrome/browser/shared/model/prefs:browser_prefs",
"//ios/chrome/browser/shared/model/prefs:pref_names",
"//ios/chrome/browser/shared/model/profile/test",
"//ios/chrome/browser/shared/public/commands",
"//ios/chrome/browser/shared/public/features",
"//ios/chrome/browser/shared/ui/symbols:icons",
"//ios/chrome/browser/shared/ui/table_view",
"//ios/chrome/browser/shared/ui/table_view:test_support",
"//ios/chrome/browser/shared/ui/table_view:utils",
"//ios/chrome/browser/shared/ui/table_view/cells",
"//ios/chrome/browser/signin/model",
"//ios/chrome/browser/signin/model:fake_system_identity",
"//ios/chrome/browser/signin/model:fake_system_identity_manager",
"//ios/chrome/browser/signin/model:test_support",
"//ios/chrome/browser/sync/model",
"//ios/chrome/browser/sync/model:test_support",
"//ios/chrome/browser/tabs/model/inactive_tabs:features",
"//ios/chrome/browser/translate/model",
"//ios/chrome/browser/ui/authentication/cells",
"//ios/chrome/browser/ui/settings:constants",
"//ios/chrome/browser/ui/settings/cells",
"//ios/chrome/browser/voice/model",
"//ios/chrome/browser/voice/model:prefs",
"//ios/chrome/browser/web/model",
"//ios/chrome/common",
"//ios/chrome/test:test_support",
"//ios/chrome/test/app:test_support",
"//ios/testing:protocol_fake",
"//ios/web/public/test",
"//net",
"//net:test_support",
"//testing/gmock",
"//testing/gtest",
"//third_party/ocmock",
"//ui/base",
"//ui/strings:ui_strings_grit",
"//url",
]
}
source_set("eg_app_support+eg2") {
testonly = true
sources = [
"settings_app_interface.h",
"settings_app_interface.mm",
"supervised_user_settings_app_interface.h",
"supervised_user_settings_app_interface.mm",
]
deps = [
"//base",
"//components/browsing_data/core",
"//components/content_settings/core/browser",
"//components/metrics",
"//components/prefs",
"//components/search_engines",
"//components/supervised_user/core/browser",
"//components/supervised_user/core/browser:mocked",
"//components/supervised_user/core/common",
"//ios/chrome/app:app_internal",
"//ios/chrome/browser/content_settings/model",
"//ios/chrome/browser/search_engines/model",
"//ios/chrome/browser/shared/coordinator/scene:scene_state_header",
"//ios/chrome/browser/shared/model/browser",
"//ios/chrome/browser/shared/model/browser_state",
"//ios/chrome/browser/shared/model/prefs:pref_names",
"//ios/chrome/browser/shared/model/profile",
"//ios/chrome/browser/signin/model",
"//ios/chrome/browser/supervised_user/model",
"//ios/chrome/browser/supervised_user/model:sync_settings_factory",
"//ios/chrome/test/app:test_support",
"//ios/components/security_interstitials:security_interstitials",
"//ios/web/public",
"//services/network:test_support",
]
public_deps = [ "//components/content_settings/core/common" ]
}
source_set("eg_test_support+eg2") {
testonly = true
sources = [
"settings_app_interface.h",
"settings_app_interface_stub.mm",
"supervised_user_settings_app_interface.h",
"supervised_user_settings_app_interface_stub.mm",
]
public_deps = [ "//components/content_settings/core/common" ]
deps = [
"//base",
"//components/supervised_user/core/browser",
"//components/supervised_user/core/common",
"//ios/testing/earl_grey:eg_test_support+eg2",
]
}
source_set("eg2_tests") {
configs += [ "//build/config/ios:xctest_config" ]
testonly = true
sources = [
"search_engine_settings_eea_egtest.mm",
"search_engine_settings_non_eea_egtest.mm",
"search_engine_settings_test_case_base.h",
"search_engine_settings_test_case_base.mm",
"settings_accessibility_egtest.mm",
"settings_egtest.mm",
"signin_settings_egtest.mm",
]
deps = [
":eg_test_support+eg2",
"//base",
"//base/test:test_support",
"//build:branding_buildflags",
"//components/browsing_data/core",
"//components/policy:generated",
"//components/search_engines",
"//components/signin/public/base:signin_switches",
"//components/strings",
"//components/supervised_user/core/browser",
"//components/supervised_user/core/common",
"//components/sync/base",
"//components/sync/base:features",
"//ios/chrome/app/strings",
"//ios/chrome/browser/policy/model:eg_test_support+eg2",
"//ios/chrome/browser/policy/model:policy_util",
"//ios/chrome/browser/shared/public/features",
"//ios/chrome/browser/shared/public/features",
"//ios/chrome/browser/shared/ui/elements:eg_test_support+eg2",
"//ios/chrome/browser/signin/model:fake_system_identity",
"//ios/chrome/browser/signin/model:test_constants",
"//ios/chrome/browser/ui/authentication:eg_test_support+eg2",
"//ios/chrome/browser/ui/authentication/cells:constants",
"//ios/chrome/browser/ui/authentication/history_sync:pref_names",
"//ios/chrome/browser/ui/authentication/signin:constants",
"//ios/chrome/browser/ui/search_engine_choice:earl_grey_ui_test_util",
"//ios/chrome/browser/ui/settings:constants",
"//ios/chrome/browser/ui/settings:settings_root_constants",
"//ios/chrome/browser/ui/settings/elements:constants",
"//ios/chrome/common/ui/colors",
"//ios/chrome/common/ui/promo_style:constants",
"//ios/chrome/common/ui/table_view:cells_constants",
"//ios/chrome/test/earl_grey:eg_test_support+eg2",
"//ios/testing/earl_grey:eg_test_support+eg2",
"//ios/web/public/test/http_server",
"//net:test_support",
"//ui/base",
"//url",
]
}