Roll src/third_party/WebKit 9f7fb92:f103b33 (svn 202621:202622)
[chromium-blink-merge.git] / components / signin / core / browser / BUILD.gn
blobfd58510d51acc8fbda9da350eb59033d80a99292
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 source_set("browser") {
6   sources = [
7     "about_signin_internals.cc",
8     "about_signin_internals.h",
9     "account_fetcher_service.cc",
10     "account_fetcher_service.h",
11     "account_info.cc",
12     "account_info.h",
13     "account_info_fetcher.cc",
14     "account_info_fetcher.h",
15     "account_reconcilor.cc",
16     "account_reconcilor.h",
17     "account_tracker_service.cc",
18     "account_tracker_service.h",
19     "android/component_jni_registrar.cc",
20     "android/component_jni_registrar.h",
21     "child_account_info_fetcher.cc",
22     "child_account_info_fetcher.h",
23     "child_account_info_fetcher_android.cc",
24     "child_account_info_fetcher_android.h",
25     "child_account_info_fetcher_impl.cc",
26     "child_account_info_fetcher_impl.h",
27     "device_activity_fetcher.cc",
28     "device_activity_fetcher.h",
29     "gaia_cookie_manager_service.cc",
30     "gaia_cookie_manager_service.h",
31     "profile_identity_provider.cc",
32     "profile_identity_provider.h",
33     "profile_oauth2_token_service.cc",
34     "profile_oauth2_token_service.h",
35     "refresh_token_annotation_request.cc",
36     "refresh_token_annotation_request.h",
37     "signin_client.cc",
38     "signin_client.h",
39     "signin_cookie_changed_subscription.cc",
40     "signin_cookie_changed_subscription.h",
41     "signin_error_controller.cc",
42     "signin_error_controller.h",
43     "signin_header_helper.cc",
44     "signin_header_helper.h",
45     "signin_internals_util.cc",
46     "signin_internals_util.h",
47     "signin_manager.cc",
48     "signin_manager.h",
49     "signin_manager_base.cc",
50     "signin_manager_base.h",
51     "signin_manager_cookie_helper.cc",
52     "signin_manager_cookie_helper.h",
53     "signin_metrics.cc",
54     "signin_metrics.h",
55     "signin_tracker.cc",
56     "signin_tracker.h",
57     "webdata/token_service_table.cc",
58     "webdata/token_service_table.h",
59     "webdata/token_web_data.cc",
60     "webdata/token_web_data.h",
61   ]
63   configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
65   deps = [
66     "//base",
67     "//crypto",
68     "//google_apis",
69     "//net",
70     "//sql",
71     "//third_party/icu",
72     "//components/content_settings/core/browser",
73     "//components/content_settings/core/common",
74     "//components/google/core/browser",
75     "//components/invalidation/public",
76     "//components/keyed_service/core",
77     "//components/os_crypt",
78     "//components/webdata/common",
79   ]
81   if (is_chromeos) {
82     sources -= [ "signin_manager.cc" ]
83   }
85   if (is_android) {
86     sources -= [
87       "child_account_info_fetcher_impl.cc",
88       "child_account_info_fetcher_impl.h",
89     ]
90     deps += [ "android:jni_headers" ]
91   }
94 source_set("test_support") {
95   testonly = true
96   sources = [
97     "fake_account_fetcher_service.cc",
98     "fake_account_fetcher_service.h",
99     "fake_auth_status_provider.cc",
100     "fake_auth_status_provider.h",
101     "fake_profile_oauth2_token_service.cc",
102     "fake_profile_oauth2_token_service.h",
103     "fake_signin_manager.cc",
104     "fake_signin_manager.h",
105     "test_signin_client.cc",
106     "test_signin_client.h",
107   ]
109   public_deps = [
110     ":browser",
111     "//testing/gtest",
112   ]
115 source_set("unit_tests") {
116   testonly = true
117   sources = [
118     "account_tracker_service_unittest.cc",
119     "gaia_cookie_manager_service_unittest.cc",
120     "refresh_token_annotation_request_unittest.cc",
121     "signin_error_controller_unittest.cc",
122     "webdata/token_service_table_unittest.cc",
123   ]
125   deps = [
126     ":test_support",
127     "//testing/gmock",
128   ]