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/config/features.gni") |
| 6 import("//components/sync/protocol/protocol_sources.gni") |
| 7 import("//testing/test.gni") |
| 8 |
| 9 component("sync") { |
| 10 public_deps = [ |
| 11 ":sync_core", |
| 12 "//components/sync/protocol", |
| 13 ] |
| 14 } |
| 15 |
| 16 # GYP version: components/sync.gyp:sync_core |
| 17 source_set("sync_core") { |
| 18 sources = [ |
| 19 "api/attachments/attachment.cc", |
| 20 "api/attachments/attachment.h", |
| 21 "api/attachments/attachment_id.cc", |
| 22 "api/attachments/attachment_id.h", |
| 23 "api/attachments/attachment_metadata.cc", |
| 24 "api/attachments/attachment_metadata.h", |
| 25 "api/attachments/attachment_store.cc", |
| 26 "api/attachments/attachment_store.h", |
| 27 "api/attachments/attachment_store_backend.cc", |
| 28 "api/attachments/attachment_store_backend.h", |
| 29 "api/conflict_resolution.cc", |
| 30 "api/conflict_resolution.h", |
| 31 "api/data_batch.h", |
| 32 "api/entity_change.cc", |
| 33 "api/entity_change.h", |
| 34 "api/entity_data.cc", |
| 35 "api/entity_data.h", |
| 36 "api/metadata_batch.cc", |
| 37 "api/metadata_batch.h", |
| 38 "api/metadata_change_list.h", |
| 39 "api/model_type_change_processor.cc", |
| 40 "api/model_type_change_processor.h", |
| 41 "api/model_type_service.cc", |
| 42 "api/model_type_service.h", |
| 43 "api/model_type_store.cc", |
| 44 "api/model_type_store.h", |
| 45 "api/string_ordinal.h", |
| 46 "api/sync_change.cc", |
| 47 "api/sync_change.h", |
| 48 "api/sync_change_processor.cc", |
| 49 "api/sync_change_processor.h", |
| 50 "api/sync_data.cc", |
| 51 "api/sync_data.h", |
| 52 "api/sync_error.cc", |
| 53 "api/sync_error.h", |
| 54 "api/sync_error_factory.cc", |
| 55 "api/sync_error_factory.h", |
| 56 "api/sync_merge_result.cc", |
| 57 "api/sync_merge_result.h", |
| 58 "api/syncable_service.cc", |
| 59 "api/syncable_service.h", |
| 60 "api/time.h", |
| 61 "base/attachment_id_proto.cc", |
| 62 "base/attachment_id_proto.h", |
| 63 "base/cancelation_observer.cc", |
| 64 "base/cancelation_observer.h", |
| 65 "base/cancelation_signal.cc", |
| 66 "base/cancelation_signal.h", |
| 67 "base/cryptographer.cc", |
| 68 "base/cryptographer.h", |
| 69 "base/data_type_histogram.cc", |
| 70 "base/data_type_histogram.h", |
| 71 "base/encryptor.h", |
| 72 "base/enum_set.h", |
| 73 "base/experiments.h", |
| 74 "base/extensions_activity.cc", |
| 75 "base/extensions_activity.h", |
| 76 "base/get_session_name.cc", |
| 77 "base/get_session_name.h", |
| 78 "base/get_session_name_ios.h", |
| 79 "base/get_session_name_ios.mm", |
| 80 "base/get_session_name_linux.cc", |
| 81 "base/get_session_name_linux.h", |
| 82 "base/get_session_name_mac.h", |
| 83 "base/get_session_name_mac.mm", |
| 84 "base/get_session_name_win.cc", |
| 85 "base/get_session_name_win.h", |
| 86 "base/immutable.h", |
| 87 "base/invalidation_interface.cc", |
| 88 "base/invalidation_interface.h", |
| 89 "base/logging.cc", |
| 90 "base/logging.h", |
| 91 "base/model_type.h", |
| 92 "base/nigori.cc", |
| 93 "base/nigori.h", |
| 94 "base/node_ordinal.cc", |
| 95 "base/node_ordinal.h", |
| 96 "base/ordinal.h", |
| 97 "base/progress_marker_map.cc", |
| 98 "base/progress_marker_map.h", |
| 99 "base/proto_value_ptr.h", |
| 100 "base/stop_source.h", |
| 101 "base/sync_db_util.h", |
| 102 "base/sync_export.h", |
| 103 "base/sync_string_conversions.cc", |
| 104 "base/sync_string_conversions.h", |
| 105 "base/syncer_error.cc", |
| 106 "base/syncer_error.h", |
| 107 "base/time.cc", |
| 108 "base/time.h", |
| 109 "base/unique_position.cc", |
| 110 "base/unique_position.h", |
| 111 "base/unrecoverable_error_handler.h", |
| 112 "base/unrecoverable_error_info.cc", |
| 113 "base/unrecoverable_error_info.h", |
| 114 "base/weak_handle.cc", |
| 115 "base/weak_handle.h", |
| 116 "core/activation_context.cc", |
| 117 "core/activation_context.h", |
| 118 "core/attachments/attachment_downloader.h", |
| 119 "core/attachments/attachment_downloader_impl.h", |
| 120 "core/attachments/attachment_service.h", |
| 121 "core/attachments/attachment_service_impl.h", |
| 122 "core/attachments/attachment_service_proxy.h", |
| 123 "core/attachments/attachment_service_proxy_for_test.h", |
| 124 "core/attachments/attachment_store_frontend.h", |
| 125 "core/attachments/attachment_uploader.h", |
| 126 "core/attachments/attachment_uploader_impl.h", |
| 127 "core/attachments/attachment_util.h", |
| 128 "core/attachments/fake_attachment_downloader.h", |
| 129 "core/attachments/fake_attachment_uploader.h", |
| 130 "core/attachments/in_memory_attachment_store.h", |
| 131 "core/attachments/on_disk_attachment_store.h", |
| 132 "core/base_node.cc", |
| 133 "core/base_node.h", |
| 134 "core/base_transaction.cc", |
| 135 "core/base_transaction.h", |
| 136 "core/change_record.cc", |
| 137 "core/change_record.h", |
| 138 "core/configure_reason.h", |
| 139 "core/data_batch_impl.cc", |
| 140 "core/data_batch_impl.h", |
| 141 "core/data_type_association_stats.cc", |
| 142 "core/data_type_association_stats.h", |
| 143 "core/data_type_debug_info_listener.cc", |
| 144 "core/data_type_debug_info_listener.h", |
| 145 "core/data_type_error_handler.h", |
| 146 "core/delete_journal.cc", |
| 147 "core/delete_journal.h", |
| 148 "core/http_bridge.cc", |
| 149 "core/http_bridge.h", |
| 150 "core/http_bridge_network_resources.cc", |
| 151 "core/http_bridge_network_resources.h", |
| 152 "core/http_post_provider_factory.h", |
| 153 "core/http_post_provider_interface.h", |
| 154 "core/internal_components_factory.h", |
| 155 "core/internal_components_factory_impl.cc", |
| 156 "core/internal_components_factory_impl.h", |
| 157 "core/model_type_connector.cc", |
| 158 "core/model_type_connector.h", |
| 159 "core/model_type_processor.cc", |
| 160 "core/model_type_processor.h", |
| 161 "core/model_type_store_backend.cc", |
| 162 "core/model_type_store_backend.h", |
| 163 "core/model_type_store_impl.cc", |
| 164 "core/model_type_store_impl.h", |
| 165 "core/network_resources.h", |
| 166 "core/non_blocking_sync_common.cc", |
| 167 "core/non_blocking_sync_common.h", |
| 168 "core/processor_entity_tracker.cc", |
| 169 "core/processor_entity_tracker.h", |
| 170 "core/read_node.cc", |
| 171 "core/read_node.h", |
| 172 "core/read_transaction.cc", |
| 173 "core/read_transaction.h", |
| 174 "core/shared_model_type_processor.cc", |
| 175 "core/shared_model_type_processor.h", |
| 176 "core/shutdown_reason.h", |
| 177 "core/simple_metadata_change_list.cc", |
| 178 "core/simple_metadata_change_list.h", |
| 179 "core/sync_auth_provider.h", |
| 180 "core/sync_db_util.cc", |
| 181 "core/sync_encryption_handler.cc", |
| 182 "core/sync_encryption_handler.h", |
| 183 "core/sync_manager.cc", |
| 184 "core/sync_manager.h", |
| 185 "core/sync_manager_factory.cc", |
| 186 "core/sync_manager_factory.h", |
| 187 "core/user_share.cc", |
| 188 "core/user_share.h", |
| 189 "core/write_node.cc", |
| 190 "core/write_node.h", |
| 191 "core/write_transaction.cc", |
| 192 "core/write_transaction.h", |
| 193 "core_impl/attachments/attachment_downloader.cc", |
| 194 "core_impl/attachments/attachment_downloader_impl.cc", |
| 195 "core_impl/attachments/attachment_service.cc", |
| 196 "core_impl/attachments/attachment_service_impl.cc", |
| 197 "core_impl/attachments/attachment_service_proxy.cc", |
| 198 "core_impl/attachments/attachment_service_proxy_for_test.cc", |
| 199 "core_impl/attachments/attachment_store_frontend.cc", |
| 200 "core_impl/attachments/attachment_uploader.cc", |
| 201 "core_impl/attachments/attachment_uploader_impl.cc", |
| 202 "core_impl/attachments/attachment_util.cc", |
| 203 "core_impl/attachments/fake_attachment_downloader.cc", |
| 204 "core_impl/attachments/fake_attachment_uploader.cc", |
| 205 "core_impl/attachments/in_memory_attachment_store.cc", |
| 206 "core_impl/attachments/on_disk_attachment_store.cc", |
| 207 "core_impl/attachments/task_queue.cc", |
| 208 "core_impl/change_reorder_buffer.cc", |
| 209 "core_impl/change_reorder_buffer.h", |
| 210 "core_impl/debug_info_event_listener.cc", |
| 211 "core_impl/debug_info_event_listener.h", |
| 212 "core_impl/js_mutation_event_observer.cc", |
| 213 "core_impl/js_mutation_event_observer.h", |
| 214 "core_impl/js_sync_encryption_handler_observer.cc", |
| 215 "core_impl/js_sync_encryption_handler_observer.h", |
| 216 "core_impl/js_sync_manager_observer.cc", |
| 217 "core_impl/js_sync_manager_observer.h", |
| 218 "core_impl/model_type_connector_proxy.cc", |
| 219 "core_impl/model_type_connector_proxy.h", |
| 220 "core_impl/protocol_event_buffer.cc", |
| 221 "core_impl/protocol_event_buffer.h", |
| 222 "core_impl/sync_encryption_handler_impl.cc", |
| 223 "core_impl/sync_encryption_handler_impl.h", |
| 224 "core_impl/sync_manager_impl.cc", |
| 225 "core_impl/sync_manager_impl.h", |
| 226 "core_impl/syncapi_internal.cc", |
| 227 "core_impl/syncapi_internal.h", |
| 228 "core_impl/syncapi_server_connection_manager.cc", |
| 229 "core_impl/syncapi_server_connection_manager.h", |
| 230 "engine/events/clear_server_data_request_event.cc", |
| 231 "engine/events/clear_server_data_request_event.h", |
| 232 "engine/events/clear_server_data_response_event.cc", |
| 233 "engine/events/clear_server_data_response_event.h", |
| 234 "engine/events/commit_request_event.cc", |
| 235 "engine/events/commit_request_event.h", |
| 236 "engine/events/commit_response_event.cc", |
| 237 "engine/events/commit_response_event.h", |
| 238 "engine/events/configure_get_updates_request_event.cc", |
| 239 "engine/events/configure_get_updates_request_event.h", |
| 240 "engine/events/get_updates_response_event.cc", |
| 241 "engine/events/get_updates_response_event.h", |
| 242 "engine/events/normal_get_updates_request_event.cc", |
| 243 "engine/events/normal_get_updates_request_event.h", |
| 244 "engine/events/poll_get_updates_request_event.cc", |
| 245 "engine/events/poll_get_updates_request_event.h", |
| 246 "engine/events/protocol_event.cc", |
| 247 "engine/events/protocol_event.h", |
| 248 "engine/model_safe_worker.cc", |
| 249 "engine/model_safe_worker.h", |
| 250 "engine/passive_model_worker.cc", |
| 251 "engine/passive_model_worker.h", |
| 252 "engine/polling_constants.cc", |
| 253 "engine/polling_constants.h", |
| 254 "engine/sync_status.cc", |
| 255 "engine/sync_status.h", |
| 256 "engine_impl/all_status.cc", |
| 257 "engine_impl/all_status.h", |
| 258 "engine_impl/apply_control_data_updates.cc", |
| 259 "engine_impl/apply_control_data_updates.h", |
| 260 "engine_impl/backoff_delay_provider.cc", |
| 261 "engine_impl/backoff_delay_provider.h", |
| 262 "engine_impl/clear_server_data.cc", |
| 263 "engine_impl/clear_server_data.h", |
| 264 "engine_impl/commit.cc", |
| 265 "engine_impl/commit.h", |
| 266 "engine_impl/commit_contribution.cc", |
| 267 "engine_impl/commit_contribution.h", |
| 268 "engine_impl/commit_contributor.cc", |
| 269 "engine_impl/commit_contributor.h", |
| 270 "engine_impl/commit_processor.cc", |
| 271 "engine_impl/commit_processor.h", |
| 272 "engine_impl/commit_queue.cc", |
| 273 "engine_impl/commit_queue.h", |
| 274 "engine_impl/commit_util.cc", |
| 275 "engine_impl/commit_util.h", |
| 276 "engine_impl/conflict_resolver.cc", |
| 277 "engine_impl/conflict_resolver.h", |
| 278 "engine_impl/conflict_util.cc", |
| 279 "engine_impl/conflict_util.h", |
| 280 "engine_impl/directory_commit_contribution.cc", |
| 281 "engine_impl/directory_commit_contribution.h", |
| 282 "engine_impl/directory_commit_contributor.cc", |
| 283 "engine_impl/directory_commit_contributor.h", |
| 284 "engine_impl/directory_update_handler.cc", |
| 285 "engine_impl/directory_update_handler.h", |
| 286 "engine_impl/get_commit_ids.cc", |
| 287 "engine_impl/get_commit_ids.h", |
| 288 "engine_impl/get_updates_delegate.cc", |
| 289 "engine_impl/get_updates_delegate.h", |
| 290 "engine_impl/get_updates_processor.cc", |
| 291 "engine_impl/get_updates_processor.h", |
| 292 "engine_impl/model_type_worker.cc", |
| 293 "engine_impl/model_type_worker.h", |
| 294 "engine_impl/net/server_connection_manager.cc", |
| 295 "engine_impl/net/server_connection_manager.h", |
| 296 "engine_impl/net/url_translator.cc", |
| 297 "engine_impl/net/url_translator.h", |
| 298 "engine_impl/non_blocking_type_commit_contribution.cc", |
| 299 "engine_impl/non_blocking_type_commit_contribution.h", |
| 300 "engine_impl/nudge_handler.cc", |
| 301 "engine_impl/nudge_handler.h", |
| 302 "engine_impl/nudge_source.cc", |
| 303 "engine_impl/nudge_source.h", |
| 304 "engine_impl/process_updates_util.cc", |
| 305 "engine_impl/process_updates_util.h", |
| 306 "engine_impl/sync_cycle_event.cc", |
| 307 "engine_impl/sync_cycle_event.h", |
| 308 "engine_impl/sync_engine_event_listener.cc", |
| 309 "engine_impl/sync_engine_event_listener.h", |
| 310 "engine_impl/sync_scheduler.cc", |
| 311 "engine_impl/sync_scheduler.h", |
| 312 "engine_impl/sync_scheduler_impl.cc", |
| 313 "engine_impl/sync_scheduler_impl.h", |
| 314 "engine_impl/syncer.cc", |
| 315 "engine_impl/syncer.h", |
| 316 "engine_impl/syncer_proto_util.cc", |
| 317 "engine_impl/syncer_proto_util.h", |
| 318 "engine_impl/syncer_types.h", |
| 319 "engine_impl/syncer_util.cc", |
| 320 "engine_impl/syncer_util.h", |
| 321 "engine_impl/traffic_logger.cc", |
| 322 "engine_impl/traffic_logger.h", |
| 323 "engine_impl/update_applicator.cc", |
| 324 "engine_impl/update_applicator.h", |
| 325 "engine_impl/update_handler.cc", |
| 326 "engine_impl/update_handler.h", |
| 327 "engine_impl/worker_entity_tracker.cc", |
| 328 "engine_impl/worker_entity_tracker.h", |
| 329 "js/js_backend.h", |
| 330 "js/js_controller.h", |
| 331 "js/js_event_details.cc", |
| 332 "js/js_event_details.h", |
| 333 "js/js_event_handler.h", |
| 334 "js/sync_js_controller.cc", |
| 335 "js/sync_js_controller.h", |
| 336 "protocol/proto_enum_conversions.cc", |
| 337 "protocol/proto_enum_conversions.h", |
| 338 "protocol/proto_value_conversions.cc", |
| 339 "protocol/proto_value_conversions.h", |
| 340 "protocol/sync_protocol_error.cc", |
| 341 "protocol/sync_protocol_error.h", |
| 342 "sessions/commit_counters.cc", |
| 343 "sessions/commit_counters.h", |
| 344 "sessions/model_neutral_state.cc", |
| 345 "sessions/model_neutral_state.h", |
| 346 "sessions/status_counters.cc", |
| 347 "sessions/status_counters.h", |
| 348 "sessions/sync_session_snapshot.cc", |
| 349 "sessions/sync_session_snapshot.h", |
| 350 "sessions/type_debug_info_observer.cc", |
| 351 "sessions/type_debug_info_observer.h", |
| 352 "sessions/update_counters.cc", |
| 353 "sessions/update_counters.h", |
| 354 "sessions_impl/data_type_tracker.cc", |
| 355 "sessions_impl/data_type_tracker.h", |
| 356 "sessions_impl/debug_info_getter.h", |
| 357 "sessions_impl/directory_type_debug_info_emitter.cc", |
| 358 "sessions_impl/directory_type_debug_info_emitter.h", |
| 359 "sessions_impl/model_type_registry.cc", |
| 360 "sessions_impl/model_type_registry.h", |
| 361 "sessions_impl/nudge_tracker.cc", |
| 362 "sessions_impl/nudge_tracker.h", |
| 363 "sessions_impl/status_controller.cc", |
| 364 "sessions_impl/status_controller.h", |
| 365 "sessions_impl/sync_session.cc", |
| 366 "sessions_impl/sync_session.h", |
| 367 "sessions_impl/sync_session_context.cc", |
| 368 "sessions_impl/sync_session_context.h", |
| 369 "syncable/dir_open_result.h", |
| 370 "syncable/directory.cc", |
| 371 "syncable/directory.h", |
| 372 "syncable/directory_backing_store.cc", |
| 373 "syncable/directory_backing_store.h", |
| 374 "syncable/directory_change_delegate.h", |
| 375 "syncable/entry.cc", |
| 376 "syncable/entry.h", |
| 377 "syncable/entry_kernel.cc", |
| 378 "syncable/entry_kernel.h", |
| 379 "syncable/in_memory_directory_backing_store.cc", |
| 380 "syncable/in_memory_directory_backing_store.h", |
| 381 "syncable/invalid_directory_backing_store.cc", |
| 382 "syncable/invalid_directory_backing_store.h", |
| 383 "syncable/metahandle_set.h", |
| 384 "syncable/model_neutral_mutable_entry.cc", |
| 385 "syncable/model_neutral_mutable_entry.h", |
| 386 "syncable/model_type.cc", |
| 387 "syncable/mutable_entry.cc", |
| 388 "syncable/mutable_entry.h", |
| 389 "syncable/nigori_handler.cc", |
| 390 "syncable/nigori_handler.h", |
| 391 "syncable/nigori_util.cc", |
| 392 "syncable/nigori_util.h", |
| 393 "syncable/on_disk_directory_backing_store.cc", |
| 394 "syncable/on_disk_directory_backing_store.h", |
| 395 "syncable/parent_child_index.cc", |
| 396 "syncable/parent_child_index.h", |
| 397 "syncable/scoped_kernel_lock.cc", |
| 398 "syncable/scoped_kernel_lock.h", |
| 399 "syncable/scoped_parent_child_index_updater.cc", |
| 400 "syncable/scoped_parent_child_index_updater.h", |
| 401 "syncable/syncable-inl.h", |
| 402 "syncable/syncable_base_transaction.cc", |
| 403 "syncable/syncable_base_transaction.h", |
| 404 "syncable/syncable_base_write_transaction.cc", |
| 405 "syncable/syncable_base_write_transaction.h", |
| 406 "syncable/syncable_changes_version.h", |
| 407 "syncable/syncable_columns.h", |
| 408 "syncable/syncable_delete_journal.cc", |
| 409 "syncable/syncable_delete_journal.h", |
| 410 "syncable/syncable_enum_conversions.cc", |
| 411 "syncable/syncable_enum_conversions.h", |
| 412 "syncable/syncable_id.cc", |
| 413 "syncable/syncable_id.h", |
| 414 "syncable/syncable_model_neutral_write_transaction.cc", |
| 415 "syncable/syncable_model_neutral_write_transaction.h", |
| 416 "syncable/syncable_proto_util.cc", |
| 417 "syncable/syncable_proto_util.h", |
| 418 "syncable/syncable_read_transaction.cc", |
| 419 "syncable/syncable_read_transaction.h", |
| 420 "syncable/syncable_util.cc", |
| 421 "syncable/syncable_util.h", |
| 422 "syncable/syncable_write_transaction.cc", |
| 423 "syncable/syncable_write_transaction.h", |
| 424 "syncable/transaction_observer.h", |
| 425 "syncable/write_transaction_info.cc", |
| 426 "syncable/write_transaction_info.h", |
| 427 ] |
| 428 |
| 429 configs += [ "//build/config:precompiled_headers" ] |
| 430 |
| 431 public_deps = [ |
| 432 "//components/sync/core_impl/attachments/proto", |
| 433 "//net", |
| 434 ] |
| 435 deps = [ |
| 436 "//base", |
| 437 "//base:i18n", |
| 438 "//base/third_party/dynamic_annotations", |
| 439 "//components/sync/protocol", |
| 440 "//crypto", |
| 441 "//google_apis", |
| 442 "//sql", |
| 443 "//third_party/leveldatabase", |
| 444 "//third_party/zlib", |
| 445 "//url", |
| 446 ] |
| 447 |
| 448 if (is_android) { |
| 449 deps += [ "//components/sync/android:jni_headers" ] |
| 450 sources += [ |
| 451 "android/model_type_helper.cc", |
| 452 "android/model_type_helper.h", |
| 453 "android/sync_jni_registrar.cc", |
| 454 "android/sync_jni_registrar.h", |
| 455 ] |
| 456 } |
| 457 |
| 458 if (is_chromeos) { |
| 459 # Required by get_session_name.cc on Chrome OS. |
| 460 deps += [ "//chromeos" ] |
| 461 } |
| 462 |
| 463 if (is_mac) { |
| 464 libs = [ |
| 465 "CoreFoundation.framework", |
| 466 "SystemConfiguration.framework", # Required by get_session_name_mac.mm. |
| 467 ] |
| 468 } |
| 469 |
| 470 defines = [ "SYNC_IMPLEMENTATION" ] |
| 471 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 472 } |
| 473 |
| 474 # GYP version: sync/sync_tests.gypi:test_support_sync_core |
| 475 static_library("test_support_sync_core") { |
| 476 testonly = true |
| 477 sources = [ |
| 478 "base/mock_unrecoverable_error_handler.cc", |
| 479 "base/mock_unrecoverable_error_handler.h", |
| 480 "base/model_type_test_util.cc", |
| 481 "base/model_type_test_util.h", |
| 482 "base/test_unrecoverable_error_handler.cc", |
| 483 "base/test_unrecoverable_error_handler.h", |
| 484 "js/js_test_util.cc", |
| 485 "js/js_test_util.h", |
| 486 "sessions_impl/test_util.cc", |
| 487 "sessions_impl/test_util.h", |
| 488 "test/callback_counter.h", |
| 489 "test/directory_backing_store_corruption_testing.cc", |
| 490 "test/directory_backing_store_corruption_testing.h", |
| 491 "test/engine/fake_model_worker.cc", |
| 492 "test/engine/fake_model_worker.h", |
| 493 "test/engine/fake_sync_scheduler.cc", |
| 494 "test/engine/fake_sync_scheduler.h", |
| 495 "test/engine/mock_connection_manager.cc", |
| 496 "test/engine/mock_connection_manager.h", |
| 497 "test/engine/mock_model_type_processor.cc", |
| 498 "test/engine/mock_model_type_processor.h", |
| 499 "test/engine/mock_model_type_worker.cc", |
| 500 "test/engine/mock_model_type_worker.h", |
| 501 "test/engine/mock_nudge_handler.cc", |
| 502 "test/engine/mock_nudge_handler.h", |
| 503 "test/engine/mock_update_handler.cc", |
| 504 "test/engine/mock_update_handler.h", |
| 505 "test/engine/single_type_mock_server.cc", |
| 506 "test/engine/single_type_mock_server.h", |
| 507 "test/engine/test_directory_setter_upper.cc", |
| 508 "test/engine/test_directory_setter_upper.h", |
| 509 "test/engine/test_id_factory.h", |
| 510 "test/engine/test_syncable_utils.cc", |
| 511 "test/engine/test_syncable_utils.h", |
| 512 "test/fake_encryptor.cc", |
| 513 "test/fake_encryptor.h", |
| 514 "test/fake_sync_encryption_handler.cc", |
| 515 "test/fake_sync_encryption_handler.h", |
| 516 "test/mock_invalidation.cc", |
| 517 "test/mock_invalidation.h", |
| 518 "test/mock_invalidation_tracker.cc", |
| 519 "test/mock_invalidation_tracker.h", |
| 520 "test/null_directory_change_delegate.cc", |
| 521 "test/null_directory_change_delegate.h", |
| 522 "test/null_transaction_observer.cc", |
| 523 "test/null_transaction_observer.h", |
| 524 "test/sessions/mock_debug_info_getter.cc", |
| 525 "test/sessions/mock_debug_info_getter.h", |
| 526 "test/sessions/test_scoped_session_event_listener.h", |
| 527 "test/test_directory_backing_store.cc", |
| 528 "test/test_directory_backing_store.h", |
| 529 "test/test_transaction_observer.cc", |
| 530 "test/test_transaction_observer.h", |
| 531 "test/trackable_mock_invalidation.cc", |
| 532 "test/trackable_mock_invalidation.h", |
| 533 ] |
| 534 |
| 535 public_deps = [ |
| 536 "//base", |
| 537 "//components/sync", |
| 538 "//testing/gmock", |
| 539 "//testing/gtest", |
| 540 ] |
| 541 |
| 542 defines = [ "SYNC_TEST" ] |
| 543 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 544 } |
| 545 |
| 546 # GYP version: sync/sync_tests.gypi:test_support_sync_core_impl |
| 547 static_library("test_support_sync_core_impl") { |
| 548 testonly = true |
| 549 sources = [ |
| 550 "core/test/data_type_error_handler_mock.h", |
| 551 "core/test/fake_model_type_connector.h", |
| 552 "core/test/fake_model_type_processor.h", |
| 553 "core/test/fake_sync_manager.h", |
| 554 "core/test/model_type_store_test_util.h", |
| 555 "core/test/sync_manager_factory_for_profile_sync_test.h", |
| 556 "core/test/test_entry_factory.h", |
| 557 "core/test/test_internal_components_factory.h", |
| 558 "core/test/test_user_share.h", |
| 559 "core_impl/test/data_type_error_handler_mock.cc", |
| 560 "core_impl/test/fake_model_type_connector.cc", |
| 561 "core_impl/test/fake_model_type_processor.cc", |
| 562 "core_impl/test/fake_sync_manager.cc", |
| 563 "core_impl/test/model_type_store_test_util.cc", |
| 564 "core_impl/test/sync_manager_factory_for_profile_sync_test.cc", |
| 565 "core_impl/test/sync_manager_for_profile_sync_test.cc", |
| 566 "core_impl/test/sync_manager_for_profile_sync_test.h", |
| 567 "core_impl/test/test_entry_factory.cc", |
| 568 "core_impl/test/test_internal_components_factory.cc", |
| 569 "core_impl/test/test_user_share.cc", |
| 570 ] |
| 571 |
| 572 public_deps = [ |
| 573 ":test_support_sync_core", |
| 574 "//base", |
| 575 "//components/sync", |
| 576 "//testing/gtest", |
| 577 ] |
| 578 |
| 579 defines = [ "SYNC_TEST" ] |
| 580 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 581 } |
| 582 |
| 583 # GYP version: sync/sync_tests.gypi:test_support_sync_api |
| 584 static_library("test_support_sync_api") { |
| 585 testonly = true |
| 586 sources = [ |
| 587 "api/fake_model_type_change_processor.cc", |
| 588 "api/fake_model_type_change_processor.h", |
| 589 "api/fake_model_type_service.cc", |
| 590 "api/fake_model_type_service.h", |
| 591 "api/fake_sync_change_processor.cc", |
| 592 "api/fake_sync_change_processor.h", |
| 593 "api/fake_syncable_service.cc", |
| 594 "api/fake_syncable_service.h", |
| 595 "api/mock_model_type_store.cc", |
| 596 "api/mock_model_type_store.h", |
| 597 "api/sync_change_processor_wrapper_for_test.cc", |
| 598 "api/sync_change_processor_wrapper_for_test.h", |
| 599 "api/sync_error_factory_mock.cc", |
| 600 "api/sync_error_factory_mock.h", |
| 601 ] |
| 602 |
| 603 defines = [ "SYNC_TEST" ] |
| 604 |
| 605 public_deps = [ |
| 606 "//base", |
| 607 "//components/sync", |
| 608 "//testing/gmock", |
| 609 ] |
| 610 } |
| 611 |
| 612 # GYP version: sync/sync_tests.gypi:sync_unit_tests |
| 613 test("sync_unit_tests") { |
| 614 sources = [ |
| 615 "api/attachments/attachment_id_unittest.cc", |
| 616 "api/attachments/attachment_metadata_unittest.cc", |
| 617 "api/attachments/attachment_unittest.cc", |
| 618 "api/entity_data_unittest.cc", |
| 619 "api/model_type_service_unittest.cc", |
| 620 "api/sync_change_unittest.cc", |
| 621 "api/sync_data_unittest.cc", |
| 622 "api/sync_error_unittest.cc", |
| 623 "api/sync_merge_result_unittest.cc", |
| 624 "base/attachment_id_proto_unittest.cc", |
| 625 "base/cancelation_signal_unittest.cc", |
| 626 "base/cryptographer_unittest.cc", |
| 627 "base/data_type_histogram_unittest.cc", |
| 628 "base/enum_set_unittest.cc", |
| 629 "base/get_session_name_unittest.cc", |
| 630 "base/immutable_unittest.cc", |
| 631 "base/nigori_unittest.cc", |
| 632 "base/node_ordinal_unittest.cc", |
| 633 "base/ordinal_unittest.cc", |
| 634 "base/proto_value_ptr_unittest.cc", |
| 635 "base/protobuf_unittest.cc", |
| 636 "base/unique_position_unittest.cc", |
| 637 "base/weak_handle_unittest.cc", |
| 638 "core/change_record_unittest.cc", |
| 639 "core/data_batch_impl_unittest.cc", |
| 640 "core/http_bridge_unittest.cc", |
| 641 "core/model_type_store_backend_unittest.cc", |
| 642 "core/model_type_store_impl_unittest.cc", |
| 643 "core/processor_entity_tracker_unittest.cc", |
| 644 "core/shared_model_type_processor_unittest.cc", |
| 645 "core/simple_metadata_change_list_unittest.cc", |
| 646 "core_impl/attachments/attachment_downloader_impl_unittest.cc", |
| 647 "core_impl/attachments/attachment_service_impl_unittest.cc", |
| 648 "core_impl/attachments/attachment_service_proxy_unittest.cc", |
| 649 "core_impl/attachments/attachment_store_frontend_unittest.cc", |
| 650 "core_impl/attachments/attachment_store_test_template.h", |
| 651 "core_impl/attachments/attachment_uploader_impl_unittest.cc", |
| 652 "core_impl/attachments/fake_attachment_downloader_unittest.cc", |
| 653 "core_impl/attachments/fake_attachment_uploader_unittest.cc", |
| 654 "core_impl/attachments/in_memory_attachment_store_unittest.cc", |
| 655 "core_impl/attachments/on_disk_attachment_store_unittest.cc", |
| 656 "core_impl/attachments/task_queue_unittest.cc", |
| 657 "core_impl/debug_info_event_listener_unittest.cc", |
| 658 "core_impl/js_mutation_event_observer_unittest.cc", |
| 659 "core_impl/js_sync_encryption_handler_observer_unittest.cc", |
| 660 "core_impl/js_sync_manager_observer_unittest.cc", |
| 661 "core_impl/model_type_connector_proxy_unittest.cc", |
| 662 "core_impl/protocol_event_buffer_unittest.cc", |
| 663 "core_impl/sync_encryption_handler_impl_unittest.cc", |
| 664 "core_impl/sync_manager_impl_unittest.cc", |
| 665 "core_impl/syncapi_server_connection_manager_unittest.cc", |
| 666 "engine/model_safe_worker_unittest.cc", |
| 667 "engine_impl/apply_control_data_updates_unittest.cc", |
| 668 "engine_impl/backoff_delay_provider_unittest.cc", |
| 669 "engine_impl/directory_commit_contribution_unittest.cc", |
| 670 "engine_impl/directory_update_handler_unittest.cc", |
| 671 "engine_impl/get_updates_processor_unittest.cc", |
| 672 "engine_impl/model_type_worker_unittest.cc", |
| 673 "engine_impl/sync_scheduler_unittest.cc", |
| 674 "engine_impl/syncer_proto_util_unittest.cc", |
| 675 "engine_impl/syncer_unittest.cc", |
| 676 "engine_impl/syncer_util_unittest.cc", |
| 677 "engine_impl/worker_entity_tracker_unittest.cc", |
| 678 "js/js_event_details_unittest.cc", |
| 679 "js/sync_js_controller_unittest.cc", |
| 680 "protocol/proto_enum_conversions_unittest.cc", |
| 681 "protocol/proto_value_conversions_unittest.cc", |
| 682 "sessions/sync_session_snapshot_unittest.cc", |
| 683 "sessions_impl/model_type_registry_unittest.cc", |
| 684 "sessions_impl/nudge_tracker_unittest.cc", |
| 685 "sessions_impl/status_controller_unittest.cc", |
| 686 "syncable/directory_backing_store_unittest.cc", |
| 687 "syncable/directory_unittest.cc", |
| 688 "syncable/directory_unittest.h", |
| 689 "syncable/entry_kernel_unittest.cc", |
| 690 "syncable/model_type_unittest.cc", |
| 691 "syncable/nigori_util_unittest.cc", |
| 692 "syncable/parent_child_index_unittest.cc", |
| 693 "syncable/syncable_enum_conversions_unittest.cc", |
| 694 "syncable/syncable_id_unittest.cc", |
| 695 "syncable/syncable_unittest.cc", |
| 696 "syncable/syncable_util_unittest.cc", |
| 697 ] |
| 698 |
| 699 configs += [ "//build/config:precompiled_headers" ] |
| 700 |
| 701 data = [ |
| 702 "//chrome/test/data/sync/", |
| 703 "//net/tools/testserver/", |
| 704 "//third_party/pyftpdlib/", |
| 705 "//third_party/pywebsocket/", |
| 706 "//third_party/tlslite/", |
| 707 "$root_out_dir/pyproto/google/", |
| 708 ] |
| 709 |
| 710 deps = [ |
| 711 ":test_support_sync_api", |
| 712 ":test_support_sync_core", |
| 713 ":test_support_sync_core_impl", |
| 714 "//base", |
| 715 "//base/test:run_all_unittests", |
| 716 "//components/sync", |
| 717 "//components/sync/protocol", |
| 718 "//google_apis", |
| 719 "//google_apis:test_support", |
| 720 "//net", |
| 721 "//net:test_support", |
| 722 "//sql", |
| 723 "//sql:test_support", |
| 724 "//testing/gmock", |
| 725 "//testing/gtest", |
| 726 "//third_party/leveldatabase", |
| 727 "//third_party/protobuf:protobuf_lite", |
| 728 ] |
| 729 |
| 730 if (is_chromeos) { |
| 731 # Required by get_session_name_unittest.cc on Chrome OS. |
| 732 deps += [ "//chromeos" ] |
| 733 } |
| 734 |
| 735 if (is_ios) { |
| 736 sources -= [ "core/http_bridge_unittest.cc" ] |
| 737 } |
| 738 |
| 739 defines = [ "SYNC_TEST" ] |
| 740 } |
| 741 |
| 742 # GYP version: sync/sync_tests.gypi:test_support_sync_fake_server |
| 743 static_library("test_support_sync_fake_server") { |
| 744 testonly = true |
| 745 sources = [ |
| 746 "test/fake_server/bookmark_entity.cc", |
| 747 "test/fake_server/bookmark_entity.h", |
| 748 "test/fake_server/bookmark_entity_builder.cc", |
| 749 "test/fake_server/bookmark_entity_builder.h", |
| 750 "test/fake_server/entity_builder_factory.cc", |
| 751 "test/fake_server/entity_builder_factory.h", |
| 752 "test/fake_server/fake_server.cc", |
| 753 "test/fake_server/fake_server.h", |
| 754 "test/fake_server/fake_server_entity.cc", |
| 755 "test/fake_server/fake_server_entity.h", |
| 756 "test/fake_server/fake_server_http_post_provider.cc", |
| 757 "test/fake_server/fake_server_http_post_provider.h", |
| 758 "test/fake_server/fake_server_network_resources.cc", |
| 759 "test/fake_server/fake_server_network_resources.h", |
| 760 "test/fake_server/fake_server_verifier.cc", |
| 761 "test/fake_server/fake_server_verifier.h", |
| 762 "test/fake_server/permanent_entity.cc", |
| 763 "test/fake_server/permanent_entity.h", |
| 764 "test/fake_server/sessions_hierarchy.cc", |
| 765 "test/fake_server/sessions_hierarchy.h", |
| 766 "test/fake_server/tombstone_entity.cc", |
| 767 "test/fake_server/tombstone_entity.h", |
| 768 "test/fake_server/unique_client_entity.cc", |
| 769 "test/fake_server/unique_client_entity.h", |
| 770 ] |
| 771 |
| 772 deps = [ |
| 773 "//base", |
| 774 "//components/sync", |
| 775 "//net", |
| 776 "//testing/gtest", |
| 777 "//url", |
| 778 ] |
| 779 |
| 780 public_deps = [ |
| 781 "//third_party/protobuf:protobuf_lite", |
| 782 ] |
| 783 |
| 784 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 785 } |
| 786 |
| 787 # GYP version: sync/sync_tests.gypi:test_support_sync_testserver |
| 788 static_library("test_support_sync_testserver") { |
| 789 testonly = true |
| 790 sources = [ |
| 791 "test/local_sync_test_server.cc", |
| 792 "test/local_sync_test_server.h", |
| 793 ] |
| 794 |
| 795 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 796 |
| 797 public_deps = [ |
| 798 "//base", |
| 799 "//net:test_support", |
| 800 ] |
| 801 deps = [ |
| 802 ":sync", |
| 803 |
| 804 # The sync test server uses Python modules generated by the sync protos. |
| 805 "//third_party/protobuf:py_proto", |
| 806 ] |
| 807 } |
| 808 |
| 809 if (!is_ios) { |
| 810 # GYP version: sync/sync_tests.gypi:run_sync_testserver |
| 811 executable("run_sync_testserver") { |
| 812 testonly = true |
| 813 sources = [ |
| 814 "tools/testserver/run_sync_testserver.cc", |
| 815 ] |
| 816 |
| 817 deps = [ |
| 818 ":test_support_sync_testserver", |
| 819 "//base", |
| 820 "//base/test:test_support", |
| 821 "//build/config/sanitizers:deps", |
| 822 "//build/win:default_exe_manifest", |
| 823 "//net:test_support", |
| 824 "//testing/gtest", |
| 825 ] |
| 826 } |
| 827 } |
| 828 |
| 829 if (is_android) { |
| 830 import("//build/config/android/rules.gni") |
| 831 |
| 832 # GYP: //components/sync/sync_tests.gypi:fake_server_jni |
| 833 generate_jni("fake_server_jni") { |
| 834 testonly = true |
| 835 jni_package = "sync/test/fake_server" |
| 836 sources = [ |
| 837 "//chrome/android/sync_shell/javatests/src/org/chromium/chrome/browser/syn
c/FakeServerHelper.java", |
| 838 ] |
| 839 } |
| 840 |
| 841 _test_support_sync_prepared_protos_dir = |
| 842 "$root_gen_dir/test_support_sync_proto_java_prepare/" |
| 843 action("test_support_sync_proto_java_prepare") { |
| 844 script = "//components/sync/protocol/prepare_protos_for_java_tests.py" |
| 845 inputs = sync_protocol_sources |
| 846 outputs = process_file_template( |
| 847 sync_protocol_sources, |
| 848 [ "$_test_support_sync_prepared_protos_dir/{{source_file_part}}" ]) |
| 849 args = [ |
| 850 "--output_dir", |
| 851 rebase_path(_test_support_sync_prepared_protos_dir, root_build_dir), |
| 852 ] |
| 853 args += rebase_path(sync_protocol_sources, root_build_dir) |
| 854 } |
| 855 |
| 856 # GYP: //components/sync/sync_tests.gypi:test_support_sync_proto_java |
| 857 proto_java_library("test_support_sync_proto_java") { |
| 858 proto_path = _test_support_sync_prepared_protos_dir |
| 859 sources = get_target_outputs(":test_support_sync_proto_java_prepare") |
| 860 deps = [ |
| 861 ":test_support_sync_proto_java_prepare", |
| 862 ] |
| 863 } |
| 864 |
| 865 # GYP: //components/sync/sync_tests.gypi:sync_java_test_support |
| 866 android_library("sync_java_test_support") { |
| 867 testonly = true |
| 868 deps = [ |
| 869 "android:sync_java", |
| 870 "//base:base_java", |
| 871 "//base:base_java_test_support", |
| 872 "//third_party/jsr-305:jsr_305_javalib", |
| 873 ] |
| 874 java_files = [ |
| 875 "test/android/javatests/src/org/chromium/components/sync/test/util/Account
Holder.java", |
| 876 "test/android/javatests/src/org/chromium/components/sync/test/util/MockAcc
ountManager.java", |
| 877 "test/android/javatests/src/org/chromium/components/sync/test/util/MockSyn
cContentResolverDelegate.java", |
| 878 "test/android/javatests/src/org/chromium/components/sync/test/util/SimpleF
uture.java", |
| 879 ] |
| 880 } |
| 881 |
| 882 # GYP: //components/sync/sync_tests.gypi:test_support_sync_fake_server_android |
| 883 static_library("test_support_sync_fake_server_android") { |
| 884 testonly = true |
| 885 sources = [ |
| 886 "test/fake_server/android/fake_server_helper_android.cc", |
| 887 "test/fake_server/android/fake_server_helper_android.h", |
| 888 ] |
| 889 deps = [ |
| 890 ":fake_server_jni", |
| 891 ":sync_core", |
| 892 ":test_support_sync_fake_server", |
| 893 "//base", |
| 894 "//components/sync/protocol:protocol", |
| 895 "//testing/gtest", |
| 896 "//url:url", |
| 897 ] |
| 898 } |
| 899 } |
OLD | NEW |