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") {
11 "backend_data_type_configurer.cc",
12 "backend_data_type_configurer.h",
13 "backend_migrator.cc",
15 "change_processor.cc",
17 "data_type_controller.cc",
18 "data_type_controller.h",
19 "data_type_encryption_handler.cc",
20 "data_type_encryption_handler.h",
21 "data_type_error_handler.h",
22 "data_type_manager.cc",
23 "data_type_manager.h",
24 "data_type_manager_impl.cc",
25 "data_type_manager_impl.h",
26 "data_type_manager_observer.h",
27 "data_type_status_table.cc",
28 "data_type_status_table.h",
31 "device_info_data_type_controller.cc",
32 "device_info_data_type_controller.h",
33 "device_info_sync_service.cc",
34 "device_info_sync_service.h",
35 "device_info_tracker.h",
38 "frontend_data_type_controller.cc",
39 "frontend_data_type_controller.h",
40 "generic_change_processor.cc",
41 "generic_change_processor.h",
42 "generic_change_processor_factory.cc",
43 "generic_change_processor_factory.h",
44 "glue/synced_session.cc",
45 "glue/synced_session.h",
46 "glue/typed_url_model_associator.cc",
47 "glue/typed_url_model_associator.h",
48 "invalidation_adapter.cc",
49 "invalidation_adapter.h",
50 "invalidation_helper.cc",
51 "invalidation_helper.h",
52 "local_device_info_provider.h",
53 "model_association_manager.cc",
54 "model_association_manager.h",
56 "non_blocking_data_type_controller.cc",
57 "non_blocking_data_type_controller.h",
58 "non_blocking_data_type_manager.cc",
59 "non_blocking_data_type_manager.h",
60 "non_ui_data_type_controller.cc",
61 "non_ui_data_type_controller.h",
62 "open_tabs_ui_delegate.cc",
63 "open_tabs_ui_delegate.h",
66 "profile_sync_auth_provider.cc",
67 "profile_sync_auth_provider.h",
68 "profile_sync_components_factory.h",
69 "protocol_event_observer.cc",
70 "protocol_event_observer.h",
71 "proxy_data_type_controller.cc",
72 "proxy_data_type_controller.h",
73 "shared_change_processor.cc",
74 "shared_change_processor.h",
75 "shared_change_processor_ref.cc",
76 "shared_change_processor_ref.h",
77 "sync_api_component_factory.h",
80 "sync_driver_switches.cc",
81 "sync_driver_switches.h",
82 "sync_error_controller.cc",
83 "sync_error_controller.h",
90 "sync_service_observer.cc",
91 "sync_service_observer.h",
92 "sync_service_utils.cc",
93 "sync_service_utils.h",
94 "sync_stopped_reporter.cc",
95 "sync_stopped_reporter.h",
98 "system_encryptor.cc",
102 "ui_data_type_controller.cc",
103 "ui_data_type_controller.h",
104 "user_selectable_sync_type.h",
109 "//components/favicon/core",
110 "//components/history/core/browser",
111 "//components/invalidation/public",
112 "//components/os_crypt",
113 "//components/sessions",
114 "//components/signin/core/browser",
115 "//components/version_info",
118 "//third_party/cacheinvalidation",
122 if (enable_configuration_policy) {
124 "sync_policy_handler.cc",
125 "sync_policy_handler.h",
128 "//components/policy",
129 "//components/policy:policy_component",
134 source_set("test_support") {
137 "change_processor_mock.cc",
138 "change_processor_mock.h",
139 "data_type_controller_mock.cc",
140 "data_type_controller_mock.h",
141 "data_type_error_handler_mock.cc",
142 "data_type_error_handler_mock.h",
143 "data_type_manager_mock.cc",
144 "data_type_manager_mock.h",
145 "fake_data_type_controller.cc",
146 "fake_data_type_controller.h",
147 "fake_generic_change_processor.cc",
148 "fake_generic_change_processor.h",
149 "fake_sync_client.cc",
150 "fake_sync_client.h",
151 "fake_sync_service.cc",
152 "fake_sync_service.h",
153 "frontend_data_type_controller_mock.cc",
154 "frontend_data_type_controller_mock.h",
155 "local_device_info_provider_mock.cc",
156 "local_device_info_provider_mock.h",
157 "model_associator_mock.cc",
158 "model_associator_mock.h",
159 "non_ui_data_type_controller_mock.cc",
160 "non_ui_data_type_controller_mock.h",
170 "//components/sessions",
171 "//sync:test_support_sync_internal_api",
177 source_set("unit_tests") {
180 "about_sync_util_unittest.cc",
181 "data_type_manager_impl_unittest.cc",
182 "device_info_data_type_controller_unittest.cc",
183 "device_info_sync_service_unittest.cc",
184 "favicon_cache_unittest.cc",
185 "generic_change_processor_unittest.cc",
186 "model_association_manager_unittest.cc",
187 "non_blocking_data_type_controller_unittest.cc",
188 "non_ui_data_type_controller_unittest.cc",
189 "shared_change_processor_unittest.cc",
190 "sync_policy_handler_unittest.cc",
191 "sync_prefs_unittest.cc",
192 "sync_stopped_reporter_unittest.cc",
193 "sync_util_unittest.cc",
194 "system_encryptor_unittest.cc",
195 "tab_node_pool_unittest.cc",
196 "ui_data_type_controller_unittest.cc",