Remove migrateNetworkPredictionPreferences().
[chromium-blink-merge.git] / components / sync_driver / BUILD.gn
blob77f19148aaed8247822392100f7e7304d1587c2f
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     "change_processor.cc",
16     "change_processor.h",
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",
29     "device_info.cc",
30     "device_info.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     "favicon_cache.cc",
37     "favicon_cache.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",
55     "model_associator.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",
64     "pref_names.cc",
65     "pref_names.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",
78     "sync_client.cc",
79     "sync_client.h",
80     "sync_driver_switches.cc",
81     "sync_driver_switches.h",
82     "sync_error_controller.cc",
83     "sync_error_controller.h",
84     "sync_frontend.cc",
85     "sync_frontend.h",
86     "sync_prefs.cc",
87     "sync_prefs.h",
88     "sync_service.cc",
89     "sync_service.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",
96     "sync_util.cc",
97     "sync_util.h",
98     "system_encryptor.cc",
99     "system_encryptor.h",
100     "tab_node_pool.cc",
101     "tab_node_pool.h",
102     "ui_data_type_controller.cc",
103     "ui_data_type_controller.h",
104     "user_selectable_sync_type.h",
105   ]
107   deps = [
108     "//base",
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",
116     "//net",
117     "//sync",
118     "//third_party/cacheinvalidation",
119     "//ui/gfx",
120   ]
122   if (enable_configuration_policy) {
123     sources += [
124       "sync_policy_handler.cc",
125       "sync_policy_handler.h",
126     ]
127     deps += [
128       "//components/policy",
129       "//components/policy:policy_component",
130     ]
131   }
134 source_set("test_support") {
135   testonly = true
136   sources = [
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",
161   ]
163   public_deps = [
164     ":sync_driver",
165     "//sync",
166   ]
168   deps = [
169     "//base",
170     "//components/sessions",
171     "//sync:test_support_sync_internal_api",
172     "//testing/gmock",
173     "//testing/gtest",
174   ]
177 source_set("unit_tests") {
178   testonly = true
179   sources = [
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",
197   ]
198   deps = [
199     ":test_support",
200     "//testing/gmock",
201     "//testing/gtest",
202   ]