File: BUILD.gn

package info (click to toggle)
chromium 139.0.7258.127-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 6,122,068 kB
  • sloc: cpp: 35,100,771; ansic: 7,163,530; javascript: 4,103,002; python: 1,436,920; asm: 946,517; xml: 746,709; pascal: 187,653; perl: 88,691; sh: 88,436; objc: 79,953; sql: 51,488; cs: 44,583; fortran: 24,137; makefile: 22,147; tcl: 15,277; php: 13,980; yacc: 8,984; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (115 lines) | stat: -rw-r--r-- 4,107 bytes parent folder | download | duplicates (3)
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" ]
  }
}