| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 import("//build/buildflag_header.gni") | |
| 6 import("//build/config/features.gni") | |
| 7 | |
| 8 static_library("sync_driver") { | |
| 9 sources = [ | |
| 10 "about_sync_util.cc", | |
| 11 "about_sync_util.h", | |
| 12 "backend_data_type_configurer.cc", | |
| 13 "backend_data_type_configurer.h", | |
| 14 "backend_migrator.cc", | |
| 15 "backend_migrator.h", | |
| 16 "change_processor.cc", | |
| 17 "change_processor.h", | |
| 18 "data_type_controller.cc", | |
| 19 "data_type_controller.h", | |
| 20 "data_type_encryption_handler.cc", | |
| 21 "data_type_encryption_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_count_metrics_provider.cc", | |
| 30 "device_count_metrics_provider.h", | |
| 31 "device_info.cc", | |
| 32 "device_info.h", | |
| 33 "device_info_data_type_controller.cc", | |
| 34 "device_info_data_type_controller.h", | |
| 35 "device_info_service.cc", | |
| 36 "device_info_service.h", | |
| 37 "device_info_sync_service.cc", | |
| 38 "device_info_sync_service.h", | |
| 39 "device_info_tracker.h", | |
| 40 "device_info_util.cc", | |
| 41 "device_info_util.h", | |
| 42 "directory_data_type_controller.cc", | |
| 43 "directory_data_type_controller.h", | |
| 44 "frontend_data_type_controller.cc", | |
| 45 "frontend_data_type_controller.h", | |
| 46 "generic_change_processor.cc", | |
| 47 "generic_change_processor.h", | |
| 48 "generic_change_processor_factory.cc", | |
| 49 "generic_change_processor_factory.h", | |
| 50 "glue/browser_thread_model_worker.cc", | |
| 51 "glue/browser_thread_model_worker.h", | |
| 52 "glue/chrome_report_unrecoverable_error.cc", | |
| 53 "glue/chrome_report_unrecoverable_error.h", | |
| 54 "glue/sync_backend_host.cc", | |
| 55 "glue/sync_backend_host.h", | |
| 56 "glue/sync_backend_host_core.cc", | |
| 57 "glue/sync_backend_host_core.h", | |
| 58 "glue/sync_backend_host_impl.cc", | |
| 59 "glue/sync_backend_host_impl.h", | |
| 60 "glue/sync_backend_registrar.cc", | |
| 61 "glue/sync_backend_registrar.h", | |
| 62 "glue/ui_model_worker.cc", | |
| 63 "glue/ui_model_worker.h", | |
| 64 "invalidation_adapter.cc", | |
| 65 "invalidation_adapter.h", | |
| 66 "invalidation_helper.cc", | |
| 67 "invalidation_helper.h", | |
| 68 "local_device_info_provider.h", | |
| 69 "local_device_info_provider_impl.cc", | |
| 70 "local_device_info_provider_impl.h", | |
| 71 "model_association_manager.cc", | |
| 72 "model_association_manager.h", | |
| 73 "model_associator.h", | |
| 74 "non_blocking_data_type_controller.cc", | |
| 75 "non_blocking_data_type_controller.h", | |
| 76 "non_ui_data_type_controller.cc", | |
| 77 "non_ui_data_type_controller.h", | |
| 78 "non_ui_model_type_controller.cc", | |
| 79 "non_ui_model_type_controller.h", | |
| 80 "pref_names.cc", | |
| 81 "pref_names.h", | |
| 82 "protocol_event_observer.cc", | |
| 83 "protocol_event_observer.h", | |
| 84 "proxy_data_type_controller.cc", | |
| 85 "proxy_data_type_controller.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 "startup_controller.cc", | |
| 93 "startup_controller.h", | |
| 94 "sync_api_component_factory.h", | |
| 95 "sync_client.cc", | |
| 96 "sync_client.h", | |
| 97 "sync_driver_switches.cc", | |
| 98 "sync_driver_switches.h", | |
| 99 "sync_error_controller.cc", | |
| 100 "sync_error_controller.h", | |
| 101 "sync_frontend.cc", | |
| 102 "sync_frontend.h", | |
| 103 "sync_prefs.cc", | |
| 104 "sync_prefs.h", | |
| 105 "sync_service.cc", | |
| 106 "sync_service.h", | |
| 107 "sync_service_observer.cc", | |
| 108 "sync_service_observer.h", | |
| 109 "sync_service_utils.cc", | |
| 110 "sync_service_utils.h", | |
| 111 "sync_stopped_reporter.cc", | |
| 112 "sync_stopped_reporter.h", | |
| 113 "sync_type_preference_provider.h", | |
| 114 "sync_util.cc", | |
| 115 "sync_util.h", | |
| 116 "system_encryptor.cc", | |
| 117 "system_encryptor.h", | |
| 118 "ui_data_type_controller.cc", | |
| 119 "ui_data_type_controller.h", | |
| 120 "ui_model_type_controller.cc", | |
| 121 "ui_model_type_controller.h", | |
| 122 "user_selectable_sync_type.h", | |
| 123 ] | |
| 124 | |
| 125 public_deps = [ | |
| 126 "//components/sync", | |
| 127 "//third_party/cacheinvalidation", | |
| 128 ] | |
| 129 | |
| 130 deps = [ | |
| 131 "//base", | |
| 132 "//base/third_party/dynamic_annotations", | |
| 133 "//components/data_use_measurement/core", | |
| 134 "//components/invalidation/public", | |
| 135 "//components/metrics", | |
| 136 "//components/os_crypt", | |
| 137 "//components/pref_registry", | |
| 138 "//components/prefs", | |
| 139 "//components/signin/core/browser", | |
| 140 "//components/version_info", | |
| 141 "//google_apis", | |
| 142 "//net", | |
| 143 ] | |
| 144 | |
| 145 if (enable_configuration_policy) { | |
| 146 sources += [ | |
| 147 "sync_policy_handler.cc", | |
| 148 "sync_policy_handler.h", | |
| 149 ] | |
| 150 deps += [ | |
| 151 "//components/policy", | |
| 152 "//components/policy:policy_component", | |
| 153 ] | |
| 154 } | |
| 155 } | |
| 156 | |
| 157 static_library("test_support") { | |
| 158 testonly = true | |
| 159 sources = [ | |
| 160 "change_processor_mock.cc", | |
| 161 "change_processor_mock.h", | |
| 162 "data_type_controller_mock.cc", | |
| 163 "data_type_controller_mock.h", | |
| 164 "data_type_manager_mock.cc", | |
| 165 "data_type_manager_mock.h", | |
| 166 "fake_data_type_controller.cc", | |
| 167 "fake_data_type_controller.h", | |
| 168 "fake_generic_change_processor.cc", | |
| 169 "fake_generic_change_processor.h", | |
| 170 "fake_sync_client.cc", | |
| 171 "fake_sync_client.h", | |
| 172 "fake_sync_service.cc", | |
| 173 "fake_sync_service.h", | |
| 174 "frontend_data_type_controller_mock.cc", | |
| 175 "frontend_data_type_controller_mock.h", | |
| 176 "glue/sync_backend_host_mock.cc", | |
| 177 "glue/sync_backend_host_mock.h", | |
| 178 "local_device_info_provider_mock.cc", | |
| 179 "local_device_info_provider_mock.h", | |
| 180 "model_associator_mock.cc", | |
| 181 "model_associator_mock.h", | |
| 182 "non_ui_data_type_controller_mock.cc", | |
| 183 "non_ui_data_type_controller_mock.h", | |
| 184 "sync_api_component_factory_mock.cc", | |
| 185 "sync_api_component_factory_mock.h", | |
| 186 ] | |
| 187 | |
| 188 public_deps = [ | |
| 189 ":sync_driver", | |
| 190 "//components/sync", | |
| 191 ] | |
| 192 | |
| 193 deps = [ | |
| 194 "//base", | |
| 195 "//components/sync:test_support_sync_core_impl", | |
| 196 "//components/syncable_prefs:test_support", | |
| 197 "//components/version_info", | |
| 198 "//google_apis", | |
| 199 "//testing/gmock", | |
| 200 "//testing/gtest", | |
| 201 ] | |
| 202 } | |
| 203 | |
| 204 source_set("unit_tests") { | |
| 205 testonly = true | |
| 206 sources = [ | |
| 207 "about_sync_util_unittest.cc", | |
| 208 "backend_migrator_unittest.cc", | |
| 209 "data_type_manager_impl_unittest.cc", | |
| 210 "device_count_metrics_provider_unittest.cc", | |
| 211 "device_info_data_type_controller_unittest.cc", | |
| 212 "device_info_service_unittest.cc", | |
| 213 "device_info_sync_service_unittest.cc", | |
| 214 "device_info_util_unittest.cc", | |
| 215 "frontend_data_type_controller_unittest.cc", | |
| 216 "generic_change_processor_unittest.cc", | |
| 217 "glue/browser_thread_model_worker_unittest.cc", | |
| 218 "glue/sync_backend_host_impl_unittest.cc", | |
| 219 "glue/sync_backend_registrar_unittest.cc", | |
| 220 "glue/ui_model_worker_unittest.cc", | |
| 221 "local_device_info_provider_unittest.cc", | |
| 222 "model_association_manager_unittest.cc", | |
| 223 "non_blocking_data_type_controller_unittest.cc", | |
| 224 "non_ui_data_type_controller_unittest.cc", | |
| 225 "non_ui_model_type_controller_unittest.cc", | |
| 226 "shared_change_processor_unittest.cc", | |
| 227 "startup_controller_unittest.cc", | |
| 228 "sync_prefs_unittest.cc", | |
| 229 "sync_stopped_reporter_unittest.cc", | |
| 230 "sync_util_unittest.cc", | |
| 231 "system_encryptor_unittest.cc", | |
| 232 "ui_data_type_controller_unittest.cc", | |
| 233 "ui_model_type_controller_unittest.cc", | |
| 234 ] | |
| 235 deps = [ | |
| 236 ":test_support", | |
| 237 "//base", | |
| 238 "//base/test:test_support", | |
| 239 "//components/invalidation/impl", | |
| 240 "//components/os_crypt:test_support", | |
| 241 "//components/pref_registry:test_support", | |
| 242 "//components/prefs:test_support", | |
| 243 "//components/signin/core/browser:test_support", | |
| 244 "//components/sync:test_support_sync_api", | |
| 245 "//components/sync:test_support_sync_core_impl", | |
| 246 "//components/syncable_prefs", | |
| 247 "//components/syncable_prefs:test_support", | |
| 248 "//components/version_info", | |
| 249 "//net:test_support", | |
| 250 "//testing/gmock", | |
| 251 "//testing/gtest", | |
| 252 "//url", | |
| 253 ] | |
| 254 | |
| 255 if (enable_configuration_policy) { | |
| 256 sources += [ "sync_policy_handler_unittest.cc" ] | |
| 257 deps += [ | |
| 258 "//components/policy", | |
| 259 "//components/policy:policy_component", | |
| 260 ] | |
| 261 } | |
| 262 } | |
| OLD | NEW |