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") {
9 "backend_data_type_configurer.cc",
10 "backend_data_type_configurer.h",
11 "backend_migrator.cc",
13 "change_processor.cc",
15 "data_type_controller.cc",
16 "data_type_controller.h",
17 "data_type_encryption_handler.cc",
18 "data_type_encryption_handler.h",
19 "data_type_error_handler.h",
20 "data_type_manager.cc",
21 "data_type_manager.h",
22 "data_type_manager_impl.cc",
23 "data_type_manager_impl.h",
24 "data_type_manager_observer.h",
25 "data_type_status_table.cc",
26 "data_type_status_table.h",
29 "device_info_data_type_controller.cc",
30 "device_info_data_type_controller.h",
31 "device_info_sync_service.cc",
32 "device_info_sync_service.h",
33 "device_info_tracker.h",
36 "frontend_data_type_controller.cc",
37 "frontend_data_type_controller.h",
38 "generic_change_processor.cc",
39 "generic_change_processor.h",
40 "generic_change_processor_factory.cc",
41 "generic_change_processor_factory.h",
42 "glue/synced_session.cc",
43 "glue/synced_session.h",
44 "glue/typed_url_model_associator.cc",
45 "glue/typed_url_model_associator.h",
46 "invalidation_adapter.cc",
47 "invalidation_adapter.h",
48 "invalidation_helper.cc",
49 "invalidation_helper.h",
50 "local_device_info_provider.h",
51 "model_association_manager.cc",
52 "model_association_manager.h",
54 "non_blocking_data_type_controller.cc",
55 "non_blocking_data_type_controller.h",
56 "non_blocking_data_type_manager.cc",
57 "non_blocking_data_type_manager.h",
58 "non_ui_data_type_controller.cc",
59 "non_ui_data_type_controller.h",
60 "open_tabs_ui_delegate.cc",
61 "open_tabs_ui_delegate.h",
64 "profile_sync_auth_provider.cc",
65 "profile_sync_auth_provider.h",
66 "profile_sync_components_factory.h",
67 "protocol_event_observer.cc",
68 "protocol_event_observer.h",
69 "proxy_data_type_controller.cc",
70 "proxy_data_type_controller.h",
71 "shared_change_processor.cc",
72 "shared_change_processor.h",
73 "shared_change_processor_ref.cc",
74 "shared_change_processor_ref.h",
75 "sync_api_component_factory.h",
78 "sync_error_controller.cc",
79 "sync_error_controller.h",
85 "sync_service_observer.cc",
86 "sync_service_observer.h",
87 "sync_service_utils.cc",
88 "sync_service_utils.h",
89 "sync_stopped_reporter.cc",
90 "sync_stopped_reporter.h",
91 "system_encryptor.cc",
95 "ui_data_type_controller.cc",
96 "ui_data_type_controller.h",
97 "user_selectable_sync_type.h",
102 "//components/favicon/core",
103 "//components/history/core/browser",
104 "//components/invalidation/public",
105 "//components/os_crypt",
106 "//components/sessions",
107 "//components/signin/core/browser",
110 "//third_party/cacheinvalidation",
114 if (enable_configuration_policy) {
116 "sync_policy_handler.cc",
117 "sync_policy_handler.h",
120 "//components/policy",
121 "//components/policy:policy_component",
126 source_set("test_support") {
129 "change_processor_mock.cc",
130 "change_processor_mock.h",
131 "data_type_controller_mock.cc",
132 "data_type_controller_mock.h",
133 "data_type_error_handler_mock.cc",
134 "data_type_error_handler_mock.h",
135 "data_type_manager_mock.cc",
136 "data_type_manager_mock.h",
137 "fake_data_type_controller.cc",
138 "fake_data_type_controller.h",
139 "fake_generic_change_processor.cc",
140 "fake_generic_change_processor.h",
141 "fake_sync_client.cc",
142 "fake_sync_client.h",
143 "fake_sync_service.cc",
144 "fake_sync_service.h",
145 "frontend_data_type_controller_mock.cc",
146 "frontend_data_type_controller_mock.h",
147 "local_device_info_provider_mock.cc",
148 "local_device_info_provider_mock.h",
149 "model_associator_mock.cc",
150 "model_associator_mock.h",
151 "non_ui_data_type_controller_mock.cc",
152 "non_ui_data_type_controller_mock.h",
162 "//components/sessions",
163 "//sync:test_support_sync_internal_api",
169 source_set("unit_tests") {
172 "data_type_manager_impl_unittest.cc",
173 "device_info_data_type_controller_unittest.cc",
174 "device_info_sync_service_unittest.cc",
175 "favicon_cache_unittest.cc",
176 "generic_change_processor_unittest.cc",
177 "model_association_manager_unittest.cc",
178 "non_blocking_data_type_controller_unittest.cc",
179 "non_ui_data_type_controller_unittest.cc",
180 "shared_change_processor_unittest.cc",
181 "sync_policy_handler_unittest.cc",
182 "sync_prefs_unittest.cc",
183 "sync_stopped_reporter_unittest.cc",
184 "system_encryptor_unittest.cc",
185 "tab_node_pool_unittest.cc",
186 "ui_data_type_controller_unittest.cc",