Vectorize website settings icons in omnibox
[chromium-blink-merge.git] / components / sync_driver / BUILD.gn
blobc8688542e3b73b004e0762a4a804833dab87f7f7
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     "backend_data_type_configurer.cc",
10     "backend_data_type_configurer.h",
11     "backend_migrator.cc",
12     "backend_migrator.h",
13     "change_processor.cc",
14     "change_processor.h",
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",
27     "device_info.cc",
28     "device_info.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",
34     "favicon_cache.cc",
35     "favicon_cache.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",
53     "model_associator.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",
62     "pref_names.cc",
63     "pref_names.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",
76     "sync_client.cc",
77     "sync_client.h",
78     "sync_error_controller.cc",
79     "sync_error_controller.h",
80     "sync_frontend.cc",
81     "sync_frontend.h",
82     "sync_prefs.cc",
83     "sync_prefs.h",
84     "sync_service.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",
92     "system_encryptor.h",
93     "tab_node_pool.cc",
94     "tab_node_pool.h",
95     "ui_data_type_controller.cc",
96     "ui_data_type_controller.h",
97     "user_selectable_sync_type.h",
98   ]
100   deps = [
101     "//base",
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",
108     "//net",
109     "//sync",
110     "//third_party/cacheinvalidation",
111     "//ui/gfx",
112   ]
114   if (enable_configuration_policy) {
115     sources += [
116       "sync_policy_handler.cc",
117       "sync_policy_handler.h",
118     ]
119     deps += [
120       "//components/policy",
121       "//components/policy:policy_component",
122     ]
123   }
126 source_set("test_support") {
127   testonly = true
128   sources = [
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",
153   ]
155   public_deps = [
156     ":sync_driver",
157     "//sync",
158   ]
160   deps = [
161     "//base",
162     "//components/sessions",
163     "//sync:test_support_sync_internal_api",
164     "//testing/gmock",
165     "//testing/gtest",
166   ]
169 source_set("unit_tests") {
170   testonly = true
171   sources = [
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",
187   ]
188   deps = [
189     ":test_support",
190     "//testing/gmock",
191     "//testing/gtest",
192   ]