1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172
|
# Copyright 2019 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
static_library("policy_engine") {
sources = [
"policy_engine.cc",
"policy_engine.h",
]
configs += [ "//build/config/compiler:wexit_time_destructors" ]
deps = [
"//base:base",
"//components/enterprise/connectors/core",
"//components/prefs",
"//components/safe_browsing/core/common",
"//components/safe_browsing/core/common:safe_browsing_prefs",
"//components/safe_browsing/core/common/proto:realtimeapi_proto",
"//components/unified_consent",
"//components/user_prefs",
"//components/variations/service",
"//services/network/public/cpp:cpp",
"//services/network/public/mojom",
]
}
static_library("url_lookup_service") {
sources = [
"url_lookup_service.cc",
"url_lookup_service.h",
]
configs += [ "//build/config/compiler:wexit_time_destructors" ]
deps = [
":policy_engine",
":url_lookup_service_base",
"//base:base",
"//components/enterprise/common/proto:connectors_proto",
"//components/prefs",
"//components/safe_browsing:buildflags",
"//components/safe_browsing/core/browser:referrer_chain_provider",
"//components/safe_browsing/core/browser:referring_app_info",
"//components/safe_browsing/core/browser:token_fetcher",
"//components/safe_browsing/core/browser:verdict_cache_manager",
"//components/safe_browsing/core/browser/db:v4_protocol_manager_util",
"//components/safe_browsing/core/browser/utils",
"//components/safe_browsing/core/common",
"//components/safe_browsing/core/common:safe_browsing_prefs",
"//components/safe_browsing/core/common/proto:csd_proto",
"//components/safe_browsing/core/common/proto:realtimeapi_proto",
"//components/unified_consent",
"//components/variations/service:service",
"//services/network/public/cpp:cpp",
"//url:url",
]
}
static_library("enterprise_url_lookup_service") {
sources = [
"chrome_enterprise_url_lookup_service.cc",
"chrome_enterprise_url_lookup_service.h",
]
deps = [
":policy_engine",
":url_lookup_service_base",
"//base",
"//components/enterprise/common/proto:connectors_proto",
"//components/enterprise/connectors/core",
"//components/policy/core/common",
"//components/prefs",
"//components/safe_browsing/core/browser:referrer_chain_provider",
"//components/safe_browsing/core/browser:referring_app_info",
"//components/safe_browsing/core/browser:token_fetcher",
"//components/safe_browsing/core/browser:verdict_cache_manager",
"//components/safe_browsing/core/browser/sync",
"//components/safe_browsing/core/common",
"//components/safe_browsing/core/common:features",
"//components/safe_browsing/core/common/proto:csd_proto",
"//components/safe_browsing/core/common/proto:realtimeapi_proto",
"//components/signin/public/identity_manager",
"//net/traffic_annotation",
"//services/network/public/cpp",
"//url",
]
}
static_library("url_lookup_service_base") {
sources = [
"url_lookup_service_base.cc",
"url_lookup_service_base.h",
]
configs += [ "//build/config/compiler:wexit_time_destructors" ]
deps = [
"//base:base",
"//components/enterprise/common/proto:connectors_proto",
"//components/enterprise/connectors/core",
"//components/keyed_service/core",
"//components/prefs",
"//components/safe_browsing:buildflags",
"//components/safe_browsing/core/browser:referrer_chain_provider",
"//components/safe_browsing/core/browser:referring_app_info",
"//components/safe_browsing/core/browser:token_fetcher",
"//components/safe_browsing/core/browser:verdict_cache_manager",
"//components/safe_browsing/core/browser/db:v4_protocol_manager_util",
"//components/safe_browsing/core/browser/utils",
"//components/safe_browsing/core/common:common",
"//components/safe_browsing/core/common:safe_browsing_prefs",
"//components/safe_browsing/core/common/proto:csd_proto",
"//components/safe_browsing/core/common/proto:realtimeapi_proto",
"//components/sessions:session_id",
"//services/network/public/cpp:cpp",
"//url:url",
]
}
static_library("test_support") {
testonly = true
sources = [
"fake_url_lookup_service.cc",
"fake_url_lookup_service.h",
]
public_deps = [
":url_lookup_service_base",
"//base",
"//components/enterprise/common/proto:connectors_proto",
"//components/safe_browsing/core/common/proto:csd_proto",
"//components/safe_browsing/core/common/proto:realtimeapi_proto",
"//net/traffic_annotation:test_support",
"//services/network/public/cpp:cpp",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"policy_engine_unittest.cc",
"url_lookup_service_unittest.cc",
]
deps = [
":policy_engine",
":url_lookup_service",
"//base/test:test_support",
"//components/content_settings/core/browser",
"//components/enterprise/connectors/core",
"//components/safe_browsing:buildflags",
"//components/safe_browsing/core/browser:referrer_chain_provider",
"//components/safe_browsing/core/browser:referring_app_info",
"//components/safe_browsing/core/browser:token_fetcher",
"//components/safe_browsing/core/browser:token_fetcher_testing_helper",
"//components/safe_browsing/core/browser:verdict_cache_manager",
"//components/safe_browsing/core/common",
"//components/safe_browsing/core/common:safe_browsing_prefs",
"//components/sync_preferences:test_support",
"//components/unified_consent",
"//components/user_prefs",
"//components/variations/service:service",
"//services/network:test_support",
"//services/network/public/cpp:cpp",
"//services/network/public/mojom",
"//testing/gtest",
"//third_party/googletest:gmock",
]
if (is_ios) {
deps += [ "//components/test:safe_browsing_test_bundle_data" ]
}
}
|