blob: dada5a3535bd01e376fc0cb4840584af81e3d393 [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 Blundell0a255cd2019-12-11 09:19:2510 "captive_portal_blocking_page.cc",
11 "captive_portal_blocking_page.h",
Colin Blundell8a0bf6252019-11-20 09:42:2712 "cert_report_helper.cc",
13 "cert_report_helper.h",
14 "certificate_error_report.cc",
15 "certificate_error_report.h",
Colin Blundella1aa27c22020-01-07 09:19:0816 "common_name_mismatch_handler.cc",
17 "common_name_mismatch_handler.h",
Carlos IL8e8d7882018-03-21 18:23:3618 "connection_help_ui.cc",
19 "connection_help_ui.h",
Christopher Thompsonbe7210f2019-11-22 22:37:3020 "known_interception_disclosure_ui.cc",
21 "known_interception_disclosure_ui.h",
Daniel Vogelheim7badd0d2019-02-04 14:42:1822 "origin_policy_interstitial_page.cc",
23 "origin_policy_interstitial_page.h",
Daniel Vogelheim6008f572018-09-24 14:35:1424 "origin_policy_ui.cc",
25 "origin_policy_ui.h",
jialiula2c069252017-01-05 18:13:0426 "security_interstitial_controller_client.cc",
27 "security_interstitial_controller_client.h",
28 "security_interstitial_page.cc",
29 "security_interstitial_page.h",
Carlos ILe2201a452018-05-10 20:19:1230 "security_interstitial_tab_helper.cc",
31 "security_interstitial_tab_helper.h",
Colin Blundell72dfce12019-11-21 10:51:4332 "ssl_blocking_page.cc",
33 "ssl_blocking_page.h",
34 "ssl_blocking_page_base.cc",
35 "ssl_blocking_page_base.h",
Evan Stade1e71d6dd2019-10-29 03:04:4936 "ssl_cert_reporter.h",
37 "ssl_error_navigation_throttle.cc",
38 "ssl_error_navigation_throttle.h",
jialiul792a6662016-12-03 01:44:1039 "unsafe_resource.cc",
40 "unsafe_resource.h",
Carlos IL8e8d7882018-03-21 18:23:3641 "urls.cc",
42 "urls.h",
jialiul792a6662016-12-03 01:44:1043 ]
44
ntfschra3234332016-12-22 01:15:4245 public_deps = [
Tim Volodinee45938472017-09-21 10:08:2246 "//components/safe_browsing/db:hit_report",
ntfschra3234332016-12-22 01:15:4247 ]
48
jialiul792a6662016-12-03 01:44:1049 deps = [
Colin Blundell8a0bf6252019-11-20 09:42:2750 ":proto",
jialiul792a6662016-12-03 01:44:1051 "//base",
Colin Blundell8a0bf6252019-11-20 09:42:2752 "//build:branding_buildflags",
Colin Blundell0a255cd2019-12-11 09:19:2553 "//components/captive_portal",
Colin Blundell8a0bf6252019-11-20 09:42:2754 "//components/network_time",
jialiula2c069252017-01-05 18:13:0455 "//components/prefs:prefs",
56 "//components/resources",
timvolodine89cf11712017-05-15 18:05:0757 "//components/safe_browsing/common:safe_browsing_prefs",
Tim Volodinee45938472017-09-21 10:08:2258 "//components/safe_browsing/db:hit_report",
59 "//components/safe_browsing/db:util",
jialiula2c069252017-01-05 18:13:0460 "//components/security_interstitials/core:core",
Colin Blundell61902d92020-01-06 11:33:1761 "//components/ssl_errors",
Carlos IL8e8d7882018-03-21 18:23:3662 "//components/strings:components_strings_grit",
Colin Blundell0a255cd2019-12-11 09:19:2563 "//components/url_formatter",
Colin Blundell8a0bf6252019-11-20 09:42:2764 "//components/user_prefs",
65 "//components/variations",
66 "//components/version_info",
jialiul792a6662016-12-03 01:44:1067 "//content/public/browser",
jialiula2c069252017-01-05 18:13:0468 "//content/public/common",
Andy Paicu8b6f8712019-07-16 15:02:2669 "//services/network/public/cpp:cpp",
jialiul792a6662016-12-03 01:44:1070 ]
Colin Blundell0a255cd2019-12-11 09:19:2571
72 if (is_win || is_mac) {
73 deps += [ "//components/wifi" ]
74 }
jialiul792a6662016-12-03 01:44:1075}
Carlos ILe2201a452018-05-10 20:19:1276
Colin Blundell8a0bf6252019-11-20 09:42:2777proto_library("proto") {
78 sources = [
79 "cert_logger.proto",
80 ]
81}
82
Carlos ILe2201a452018-05-10 20:19:1283source_set("unit_tests") {
84 testonly = true
85 sources = [
Colin Blundell8a0bf6252019-11-20 09:42:2786 "certificate_error_report_unittest.cc",
Carlos ILe2201a452018-05-10 20:19:1287 "security_interstitial_tab_helper_unittest.cc",
Colin Blundell463ed0a2019-11-19 11:45:3788 "ssl_error_navigation_throttle_unittest.cc",
Carlos ILe2201a452018-05-10 20:19:1289 ]
90
91 deps = [
Colin Blundell8a0bf6252019-11-20 09:42:2792 ":proto",
Carlos ILe2201a452018-05-10 20:19:1293 ":security_interstitial_page",
94 "//base",
95 "//base/test:test_support",
Colin Blundell8a0bf6252019-11-20 09:42:2796 "//components/network_time:network_time_test_support",
97 "//components/prefs:test_support",
Carlos ILe2201a452018-05-10 20:19:1298 "//components/security_interstitials/core:core",
Colin Blundell8a0bf6252019-11-20 09:42:2799 "//components/version_info",
Carlos ILe2201a452018-05-10 20:19:12100 "//content/public/browser",
101 "//content/public/common",
102 "//content/test:test_support",
103 "//net:",
104 "//net:test_support",
Colin Blundell8a0bf6252019-11-20 09:42:27105 "//services/network:test_support",
Carlos ILe2201a452018-05-10 20:19:12106 "//testing/gtest",
107 ]
108}