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
173
174
175
176
177
178
179
180
181
182
183
184
185
|
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
if (is_android) {
import("//build/config/android/rules.gni")
}
static_library("browser") {
sources = [
"about_signin_internals.cc",
"about_signin_internals.h",
"account_fetcher_service.cc",
"account_fetcher_service.h",
"account_info.cc",
"account_info.h",
"account_info_fetcher.cc",
"account_info_fetcher.h",
"account_investigator.cc",
"account_investigator.h",
"account_reconcilor.cc",
"account_reconcilor.h",
"account_tracker_service.cc",
"account_tracker_service.h",
"android/component_jni_registrar.cc",
"android/component_jni_registrar.h",
"child_account_info_fetcher.cc",
"child_account_info_fetcher.h",
"child_account_info_fetcher_android.cc",
"child_account_info_fetcher_android.h",
"child_account_info_fetcher_impl.cc",
"child_account_info_fetcher_impl.h",
"device_activity_fetcher.cc",
"device_activity_fetcher.h",
"gaia_cookie_manager_service.cc",
"gaia_cookie_manager_service.h",
"profile_identity_provider.cc",
"profile_identity_provider.h",
"profile_oauth2_token_service.cc",
"profile_oauth2_token_service.h",
"refresh_token_annotation_request.cc",
"refresh_token_annotation_request.h",
"signin_client.cc",
"signin_client.h",
"signin_cookie_changed_subscription.cc",
"signin_cookie_changed_subscription.h",
"signin_error_controller.cc",
"signin_error_controller.h",
"signin_header_helper.cc",
"signin_header_helper.h",
"signin_internals_util.cc",
"signin_internals_util.h",
"signin_investigator.cc",
"signin_investigator.h",
"signin_manager.cc",
"signin_manager.h",
"signin_manager_base.cc",
"signin_manager_base.h",
"signin_metrics.cc",
"signin_metrics.h",
"signin_status_metrics_provider.cc",
"signin_status_metrics_provider.h",
"signin_status_metrics_provider_base.cc",
"signin_status_metrics_provider_base.h",
"signin_status_metrics_provider_delegate.cc",
"signin_status_metrics_provider_delegate.h",
"signin_tracker.cc",
"signin_tracker.h",
"webdata/token_service_table.cc",
"webdata/token_service_table.h",
"webdata/token_web_data.cc",
"webdata/token_web_data.h",
]
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
public_deps = [
"//components/signin/core/account_id",
"//components/signin/core/common",
]
deps = [
"//base",
"//base:i18n",
"//components/content_settings/core/browser",
"//components/content_settings/core/common",
"//components/google/core/browser",
"//components/invalidation/public",
"//components/keyed_service/core",
"//components/metrics",
"//components/os_crypt",
"//components/pref_registry",
"//components/prefs",
"//components/webdata/common",
"//crypto",
"//google_apis",
"//net",
"//sql",
"//third_party/icu",
]
if (is_chromeos) {
sources -= [
"signin_manager.cc",
"signin_status_metrics_provider.cc",
"signin_status_metrics_provider_delegate.cc",
]
}
if (is_android) {
sources -= [
"child_account_info_fetcher_impl.cc",
"child_account_info_fetcher_impl.h",
]
deps += [ "android:jni_headers" ]
}
}
static_library("test_support") {
testonly = true
sources = [
"fake_account_fetcher_service.cc",
"fake_account_fetcher_service.h",
"fake_auth_status_provider.cc",
"fake_auth_status_provider.h",
"fake_gaia_cookie_manager_service.cc",
"fake_gaia_cookie_manager_service.h",
"fake_profile_oauth2_token_service.cc",
"fake_profile_oauth2_token_service.h",
"fake_signin_manager.cc",
"fake_signin_manager.h",
"test_signin_client.cc",
"test_signin_client.h",
]
public_deps = [
":browser",
"//base",
"//components/prefs:test_support",
"//components/webdata/common",
"//google_apis:test_support",
"//net:test_support",
"//testing/gtest",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"account_info_unittest.cc",
"account_investigator_unittest.cc",
"account_tracker_service_unittest.cc",
"gaia_cookie_manager_service_unittest.cc",
"refresh_token_annotation_request_unittest.cc",
"signin_error_controller_unittest.cc",
"signin_header_helper_unittest.cc",
"signin_investigator_unittest.cc",
"signin_status_metrics_provider_unittest.cc",
"webdata/token_service_table_unittest.cc",
]
deps = [
":test_support",
"//components/content_settings/core/browser",
"//components/os_crypt:test_support",
"//components/pref_registry:pref_registry",
"//components/signin/core/common",
"//components/sync_preferences:test_support",
"//testing/gmock",
]
if (is_chromeos) {
sources -= [
"account_investigator_unittest.cc",
"signin_status_metrics_provider_unittest.cc",
]
}
}
if (is_android) {
java_cpp_enum("investigated_scenario_java") {
sources = [
"signin_investigator.h",
]
}
}
|