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",
36 "directory_data_type_controller.cc",
37 "directory_data_type_controller.h",
40 "frontend_data_type_controller.cc",
41 "frontend_data_type_controller.h",
42 "generic_change_processor.cc",
43 "generic_change_processor.h",
44 "generic_change_processor_factory.cc",
45 "generic_change_processor_factory.h",
46 "glue/synced_session.cc",
47 "glue/synced_session.h",
48 "glue/synced_window_delegate.h",
49 "glue/typed_url_model_associator.cc",
50 "glue/typed_url_model_associator.h",
51 "invalidation_adapter.cc",
52 "invalidation_adapter.h",
53 "invalidation_helper.cc",
54 "invalidation_helper.h",
55 "local_device_info_provider.h",
56 "model_association_manager.cc",
57 "model_association_manager.h",
59 "non_blocking_data_type_controller.cc",
60 "non_blocking_data_type_controller.h",
61 "non_ui_data_type_controller.cc",
62 "non_ui_data_type_controller.h",
63 "open_tabs_ui_delegate.cc",
64 "open_tabs_ui_delegate.h",
67 "profile_sync_auth_provider.cc",
68 "profile_sync_auth_provider.h",
69 "profile_sync_components_factory.h",
70 "protocol_event_observer.cc",
71 "protocol_event_observer.h",
72 "proxy_data_type_controller.cc",
73 "proxy_data_type_controller.h",
74 "sessions/synced_window_delegates_getter.cc",
75 "sessions/synced_window_delegates_getter.h",
76 "shared_change_processor.cc",
77 "shared_change_processor.h",
78 "shared_change_processor_ref.cc",
79 "shared_change_processor_ref.h",
80 "signin_manager_wrapper.cc",
81 "signin_manager_wrapper.h",
82 "sync_api_component_factory.h",
85 "sync_driver_switches.cc",
86 "sync_driver_switches.h",
87 "sync_error_controller.cc",
88 "sync_error_controller.h",
95 "sync_service_observer.cc",
96 "sync_service_observer.h",
97 "sync_service_utils.cc",
98 "sync_service_utils.h",
99 "sync_stopped_reporter.cc",
100 "sync_stopped_reporter.h",
103 "system_encryptor.cc",
104 "system_encryptor.h",
107 "ui_data_type_controller.cc",
108 "ui_data_type_controller.h",
109 "user_selectable_sync_type.h",
114 "//components/favicon/core",
115 "//components/history/core/browser",
116 "//components/invalidation/public",
117 "//components/os_crypt",
118 "//components/sessions",
119 "//components/signin/core/browser",
120 "//components/version_info",
123 "//third_party/cacheinvalidation",
127 if (enable_configuration_policy) {
129 "sync_policy_handler.cc",
130 "sync_policy_handler.h",
133 "//components/policy",
134 "//components/policy:policy_component",
139 source_set("test_support") {
142 "change_processor_mock.cc",
143 "change_processor_mock.h",
144 "data_type_controller_mock.cc",
145 "data_type_controller_mock.h",
146 "data_type_error_handler_mock.cc",
147 "data_type_error_handler_mock.h",
148 "data_type_manager_mock.cc",
149 "data_type_manager_mock.h",
150 "fake_data_type_controller.cc",
151 "fake_data_type_controller.h",
152 "fake_generic_change_processor.cc",
153 "fake_generic_change_processor.h",
154 "fake_sync_client.cc",
155 "fake_sync_client.h",
156 "fake_sync_service.cc",
157 "fake_sync_service.h",
158 "frontend_data_type_controller_mock.cc",
159 "frontend_data_type_controller_mock.h",
160 "local_device_info_provider_mock.cc",
161 "local_device_info_provider_mock.h",
162 "model_associator_mock.cc",
163 "model_associator_mock.h",
164 "non_ui_data_type_controller_mock.cc",
165 "non_ui_data_type_controller_mock.h",
175 "//components/sessions",
176 "//sync:test_support_sync_internal_api",
182 source_set("unit_tests") {
185 "about_sync_util_unittest.cc",
186 "data_type_manager_impl_unittest.cc",
187 "device_info_data_type_controller_unittest.cc",
188 "device_info_sync_service_unittest.cc",
189 "favicon_cache_unittest.cc",
190 "generic_change_processor_unittest.cc",
191 "model_association_manager_unittest.cc",
192 "non_blocking_data_type_controller_unittest.cc",
193 "non_ui_data_type_controller_unittest.cc",
194 "shared_change_processor_unittest.cc",
195 "sync_policy_handler_unittest.cc",
196 "sync_prefs_unittest.cc",
197 "sync_stopped_reporter_unittest.cc",
198 "sync_util_unittest.cc",
199 "system_encryptor_unittest.cc",
200 "tab_node_pool_unittest.cc",
201 "ui_data_type_controller_unittest.cc",