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
|
# Copyright 2024 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//third_party/protobuf/proto_library.gni")
static_library("ip_protection") {
visibility = [
":*",
"//chrome/browser:*",
"//chrome/browser/profiles:profiles_extra_parts_impl",
]
sources = [
"ip_protection_core_host.cc",
"ip_protection_core_host.h",
"ip_protection_core_host_factory.cc",
"ip_protection_core_host_factory.h",
"ip_protection_switches.cc",
"ip_protection_switches.h",
]
public_deps = [ "//chrome/browser:browser_public_dependencies" ]
deps = [
"//base",
"//build:branding_buildflags",
"//chrome/browser:browser_process",
"//chrome/browser/profiles:profile",
"//chrome/common:channel_info",
"//components/ip_protection:get_proxy_config_proto",
"//components/ip_protection/common:ip_protection_data_types",
"//components/ip_protection/common:ip_protection_probabilistic_reveal_token_direct_fetcher",
"//components/ip_protection/common:ip_protection_proxy_config_direct_fetcher",
"//components/ip_protection/common:ip_protection_telemetry",
"//components/ip_protection/common:ip_protection_telemetry_uma",
"//components/ip_protection/common:ip_protection_token_direct_fetcher",
"//components/prefs:prefs",
"//components/privacy_sandbox:features",
"//components/privacy_sandbox:tracking_protection_prefs",
"//components/privacy_sandbox:tracking_protection_settings",
"//components/signin/public/identity_manager:identity_manager",
"//components/variations/service:service",
"//content/public/browser",
"//google_apis:google_apis",
"//google_apis/common:request_util",
"//mojo/public/cpp/bindings:bindings",
"//net:net",
"//net/third_party/quiche:blind_sign_auth",
"//services/network/public/cpp:cpp",
"//services/network/public/mojom:mojom",
"//services/network/public/mojom:url_loader_base",
"//third_party/anonymous_tokens:anonymous_tokens_cc_proto",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"ip_protection_core_host_factory_unittest.cc",
"ip_protection_core_host_unittest.cc",
]
deps = [
":ip_protection",
"//base/test:test_support",
"//chrome/test:test_support",
"//components/ip_protection/common:ip_protection_config_http",
"//components/ip_protection/common:ip_protection_data_types",
"//components/ip_protection/common:ip_protection_proxy_config_direct_fetcher",
"//components/ip_protection/common:mock_blind_sign_auth",
"//components/prefs:test_support",
"//components/privacy_sandbox:features",
"//components/privacy_sandbox:privacy_sandbox_prefs",
"//components/privacy_sandbox:tracking_protection_settings",
"//components/signin/public/identity_manager:identity_manager",
"//components/signin/public/identity_manager:test_support",
"//components/variations/service:service",
"//content/test:test_support",
"//net/third_party/quiche:blind_sign_auth",
"//net/traffic_annotation:test_support",
"//services/network:test_support",
"//testing/gtest:gtest",
"//third_party/anonymous_tokens:anonymous_tokens_cc_proto",
]
}
source_set("browser_tests") {
testonly = true
sources = [ "ip_protection_core_host_browsertest.cc" ]
defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
deps = [
":ip_protection",
"//base/test:test_support",
"//chrome/browser:browser_process",
"//chrome/browser/policy:test_support",
"//chrome/test:test_support",
"//components/ip_protection/common:ip_protection_data_types",
"//components/privacy_sandbox:features",
"//components/signin/public/identity_manager:identity_manager",
"//components/signin/public/identity_manager:test_support",
"//components/variations/service:service",
"//third_party/anonymous_tokens:anonymous_tokens_cc_proto",
]
if (is_android) {
deps += [ "//chrome/test:test_support_ui_android" ]
} else {
deps += [ "//chrome/test:test_support_ui" ]
}
}
|