blob: 509cab33d7e1899b1e450fae2525a8421c6a023f [file] [log] [blame]
jialiul792a6662016-12-03 01:44:101# Copyright 2016 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
Colin Blundell8a0bf6252019-11-20 09:42:274import("//third_party/protobuf/proto_library.gni")
jialiul792a6662016-12-03 01:44:105
jialiula2c069252017-01-05 18:13:046static_library("security_interstitial_page") {
jialiul792a6662016-12-03 01:44:107 sources = [
Colin Blundell61902d92020-01-06 11:33:178 "bad_clock_blocking_page.cc",
9 "bad_clock_blocking_page.h",
Colin Blundell4c0f5712020-01-20 12:35:0010 "blocked_interception_blocking_page.cc",
11 "blocked_interception_blocking_page.h",
Colin Blundell0a255cd2019-12-11 09:19:2512 "captive_portal_blocking_page.cc",
13 "captive_portal_blocking_page.h",
Colin Blundell8a0bf6252019-11-20 09:42:2714 "cert_report_helper.cc",
15 "cert_report_helper.h",
16 "certificate_error_report.cc",
17 "certificate_error_report.h",
Colin Blundella1aa27c22020-01-07 09:19:0818 "common_name_mismatch_handler.cc",
19 "common_name_mismatch_handler.h",
Carlos IL8e8d7882018-03-21 18:23:3620 "connection_help_ui.cc",
21 "connection_help_ui.h",
Christopher Thompsonbe7210f2019-11-22 22:37:3022 "known_interception_disclosure_ui.cc",
23 "known_interception_disclosure_ui.h",
Colin Blundell04197f22020-01-14 13:28:2724 "mitm_software_blocking_page.cc",
25 "mitm_software_blocking_page.h",
Daniel Vogelheim7badd0d2019-02-04 14:42:1826 "origin_policy_interstitial_page.cc",
27 "origin_policy_interstitial_page.h",
Daniel Vogelheim6008f572018-09-24 14:35:1428 "origin_policy_ui.cc",
29 "origin_policy_ui.h",
jialiula2c069252017-01-05 18:13:0430 "security_interstitial_controller_client.cc",
31 "security_interstitial_controller_client.h",
32 "security_interstitial_page.cc",
33 "security_interstitial_page.h",
Carlos ILe2201a452018-05-10 20:19:1234 "security_interstitial_tab_helper.cc",
35 "security_interstitial_tab_helper.h",
Colin Blundell72dfce12019-11-21 10:51:4336 "ssl_blocking_page.cc",
37 "ssl_blocking_page.h",
38 "ssl_blocking_page_base.cc",
39 "ssl_blocking_page_base.h",
Evan Stade1e71d6dd2019-10-29 03:04:4940 "ssl_cert_reporter.h",
41 "ssl_error_navigation_throttle.cc",
42 "ssl_error_navigation_throttle.h",
jialiul792a6662016-12-03 01:44:1043 "unsafe_resource.cc",
44 "unsafe_resource.h",
Carlos IL8e8d7882018-03-21 18:23:3645 "urls.cc",
46 "urls.h",
jialiul792a6662016-12-03 01:44:1047 ]
48
Nico Weber83c5a362020-01-13 19:25:5649 public_deps = [ "//components/safe_browsing/core/db:hit_report" ]
ntfschra3234332016-12-22 01:15:4250
jialiul792a6662016-12-03 01:44:1051 deps = [
Colin Blundell8a0bf6252019-11-20 09:42:2752 ":proto",
jialiul792a6662016-12-03 01:44:1053 "//base",
Colin Blundell8a0bf6252019-11-20 09:42:2754 "//build:branding_buildflags",
Colin Blundell7cf3fe32020-01-23 09:52:4955 "//components/captive_portal/core",
Colin Blundell8a0bf6252019-11-20 09:42:2756 "//components/network_time",
jialiula2c069252017-01-05 18:13:0457 "//components/prefs:prefs",
58 "//components/resources",
Ali Jumafb3dc1f2020-01-07 17:33:4759 "//components/safe_browsing/core/common:safe_browsing_prefs",
60 "//components/safe_browsing/core/db:hit_report",
61 "//components/safe_browsing/core/db:util",
jialiula2c069252017-01-05 18:13:0462 "//components/security_interstitials/core:core",
Colin Blundell61902d92020-01-06 11:33:1763 "//components/ssl_errors",
Carlos IL8e8d7882018-03-21 18:23:3664 "//components/strings:components_strings_grit",
Colin Blundell0a255cd2019-12-11 09:19:2565 "//components/url_formatter",
Colin Blundell8a0bf6252019-11-20 09:42:2766 "//components/user_prefs",
67 "//components/variations",
68 "//components/version_info",
jialiul792a6662016-12-03 01:44:1069 "//content/public/browser",
jialiula2c069252017-01-05 18:13:0470 "//content/public/common",
Andy Paicu8b6f8712019-07-16 15:02:2671 "//services/network/public/cpp:cpp",
jialiul792a6662016-12-03 01:44:1072 ]
Colin Blundell0a255cd2019-12-11 09:19:2573
74 if (is_win || is_mac) {
75 deps += [ "//components/wifi" ]
76 }
jialiul792a6662016-12-03 01:44:1077}
Carlos ILe2201a452018-05-10 20:19:1278
Colin Blundell8a0bf6252019-11-20 09:42:2779proto_library("proto") {
80 sources = [
81 "cert_logger.proto",
Colin Blundell2d95af652020-01-07 11:29:5482 "ssl_error_assistant.proto",
Colin Blundell8a0bf6252019-11-20 09:42:2783 ]
84}
85
Carlos ILe2201a452018-05-10 20:19:1286source_set("unit_tests") {
87 testonly = true
88 sources = [
Colin Blundell8a0bf6252019-11-20 09:42:2789 "certificate_error_report_unittest.cc",
Carlos ILe2201a452018-05-10 20:19:1290 "security_interstitial_tab_helper_unittest.cc",
Colin Blundell463ed0a2019-11-19 11:45:3791 "ssl_error_navigation_throttle_unittest.cc",
Carlos ILe2201a452018-05-10 20:19:1292 ]
93
94 deps = [
Colin Blundell8a0bf6252019-11-20 09:42:2795 ":proto",
Carlos ILe2201a452018-05-10 20:19:1296 ":security_interstitial_page",
97 "//base",
98 "//base/test:test_support",
Colin Blundell8a0bf6252019-11-20 09:42:2799 "//components/network_time:network_time_test_support",
100 "//components/prefs:test_support",
Carlos ILe2201a452018-05-10 20:19:12101 "//components/security_interstitials/core:core",
Colin Blundell8a0bf6252019-11-20 09:42:27102 "//components/version_info",
Carlos ILe2201a452018-05-10 20:19:12103 "//content/public/browser",
104 "//content/public/common",
105 "//content/test:test_support",
106 "//net:",
107 "//net:test_support",
Colin Blundell8a0bf6252019-11-20 09:42:27108 "//services/network:test_support",
Carlos ILe2201a452018-05-10 20:19:12109 "//testing/gtest",
110 ]
111}