naiveproxy/ios/chrome/browser/ssl/BUILD.gn
2018-01-28 13:32:06 -05:00

81 lines
2.2 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 = [
":features",
"//base",
"//base:i18n",
"//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("features") {
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 = [
":ssl",
"//components/security_state/core",
"//ios/chrome/browser/browser_state:test_support",
"//ios/chrome/browser/ssl:features",
"//ios/chrome/browser/web:test_support",
"//ios/testing:ios_test_support",
"//ios/web",
"//ios/web/public/test",
"//net",
"//net:test_support",
"//third_party/ocmock",
]
}