File: BUILD.gn

package info (click to toggle)
chromium 138.0.7204.157-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 6,071,864 kB
  • sloc: cpp: 34,936,859; ansic: 7,176,967; javascript: 4,110,704; python: 1,419,953; asm: 946,768; xml: 739,967; 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 (161 lines) | stat: -rw-r--r-- 5,535 bytes parent folder | download | duplicates (4)
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
# Copyright 2021 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build/buildflag_header.gni")
import("//build/config/chrome_build.gni")
import("//mojo/public/tools/bindings/mojom.gni")

static_library("core") {
  sources = [
    "cluster_finalizer.h",
    "cluster_interaction_state_processor.cc",
    "cluster_interaction_state_processor.h",
    "cluster_metrics_utils.cc",
    "cluster_metrics_utils.h",
    "cluster_processor.h",
    "cluster_similarity_heuristics_processor.cc",
    "cluster_similarity_heuristics_processor.h",
    "clusterer.cc",
    "clusterer.h",
    "clustering_backend.h",
    "config.cc",
    "config.h",
    "content_visibility_cluster_finalizer.cc",
    "content_visibility_cluster_finalizer.h",
    "context_clusterer_history_service_observer.cc",
    "context_clusterer_history_service_observer.h",
    "features.cc",
    "features.h",
    "file_clustering_backend.cc",
    "file_clustering_backend.h",
    "filter_cluster_processor.cc",
    "filter_cluster_processor.h",
    "history_cluster_type_utils.cc",
    "history_cluster_type_utils.h",
    "history_clusters_db_tasks.cc",
    "history_clusters_db_tasks.h",
    "history_clusters_debug_jsons.cc",
    "history_clusters_debug_jsons.h",
    "history_clusters_prefs.cc",
    "history_clusters_prefs.h",
    "history_clusters_service.cc",
    "history_clusters_service.h",
    "history_clusters_service_task.h",
    "history_clusters_service_task_get_most_recent_clusters.cc",
    "history_clusters_service_task_get_most_recent_clusters.h",
    "history_clusters_service_task_get_most_recent_clusters_for_ui.cc",
    "history_clusters_service_task_get_most_recent_clusters_for_ui.h",
    "history_clusters_service_task_update_cluster_triggerability.cc",
    "history_clusters_service_task_update_cluster_triggerability.h",
    "history_clusters_service_task_update_clusters.cc",
    "history_clusters_service_task_update_clusters.h",
    "history_clusters_types.cc",
    "history_clusters_types.h",
    "history_clusters_util.cc",
    "history_clusters_util.h",
    "keyword_cluster_finalizer.cc",
    "keyword_cluster_finalizer.h",
    "label_cluster_finalizer.cc",
    "label_cluster_finalizer.h",
    "noisy_cluster_finalizer.cc",
    "noisy_cluster_finalizer.h",
    "on_device_clustering_backend.cc",
    "on_device_clustering_backend.h",
    "on_device_clustering_features.cc",
    "on_device_clustering_features.h",
    "on_device_clustering_util.cc",
    "on_device_clustering_util.h",
    "query_clusters_state.cc",
    "query_clusters_state.h",
    "ranking_cluster_finalizer.cc",
    "ranking_cluster_finalizer.h",
    "similar_visit.h",
    "similar_visit_deduper_cluster_finalizer.cc",
    "similar_visit_deduper_cluster_finalizer.h",
    "single_visit_cluster_finalizer.cc",
    "single_visit_cluster_finalizer.h",
    "url_constants.cc",
    "url_constants.h",
  ]
  deps = [
    "//base",
    "//components/history/core/browser",
    "//components/history_clusters/public/mojom:mojo_bindings",
    "//components/keyed_service/core",
    "//components/optimization_guide/core",
    "//components/pref_registry",
    "//components/prefs",
    "//components/query_parser",
    "//components/search",
    "//components/search_engines",
    "//components/site_engagement/core",
    "//components/strings:components_strings_grit",
    "//components/url_formatter",
    "//net",
    "//services/network/public/cpp",
    "//services/network/public/mojom",
    "//ui/base",
    "//url",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "cluster_interaction_state_processor_unittest.cc",
    "cluster_similarity_heuristics_processor_unittest.cc",
    "clusterer_unittest.cc",
    "config_unittest.cc",
    "content_visibility_cluster_finalizer_unittest.cc",
    "context_clusterer_history_service_observer_unittest.cc",
    "file_clustering_backend_unittest.cc",
    "filter_cluster_processor_unittest.cc",
    "history_clusters_db_tasks_unittest.cc",
    "history_clusters_service_unittest.cc",
    "history_clusters_util_unittest.cc",
    "keyword_cluster_finalizer_unittest.cc",
    "label_cluster_finalizer_unittest.cc",
    "noisy_cluster_finalizer_unittest.cc",
    "on_device_clustering_backend_unittest.cc",
    "on_device_clustering_util_unittest.cc",
    "query_clusters_state_unittest.cc",
    "ranking_cluster_finalizer_unittest.cc",
    "similar_visit_deduper_cluster_finalizer_unittest.cc",
    "single_visit_cluster_finalizer_unittest.cc",
  ]
  deps = [
    ":core",
    ":test_support",
    "//base/test:test_support",
    "//components/history/core/browser",
    "//components/history/core/test",
    "//components/optimization_guide/core",
    "//components/optimization_guide/core:test_support",
    "//components/page_image_service",
    "//components/prefs:test_support",
    "//components/search_engines",
    "//components/search_engines:test_support",
    "//components/site_engagement/core",
    "//services/network:test_support",
    "//testing/gtest",
  ]
}

source_set("test_support") {
  testonly = true
  sources = [
    "clustering_test_utils.cc",
    "clustering_test_utils.h",
    "history_clusters_service_test_api.cc",
    "history_clusters_service_test_api.h",
    "test_history_clusters_service.cc",
    "test_history_clusters_service.h",
  ]
  public_deps = [ ":core" ]
  deps = [
    "//base/test:test_support",
    "//components/history/core/browser",
    "//components/history/core/test",
  ]
}