Restore variadic macros in DevToolsEmbedderMessageDispatcher
[chromium-blink-merge.git] / components / sync_driver / BUILD.gn
blob5e138b7f8ba51e456090fdf6414680a82e873f4d
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     "directory_data_type_controller.cc",
37     "directory_data_type_controller.h",
38     "favicon_cache.cc",
39     "favicon_cache.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/browser_thread_model_worker.cc",
47     "glue/browser_thread_model_worker.h",
48     "glue/synced_session.cc",
49     "glue/synced_session.h",
50     "glue/synced_window_delegate.h",
51     "glue/typed_url_model_associator.cc",
52     "glue/typed_url_model_associator.h",
53     "invalidation_adapter.cc",
54     "invalidation_adapter.h",
55     "invalidation_helper.cc",
56     "invalidation_helper.h",
57     "local_device_info_provider.h",
58     "model_association_manager.cc",
59     "model_association_manager.h",
60     "model_associator.h",
61     "non_blocking_data_type_controller.cc",
62     "non_blocking_data_type_controller.h",
63     "non_ui_data_type_controller.cc",
64     "non_ui_data_type_controller.h",
65     "open_tabs_ui_delegate.cc",
66     "open_tabs_ui_delegate.h",
67     "pref_names.cc",
68     "pref_names.h",
69     "profile_sync_auth_provider.cc",
70     "profile_sync_auth_provider.h",
71     "profile_sync_components_factory.h",
72     "protocol_event_observer.cc",
73     "protocol_event_observer.h",
74     "proxy_data_type_controller.cc",
75     "proxy_data_type_controller.h",
76     "revisit/current_tab_matcher.cc",
77     "revisit/current_tab_matcher.h",
78     "revisit/offset_tab_matcher.cc",
79     "revisit/offset_tab_matcher.h",
80     "revisit/page_equality.h",
81     "revisit/page_visit_observer.h",
82     "revisit/sessions_page_revisit_observer.cc",
83     "revisit/sessions_page_revisit_observer.h",
84     "sessions/synced_window_delegates_getter.cc",
85     "sessions/synced_window_delegates_getter.h",
86     "shared_change_processor.cc",
87     "shared_change_processor.h",
88     "shared_change_processor_ref.cc",
89     "shared_change_processor_ref.h",
90     "signin_manager_wrapper.cc",
91     "signin_manager_wrapper.h",
92     "sync_api_component_factory.h",
93     "sync_client.cc",
94     "sync_client.h",
95     "sync_driver_switches.cc",
96     "sync_driver_switches.h",
97     "sync_error_controller.cc",
98     "sync_error_controller.h",
99     "sync_frontend.cc",
100     "sync_frontend.h",
101     "sync_prefs.cc",
102     "sync_prefs.h",
103     "sync_service.cc",
104     "sync_service.h",
105     "sync_service_observer.cc",
106     "sync_service_observer.h",
107     "sync_service_utils.cc",
108     "sync_service_utils.h",
109     "sync_stopped_reporter.cc",
110     "sync_stopped_reporter.h",
111     "sync_util.cc",
112     "sync_util.h",
113     "system_encryptor.cc",
114     "system_encryptor.h",
115     "tab_node_pool.cc",
116     "tab_node_pool.h",
117     "ui_data_type_controller.cc",
118     "ui_data_type_controller.h",
119     "user_selectable_sync_type.h",
120   ]
122   deps = [
123     "//base",
124     "//components/favicon/core",
125     "//components/history/core/browser",
126     "//components/invalidation/public",
127     "//components/os_crypt",
128     "//components/sessions",
129     "//components/signin/core/browser",
130     "//components/version_info",
131     "//net",
132     "//sync",
133     "//third_party/cacheinvalidation",
134     "//ui/gfx",
135   ]
137   if (enable_configuration_policy) {
138     sources += [
139       "sync_policy_handler.cc",
140       "sync_policy_handler.h",
141     ]
142     deps += [
143       "//components/policy",
144       "//components/policy:policy_component",
145     ]
146   }
149 source_set("test_support") {
150   testonly = true
151   sources = [
152     "change_processor_mock.cc",
153     "change_processor_mock.h",
154     "data_type_controller_mock.cc",
155     "data_type_controller_mock.h",
156     "data_type_error_handler_mock.cc",
157     "data_type_error_handler_mock.h",
158     "data_type_manager_mock.cc",
159     "data_type_manager_mock.h",
160     "fake_data_type_controller.cc",
161     "fake_data_type_controller.h",
162     "fake_generic_change_processor.cc",
163     "fake_generic_change_processor.h",
164     "fake_sync_client.cc",
165     "fake_sync_client.h",
166     "fake_sync_service.cc",
167     "fake_sync_service.h",
168     "frontend_data_type_controller_mock.cc",
169     "frontend_data_type_controller_mock.h",
170     "local_device_info_provider_mock.cc",
171     "local_device_info_provider_mock.h",
172     "model_associator_mock.cc",
173     "model_associator_mock.h",
174     "non_ui_data_type_controller_mock.cc",
175     "non_ui_data_type_controller_mock.h",
176   ]
178   public_deps = [
179     ":sync_driver",
180     "//sync",
181   ]
183   deps = [
184     "//base",
185     "//components/sessions",
186     "//sync:test_support_sync_internal_api",
187     "//testing/gmock",
188     "//testing/gtest",
189   ]
192 source_set("unit_tests") {
193   testonly = true
194   sources = [
195     "about_sync_util_unittest.cc",
196     "data_type_manager_impl_unittest.cc",
197     "device_info_data_type_controller_unittest.cc",
198     "device_info_sync_service_unittest.cc",
199     "favicon_cache_unittest.cc",
200     "generic_change_processor_unittest.cc",
201     "model_association_manager_unittest.cc",
202     "non_blocking_data_type_controller_unittest.cc",
203     "non_ui_data_type_controller_unittest.cc",
204     "revisit/current_tab_matcher_unittest.cc",
205     "revisit/offset_tab_matcher_unittest.cc",
206     "revisit/sessions_page_revisit_observer_unittest.cc",
207     "shared_change_processor_unittest.cc",
208     "sync_policy_handler_unittest.cc",
209     "sync_prefs_unittest.cc",
210     "sync_stopped_reporter_unittest.cc",
211     "sync_util_unittest.cc",
212     "system_encryptor_unittest.cc",
213     "tab_node_pool_unittest.cc",
214     "ui_data_type_controller_unittest.cc",
215   ]
216   deps = [
217     ":test_support",
218     "//testing/gmock",
219     "//testing/gtest",
220   ]