naiveproxy/ios/chrome/browser/ssl/BUILD.gn
2018-08-14 22:19:20 +00:00

83 lines
2.3 KiB
Plaintext

# 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.
source_set("ssl") {
configs += [ "//build/config/compiler:enable_arc" ]
sources = [
"captive_portal_detector_tab_helper.h",
"captive_portal_detector_tab_helper.mm",
"captive_portal_detector_tab_helper_delegate.h",
"captive_portal_metrics.h",
"captive_portal_metrics_tab_helper.h",
"captive_portal_metrics_tab_helper.mm",
"insecure_input_tab_helper.h",
"insecure_input_tab_helper.mm",
"ios_captive_portal_blocking_page.h",
"ios_captive_portal_blocking_page.mm",
"ios_security_state_tab_helper.h",
"ios_security_state_tab_helper.mm",
"ios_ssl_blocking_page.h",
"ios_ssl_blocking_page.mm",
"ios_ssl_error_handler.h",
"ios_ssl_error_handler.mm",
]
deps = [
":feature_flags",
"//base",
"//base:i18n",
"//components/autofill/ios/form_util",
"//components/captive_portal",
"//components/security_interstitials/core",
"//components/security_state/core",
"//components/security_state/ios",
"//components/strings",
"//components/url_formatter",
"//ios/chrome/app/strings",
"//ios/chrome/browser/browser_state",
"//ios/chrome/browser/interstitials",
"//ios/chrome/browser/tabs",
"//ios/chrome/browser/ui/util",
"//ios/public/provider/chrome/browser",
"//ios/web",
"//net",
"//ui/base",
"//url",
]
}
source_set("feature_flags") {
configs += [ "//build/config/compiler:enable_arc" ]
sources = [
"captive_portal_features.cc",
"captive_portal_features.h",
]
deps = [
"//base",
]
}
source_set("unit_tests") {
configs += [ "//build/config/compiler:enable_arc" ]
testonly = true
sources = [
"ios_captive_portal_blocking_page_unittest.mm",
"ios_security_state_tab_helper_unittest.mm",
"ios_ssl_error_handler_unittest.mm",
]
deps = [
":feature_flags",
":ssl",
"//base/test:test_support",
"//components/security_state/core",
"//ios/chrome/browser/browser_state:test_support",
"//ios/chrome/browser/web:test_support",
"//ios/web",
"//ios/web/public/test",
"//net",
"//net:test_support",
"//services/network:test_support",
"//third_party/ocmock",
]
}