File: BUILD.gn

package info (click to toggle)
chromium 138.0.7204.183-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 6,071,908 kB
  • sloc: cpp: 34,937,088; ansic: 7,176,967; javascript: 4,110,704; python: 1,419,953; asm: 946,768; xml: 739,971; pascal: 187,324; sh: 89,623; perl: 88,663; objc: 79,944; sql: 50,304; cs: 41,786; fortran: 24,137; makefile: 21,806; php: 13,980; tcl: 13,166; yacc: 8,925; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (164 lines) | stat: -rw-r--r-- 6,711 bytes parent folder | download | duplicates (7)
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
# Copyright 2023 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")

assert(is_chromeos, "Non-ChromeOS builds cannot depend on //ash")

source_set("fresnel_prefs") {
  public_deps = [ "//components/prefs:prefs" ]

  deps = [ "//base" ]

  sources = [
    "//chromeos/ash/components/report/prefs/fresnel_pref_names.cc",
    "//chromeos/ash/components/report/prefs/fresnel_pref_names.h",
  ]
}

proto_library("fresnel_service_proto") {
  sources = [ "//chromeos/ash/components/report/proto/fresnel_service.proto" ]

  extra_configs =
      [ "//third_party/private_membership:private_membership_config" ]

  import_dirs = [
    "//third_party/private_membership/src",
    "//third_party/shell-encryption/src",
    ".",
  ]

  proto_in_dir = "//"

  deps = [ "//third_party/private_membership:private_membership_proto" ]
}

source_set("utils") {
  deps = [
    ":fresnel_prefs",
    ":fresnel_service_proto",
    "//base",
    "//chromeos/ash/components/dbus/private_computing:private_computing_proto",
    "//chromeos/ash/components/policy/weekly_time",
    "//chromeos/ash/components/system",
    "//components/prefs:prefs",
    "//components/version_info",
    "//crypto:crypto",
    "//google_apis:google_apis",
    "//services/network/public/cpp",
    "//third_party/icu",
    "//third_party/private_membership:private_membership",
    "//url",
  ]

  sources = [
    "//chromeos/ash/components/report/utils/device_metadata_utils.cc",
    "//chromeos/ash/components/report/utils/device_metadata_utils.h",
    "//chromeos/ash/components/report/utils/network_utils.cc",
    "//chromeos/ash/components/report/utils/network_utils.h",
    "//chromeos/ash/components/report/utils/pref_utils.cc",
    "//chromeos/ash/components/report/utils/pref_utils.h",
    "//chromeos/ash/components/report/utils/psm_utils.cc",
    "//chromeos/ash/components/report/utils/psm_utils.h",
    "//chromeos/ash/components/report/utils/test_utils.cc",
    "//chromeos/ash/components/report/utils/test_utils.h",
    "//chromeos/ash/components/report/utils/time_utils.cc",
    "//chromeos/ash/components/report/utils/time_utils.h",
    "//chromeos/ash/components/report/utils/uma_utils.cc",
    "//chromeos/ash/components/report/utils/uma_utils.h",
  ]
}

