# 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("model") {
sources = [
"captive_portal_metrics.cc",
"captive_portal_metrics.h",
"captive_portal_tab_helper.h",
"captive_portal_tab_helper.mm",
"ios_captive_portal_blocking_page.h",
"ios_captive_portal_blocking_page.mm",
"ios_ssl_blocking_page.h",
"ios_ssl_blocking_page.mm",
"ios_ssl_error_handler.h",
"ios_ssl_error_handler.mm",
]
deps = [
"//base",
"//base:i18n",
"//components/captive_portal/core",
"//components/safe_browsing/core/browser:safe_browsing_metrics_collector",
"//components/security_interstitials/core",
"//components/security_state/core",
"//components/security_state/ios",
"//components/strings",
"//components/url_formatter",
"//ios/chrome/browser/safe_browsing/model",
"//ios/chrome/browser/shared/model/application_context",
"//ios/chrome/browser/shared/model/browser_state",
"//ios/chrome/browser/shared/model/profile",
"//ios/chrome/browser/shared/ui/util",
"//ios/chrome/browser/tab_insertion/model",
"//ios/chrome/browser/tabs/model",
"//ios/chrome/browser/web/model",
"//ios/components/security_interstitials",
"//ios/web/common",
"//ios/web/public",
"//ios/web/public/security",
"//ios/web/public/session",
"//net",
"//ui/base",
"//url",
]
}
source_set("unit_tests") {
testonly = true
sources = [ "ios_ssl_error_handler_unittest.mm" ]
deps = [
":model",
"//base/test:test_support",
"//components/security_interstitials/core",
"//components/security_state/core",
"//ios/chrome/browser/shared/model/profile/test",
"//ios/components/security_interstitials",
"//ios/web",
"//ios/web/public/security",
"//ios/web/public/test",
"//net",
"//net:test_support",
"//services/network:test_support",
"//third_party/ocmock",
]
}
source_set("eg_test_support+eg2") {
configs += [ "//build/config/ios:xctest_config" ]
testonly = true
sources = [
"insecure_form_warning_app_interface.h",
"insecure_form_warning_app_interface_stub.mm",
]
deps = [
"//components/security_interstitials/core:insecure_form_util",
"//ios/chrome/test/earl_grey:eg_test_support+eg2",
"//ios/testing/earl_grey:eg_test_support+eg2",
]
}
source_set("eg_app_support+eg2") {
configs += [ "//build/config/ios:xctest_config" ]
testonly = true
sources = [
"insecure_form_warning_app_interface.h",
"insecure_form_warning_app_interface.mm",
]
deps = [
"//base",
"//components/content_settings/core/browser",
"//components/security_interstitials/core:insecure_form_util",
"//ios/chrome/browser/shared/model/browser_state",
"//ios/chrome/test/app:test_support",
"//ios/testing/earl_grey:eg_app_support+eg2",
"//ios/third_party/earl_grey2:app_framework+link",
"//ios/web/public",
"//net",
]
}
source_set("eg2_tests") {
configs += [ "//build/config/ios:xctest_config" ]
testonly = true
sources = [ "insecure_form_warning_egtest.mm" ]
deps = [
":eg_test_support+eg2",
"//components/policy:policy_code_generate",
"//components/security_interstitials/core",
"//components/strings",
"//ios/chrome/browser/overlays/model/public/web_content_area:constants",
"//ios/chrome/browser/policy/model:eg_test_support+eg2",
"//ios/chrome/browser/shared/model/prefs:pref_names",
"//ios/chrome/test:eg_test_support+eg2",
"//ios/chrome/test/earl_grey:eg_test_support+eg2",
"//ios/components/security_interstitials/https_only_mode:feature",
"//ios/net:test_support",
"//ios/testing:embedded_test_server_support",
"//ios/testing/earl_grey:eg_test_support+eg2",
"//ios/web/common:features",
"//ios/web/public/test:element_selector",
"//ios/web/public/test/http_server",
"//net:test_support",
"//ui/base",
"//url",
]
frameworks = [ "UIKit.framework" ]
}