Fix layout of the Connection Tab of the Origin Info Bubble.
[chromium-blink-merge.git] / components / sync_driver / BUILD.gn
blob58dc25fbae2694fb6544faf141d0f41718aaf96c
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 import("//build/config/features.gni")
7 source_set("sync_driver") {
8   sources = [
9     "about_sync_util.cc",
10     "about_sync_util.h",
11     "backend_data_type_configurer.cc",
12     "backend_data_type_configurer.h",
13     "backend_migrator.cc",
14     "backend_migrator.h",
15     "backup_rollback_controller.cc",
16     "backup_rollback_controller.h",
17     "change_processor.cc",
18     "change_processor.h",
19     "data_type_controller.cc",
20     "data_type_controller.h",
21     "data_type_encryption_handler.cc",
22     "data_type_encryption_handler.h",
23     "data_type_error_handler.h",
24     "data_type_manager.cc",
25     "data_type_manager.h",
26     "data_type_manager_impl.cc",
27     "data_type_manager_impl.h",
28     "data_type_manager_observer.h",
29     "data_type_status_table.cc",
30     "data_type_status_table.h",
31     "device_info.cc",
32     "device_info.h",
33     "device_info_data_type_controller.cc",
34     "device_info_data_type_controller.h",
35     "device_info_sync_service.cc",
36     "device_info_sync_service.h",
37     "device_info_tracker.h",
38     "directory_data_type_controller.cc",
39     "directory_data_type_controller.h",
40     "favicon_cache.cc",
41     "favicon_cache.h",
42     "frontend_data_type_controller.cc",
43     "frontend_data_type_controller.h",
44     "generic_change_processor.cc",
45     "generic_change_processor.h",
46     "generic_change_processor_factory.cc",
47     "generic_change_processor_factory.h",
48     "glue/browser_thread_model_worker.cc",
49     "glue/browser_thread_model_worker.h",
50     "glue/history_model_worker.cc",
51     "glue/history_model_worker.h",
52     "glue/synced_session.cc",
53     "glue/synced_session.h",
54     "glue/synced_window_delegate.h",
55     "glue/typed_url_model_associator.cc",
56     "glue/typed_url_model_associator.h",
57     "glue/ui_model_worker.cc",
58     "glue/ui_model_worker.h",
59     "invalidation_adapter.cc",
60     "invalidation_adapter.h",
61     "invalidation_helper.cc",
62     "invalidation_helper.h",
63     "local_device_info_provider.h",
64     "model_association_manager.cc",
65     "model_association_manager.h",
66     "model_associator.h",
67     "non_blocking_data_type_controller.cc",
68     "non_blocking_data_type_controller.h",
69     "non_ui_data_type_controller.cc",
70     "non_ui_data_type_controller.h",
71     "open_tabs_ui_delegate.cc",
72     "open_tabs_ui_delegate.h",
73     "pref_names.cc",
74     "pref_names.h",
75     "profile_sync_auth_provider.cc",
76     "profile_sync_auth_provider.h",
77     "profile_sync_components_factory.h",
78     "protocol_event_observer.cc",
79     "protocol_event_observer.h",
80     "proxy_data_type_controller.cc",
81     "proxy_data_type_controller.h",
82     "revisit/current_tab_matcher.cc",
83     "revisit/current_tab_matcher.h",
84     "revisit/offset_tab_matcher.cc",
85     "revisit/offset_tab_matcher.h",
86     "revisit/page_equality.h",
87     "revisit/page_visit_observer.h",
88     "revisit/sessions_page_revisit_observer.cc",
89     "revisit/sessions_page_revisit_observer.h",
90     "sessions/synced_window_delegates_getter.cc",
91     "sessions/synced_window_delegates_getter.h",
92     "shared_change_processor.cc",
93     "shared_change_processor.h",
94     "shared_change_processor_ref.cc",
95     "shared_change_processor_ref.h",
96     "signin_manager_wrapper.cc",
97     "signin_manager_wrapper.h",
98     "sync_api_component_factory.h",
99     "sync_client.cc",
100     "sync_client.h",
101     "sync_driver_switches.cc",
102     "sync_driver_switches.h",
103     "sync_error_controller.cc",
104     "sync_error_controller.h",
105     "sync_frontend.cc",
106     "sync_frontend.h",
107     "sync_prefs.cc",
108     "sync_prefs.h",
109     "sync_service.cc",
110     "sync_service.h",
111     "sync_service_observer.cc",
112     "sync_service_observer.h",
113     "sync_service_utils.cc",
114     "sync_service_utils.h",
115     "sync_stopped_reporter.cc",
116     "sync_stopped_reporter.h",
117     "sync_util.cc",
118     "sync_util.h",
119     "system_encryptor.cc",
120     "system_encryptor.h",
121     "tab_node_pool.cc",
122     "tab_node_pool.h",
123     "ui_data_type_controller.cc",
124     "ui_data_type_controller.h",
125     "user_selectable_sync_type.h",
126   ]
128   deps = [
129     "//base",
130     "//components/favicon/core",
131     "//components/history/core/browser",
132     "//components/invalidation/public",
133     "//components/os_crypt",
134     "//components/sessions",
135     "//components/signin/core/browser",
136     "//components/version_info",
137     "//net",
138     "//sync",
139     "//third_party/cacheinvalidation",
140     "//ui/gfx",
141   ]
143   if (enable_configuration_policy) {
144     sources += [
145       "sync_policy_handler.cc",
146       "sync_policy_handler.h",
147     ]
148     deps += [
149       "//components/policy",
150       "//components/policy:policy_component",
151     ]
152   }
155 source_set("test_support") {
156   testonly = true
157   sources = [
158     "change_processor_mock.cc",
159     "change_processor_mock.h",
160     "data_type_controller_mock.cc",
161     "data_type_controller_mock.h",
162     "data_type_error_handler_mock.cc",
163     "data_type_error_handler_mock.h",
164     "data_type_manager_mock.cc",
165     "data_type_manager_mock.h",
166     "fake_data_type_controller.cc",
167     "fake_data_type_controller.h",
168     "fake_generic_change_processor.cc",
169     "fake_generic_change_processor.h",
170     "fake_sync_client.cc",
171     "fake_sync_client.h",
172     "fake_sync_service.cc",
173     "fake_sync_service.h",
174     "frontend_data_type_controller_mock.cc",
175     "frontend_data_type_controller_mock.h",
176     "local_device_info_provider_mock.cc",
177     "local_device_info_provider_mock.h",
178     "model_associator_mock.cc",
179     "model_associator_mock.h",
180     "non_ui_data_type_controller_mock.cc",
181     "non_ui_data_type_controller_mock.h",
182   ]
184   public_deps = [
185     ":sync_driver",
186     "//sync",
187   ]
189   deps = [
190     "//base",
191     "//components/sessions",
192     "//sync:test_support_sync_internal_api",
193     "//testing/gmock",
194     "//testing/gtest",
195   ]
198 source_set("unit_tests") {
199   testonly = true
200   sources = [
201     "about_sync_util_unittest.cc",
202     "backup_rollback_controller_unittest.cc",
203     "data_type_manager_impl_unittest.cc",
204     "device_info_data_type_controller_unittest.cc",
205     "device_info_sync_service_unittest.cc",
206     "favicon_cache_unittest.cc",
207     "generic_change_processor_unittest.cc",
208     "model_association_manager_unittest.cc",
209     "non_blocking_data_type_controller_unittest.cc",
210     "non_ui_data_type_controller_unittest.cc",
211     "revisit/current_tab_matcher_unittest.cc",
212     "revisit/offset_tab_matcher_unittest.cc",
213     "revisit/sessions_page_revisit_observer_unittest.cc",
214     "shared_change_processor_unittest.cc",
215     "sync_policy_handler_unittest.cc",
216     "sync_prefs_unittest.cc",
217     "sync_stopped_reporter_unittest.cc",
218     "sync_util_unittest.cc",
219     "system_encryptor_unittest.cc",
220     "tab_node_pool_unittest.cc",
221     "ui_data_type_controller_unittest.cc",
222   ]
223   deps = [
224     ":test_support",
225     "//testing/gmock",
226     "//testing/gtest",
227   ]