component("report") {
  output_name = "ash_report"
  defines = [ "IS_CHROMEOS_ASH_COMPONENTS_REPORT_IMPL" ]

  deps = [
    ":fresnel_prefs",
    ":fresnel_service_proto",
    ":utils",
    "//ash/constants:constants",
    "//base",
    "//chromeos/ash/components/dbus/private_computing:private_computing",
    "//chromeos/ash/components/dbus/session_manager",
    "//chromeos/ash/components/dbus/system_clock:system_clock",
    "//chromeos/ash/components/network",
    "//chromeos/ash/components/system",
    "//components/policy/core/common:common_constants",
    "//components/prefs:prefs",
    "//components/version_info",
    "//services/network/public/cpp",
    "//third_party/private_membership:private_membership",
  ]

  sources = [
    "//chromeos/ash/components/report/device_metrics/actives/one_day_impl.cc",
    "//chromeos/ash/components/report/device_metrics/actives/one_day_impl.h",
    "//chromeos/ash/components/report/device_metrics/actives/twenty_eight_day_impl.cc",
    "//chromeos/ash/components/report/device_metrics/actives/twenty_eight_day_impl.h",
    "//chromeos/ash/components/report/device_metrics/churn/active_status.cc",
    "//chromeos/ash/components/report/device_metrics/churn/active_status.h",
    "//chromeos/ash/components/report/device_metrics/churn/cohort_impl.cc",
    "//chromeos/ash/components/report/device_metrics/churn/cohort_impl.h",
    "//chromeos/ash/components/report/device_metrics/churn/observation_impl.cc",
    "//chromeos/ash/components/report/device_metrics/churn/observation_impl.h",
    "//chromeos/ash/components/report/device_metrics/use_case/psm_client_manager.cc",
    "//chromeos/ash/components/report/device_metrics/use_case/psm_client_manager.h",
    "//chromeos/ash/components/report/device_metrics/use_case/real_psm_client_manager.cc",
    "//chromeos/ash/components/report/device_metrics/use_case/real_psm_client_manager.h",
    "//chromeos/ash/components/report/device_metrics/use_case/stub_psm_client_manager.cc",
    "//chromeos/ash/components/report/device_metrics/use_case/stub_psm_client_manager.h",
    "//chromeos/ash/components/report/device_metrics/use_case/use_case.cc",
    "//chromeos/ash/components/report/device_metrics/use_case/use_case.h",
    "//chromeos/ash/components/report/report_controller.cc",
    "//chromeos/ash/components/report/report_controller.h",
  ]
}

source_set("unit_tests") {
  testonly = true

  sources = [
    "//chromeos/ash/components/report/device_metrics/actives/one_day_impl_unittest.cc",
    "//chromeos/ash/components/report/device_metrics/actives/twenty_eight_day_impl_unittest.cc",
    "//chromeos/ash/components/report/device_metrics/churn/active_status_unittest.cc",
    "//chromeos/ash/components/report/device_metrics/churn/cohort_impl_unittest.cc",
    "//chromeos/ash/components/report/device_metrics/churn/observation_impl_unittest.cc",
    "//chromeos/ash/components/report/report_controller_unittest.cc",
    "//chromeos/ash/components/report/utils/device_metadata_utils_unittest.cc",
    "//chromeos/ash/components/report/utils/network_utils_unittest.cc",
    "//chromeos/ash/components/report/utils/pref_utils_unittest.cc",
    "//chromeos/ash/components/report/utils/psm_utils_unittest.cc",
    "//chromeos/ash/components/report/utils/test_utils_unittest.cc",
    "//chromeos/ash/components/report/utils/time_utils_unittest.cc",
    "//chromeos/ash/components/report/utils/uma_utils_unittest.cc",
  ]

  deps = [
    ":fresnel_prefs",
    ":fresnel_service_proto",
    ":report",
    ":utils",
    "//ash/constants:constants",
    "//base",
    "//base/test:test_support",
    "//chromeos/ash/components/dbus/private_computing:private_computing",
    "//chromeos/ash/components/dbus/session_manager:session_manager",
    "//chromeos/ash/components/dbus/system_clock:system_clock",
    "//chromeos/ash/components/network",
    "//chromeos/ash/components/network:test_support",
    "//chromeos/ash/components/system",
    "//components/prefs:test_support",
    "//components/version_info:channel",
    "//services/network:test_support",
    "//testing/gtest",
    "//third_party/icu",
    "//third_party/private_membership:private_membership",
  ]

  data = [
    # TODO(crbug.com/40248354): Script should binarypb from textpb.
    "//chromeos/ash/components/report/device_metrics/testing/preserved_file_test_data.binarypb",
  ]
}