# Copyright 2020 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/apple/swift_source_set.gni")
source_set("safety_check_ui") {
sources = [
"safety_check_bridge.h",
"safety_check_consumer.h",
"safety_check_navigation_commands.h",
"safety_check_service_delegate.h",
"safety_check_table_view_controller.h",
]
public_deps = [
"//components/strings",
"//ios/chrome/app/strings",
]
deps = [
"//ios/chrome/browser/shared/public/features",
"//ios/chrome/browser/shared/ui/list_model:list_model",
"//ios/chrome/browser/shared/ui/table_view",
"//ios/chrome/browser/ui/settings:settings_root",
"//ios/chrome/browser/ui/settings/cells",
"//ios/chrome/browser/ui/settings/cells:public",
"//ios/chrome/browser/ui/settings/utils",
"//ui/base",
]
}
swift_source_set("safety_check_ui_swift") {
bridge_header = "safety_check_bridge.h"
sources = [ "safety_check_table_view_controller.swift" ]
deps = [
":safety_check_ui",
"//ios/chrome/browser/ui/settings:settings_root",
"//ios/chrome/browser/ui/settings/cells",
"//ui/base",
]
}
source_set("safety_check") {
sources = [
"safety_check_coordinator.h",
"safety_check_coordinator.mm",
"safety_check_mediator+Testing.h",
"safety_check_mediator.h",
"safety_check_mediator.mm",
"safety_check_utils.h",
"safety_check_utils.mm",
]
deps = [
":constants",
":safety_check_ui",
":safety_check_ui_swift",
"//components/password_manager/core/browser",
"//components/prefs",
"//components/safe_browsing/core/common",
"//components/safe_browsing/core/common:safe_browsing_prefs",
"//components/version_info",
"//ios/chrome/app/strings",
"//ios/chrome/browser/content_settings/model",
"//ios/chrome/browser/omaha/model",
"//ios/chrome/browser/passwords/model",
"//ios/chrome/browser/passwords/model:password_checkup_utils",
"//ios/chrome/browser/shared/coordinator/chrome_coordinator",
"//ios/chrome/browser/shared/model/application_context",
"//ios/chrome/browser/shared/model/browser",
"//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/utils",
"//ios/chrome/browser/shared/public/commands",
"//ios/chrome/browser/shared/public/features",
"//ios/chrome/browser/shared/ui/symbols",
"//ios/chrome/browser/shared/ui/table_view",
"//ios/chrome/browser/shared/ui/table_view:utils",
"//ios/chrome/browser/shared/ui/util",
"//ios/chrome/browser/signin/model",
"//ios/chrome/browser/sync/model",
"//ios/chrome/browser/ui/settings:settings_root",
"//ios/chrome/browser/ui/settings/cells",
"//ios/chrome/browser/ui/settings/cells:public",
"//ios/chrome/browser/ui/settings/elements:enterprise_info_popover_view_controller",
"//ios/chrome/browser/ui/settings/password/password_checkup",
"//ios/chrome/browser/ui/settings/password/password_issues",
"//ios/chrome/browser/ui/settings/privacy:privacy_ui",
"//ios/chrome/browser/ui/settings/utils",
"//ios/chrome/browser/upgrade/model:public",
"//ios/chrome/common",
"//ios/chrome/common:string_util",
"//ios/chrome/common/ui/colors",
"//ios/chrome/common/ui/elements:popover_label_view_controller",
"//ios/chrome/common/ui/table_view:cells_constants",
"//ios/web/common",
"//ui/base",
]
frameworks = [ "UIKit.framework" ]
}
source_set("constants") {
sources = [
"safety_check_constants.h",
"safety_check_constants.mm",
]
deps = []
frameworks = [ "Foundation.framework" ]
}
source_set("unit_tests") {
testonly = true
sources = [ "safety_check_mediator_unittest.mm" ]
deps = [
":constants",
":safety_check",
":safety_check_ui",
"//base/test:test_support",
"//components/affiliations/core/browser:test_support",
"//components/password_manager/core/browser",
"//components/password_manager/core/browser:test_support",
"//components/password_manager/core/common",
"//components/prefs:test_support",
"//components/safe_browsing/core/common",
"//components/safe_browsing/core/common:safe_browsing_prefs",
"//components/strings",
"//components/sync_preferences:test_support",
"//ios/chrome/app/strings",
"//ios/chrome/browser/affiliations/model",
"//ios/chrome/browser/passwords/model",
"//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",
"//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/public/features",
"//ios/chrome/browser/shared/ui/symbols",
"//ios/chrome/browser/shared/ui/table_view:test_support",
"//ios/chrome/browser/shared/ui/table_view/cells",
"//ios/chrome/browser/signin/model",
"//ios/chrome/browser/signin/model:test_support",
"//ios/chrome/browser/sync/model",
"//ios/chrome/browser/sync/model:test_support",
"//ios/chrome/browser/ui/settings/cells",
"//ios/chrome/browser/ui/settings/utils",
"//ios/chrome/browser/upgrade/model:public",
"//ios/chrome/common:string_util",
"//ios/chrome/common/ui/colors",
"//ios/chrome/test:test_support",
"//ios/web/public/test",
"//testing/gtest",
"//ui/base",
]
}
source_set("eg2_tests") {
configs += [ "//build/config/ios:xctest_config" ]
testonly = true
sources = [ "safety_check_egtest.mm" ]
deps = [
":constants",
"//base/test:test_support",
"//ios/chrome/app/strings",
"//ios/chrome/browser/signin/model:fake_system_identity",
"//ios/chrome/browser/ui/authentication:eg_test_support+eg2",
"//ios/chrome/browser/ui/settings/password:eg_test_support",
"//ios/chrome/browser/ui/settings/password:eg_test_support+eg2",
"//ios/chrome/browser/ui/settings/password/password_checkup:password_checkup_constants",
"//ios/chrome/test/earl_grey:eg_test_support+eg2",
"//ios/testing/earl_grey:eg_test_support+eg2",
"//ui/base",
]
frameworks = [ "UIKit.framework" ]
}