OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # TODO(GYP) This exists as a stub to compile the sync protobuf so dependent | 5 import("//build/config/features.gni") |
6 # targets will compile. This target will have to be written completely for | 6 |
7 # such things to link, however. | 7 component("sync") { |
8 group("sync") { | 8 deps = [ |
9 deps = [ | 9 ":sync_core", |
10 "//sync/protocol", | 10 "//sync/protocol", |
11 ] | 11 ] |
12 } | 12 forward_dependent_configs_from = [ "//sync/protocol" ] |
13 | 13 } |
| 14 |
| 15 # GYP version: sync/sync.gyp:sync_core |
| 16 source_set("sync_core") { |
| 17 sources = [ |
| 18 "api/attachments/attachment.cc", |
| 19 "api/attachments/attachment.h", |
| 20 "api/attachments/attachment_id.cc", |
| 21 "api/attachments/attachment_id.h", |
| 22 "api/attachments/attachment_store.cc", |
| 23 "api/attachments/attachment_store.h", |
| 24 "api/attachments/fake_attachment_store.cc", |
| 25 "api/attachments/fake_attachment_store.h", |
| 26 "api/string_ordinal.h", |
| 27 "api/syncable_service.cc", |
| 28 "api/syncable_service.h", |
| 29 "api/sync_change.cc", |
| 30 "api/sync_change.h", |
| 31 "api/sync_change_processor.cc", |
| 32 "api/sync_change_processor.h", |
| 33 "api/sync_data.cc", |
| 34 "api/sync_data.h", |
| 35 "api/sync_error.cc", |
| 36 "api/sync_error_factory.cc", |
| 37 "api/sync_error_factory.h", |
| 38 "api/sync_error.h", |
| 39 "api/sync_merge_result.cc", |
| 40 "api/sync_merge_result.h", |
| 41 "api/time.h", |
| 42 "base/sync_export.h", |
| 43 "engine/all_status.cc", |
| 44 "engine/all_status.h", |
| 45 "engine/apply_control_data_updates.cc", |
| 46 "engine/apply_control_data_updates.h", |
| 47 "engine/backoff_delay_provider.cc", |
| 48 "engine/backoff_delay_provider.h", |
| 49 "engine/commit.cc", |
| 50 "engine/commit_contribution.cc", |
| 51 "engine/commit_contribution.h", |
| 52 "engine/commit_contributor.cc", |
| 53 "engine/commit_contributor.h", |
| 54 "engine/commit.h", |
| 55 "engine/commit_processor.cc", |
| 56 "engine/commit_processor.h", |
| 57 "engine/commit_util.cc", |
| 58 "engine/commit_util.h", |
| 59 "engine/conflict_resolver.cc", |
| 60 "engine/conflict_resolver.h", |
| 61 "engine/conflict_util.cc", |
| 62 "engine/conflict_util.h", |
| 63 "engine/cryptographer_provider.cc", |
| 64 "engine/cryptographer_provider.h", |
| 65 "engine/directory_commit_contribution.cc", |
| 66 "engine/directory_commit_contribution.h", |
| 67 "engine/directory_commit_contributor.cc", |
| 68 "engine/directory_commit_contributor.h", |
| 69 "engine/directory_cryptographer_provider.cc", |
| 70 "engine/directory_cryptographer_provider.h", |
| 71 "engine/directory_update_handler.cc", |
| 72 "engine/directory_update_handler.h", |
| 73 "engine/entity_tracker.cc", |
| 74 "engine/entity_tracker.h", |
| 75 "engine/get_commit_ids.cc", |
| 76 "engine/get_commit_ids.h", |
| 77 "engine/get_updates_delegate.cc", |
| 78 "engine/get_updates_delegate.h", |
| 79 "engine/get_updates_processor.cc", |
| 80 "engine/get_updates_processor.h", |
| 81 "engine/model_type_entity.cc", |
| 82 "engine/model_type_entity.h", |
| 83 "engine/model_type_sync_proxy.cc", |
| 84 "engine/model_type_sync_proxy.h", |
| 85 "engine/model_type_sync_proxy_impl.cc", |
| 86 "engine/model_type_sync_proxy_impl.h", |
| 87 "engine/model_type_sync_worker.cc", |
| 88 "engine/model_type_sync_worker.h", |
| 89 "engine/model_type_sync_worker_impl.cc", |
| 90 "engine/model_type_sync_worker_impl.h", |
| 91 "engine/net/server_connection_manager.cc", |
| 92 "engine/net/server_connection_manager.h", |
| 93 "engine/net/url_translator.cc", |
| 94 "engine/net/url_translator.h", |
| 95 "engine/non_blocking_type_commit_contribution.cc", |
| 96 "engine/non_blocking_type_commit_contribution.h", |
| 97 "engine/nudge_handler.cc", |
| 98 "engine/nudge_handler.h", |
| 99 "engine/nudge_source.cc", |
| 100 "engine/nudge_source.h", |
| 101 "engine/process_updates_util.cc", |
| 102 "engine/process_updates_util.h", |
| 103 "engine/sync_cycle_event.cc", |
| 104 "engine/sync_cycle_event.h", |
| 105 "engine/sync_engine_event_listener.cc", |
| 106 "engine/sync_engine_event_listener.h", |
| 107 "engine/syncer.cc", |
| 108 "engine/syncer.h", |
| 109 "engine/syncer_proto_util.cc", |
| 110 "engine/syncer_proto_util.h", |
| 111 "engine/syncer_types.h", |
| 112 "engine/syncer_util.cc", |
| 113 "engine/syncer_util.h", |
| 114 "engine/sync_scheduler.cc", |
| 115 "engine/sync_scheduler.h", |
| 116 "engine/sync_scheduler_impl.cc", |
| 117 "engine/sync_scheduler_impl.h", |
| 118 "engine/traffic_logger.cc", |
| 119 "engine/traffic_logger.h", |
| 120 "engine/update_applicator.cc", |
| 121 "engine/update_applicator.h", |
| 122 "engine/update_handler.cc", |
| 123 "engine/update_handler.h", |
| 124 "internal_api/attachments/attachment_downloader.cc", |
| 125 "internal_api/attachments/attachment_downloader_impl.cc", |
| 126 "internal_api/attachments/attachment_service.cc", |
| 127 "internal_api/attachments/attachment_service_impl.cc", |
| 128 "internal_api/attachments/attachment_service_proxy.cc", |
| 129 "internal_api/attachments/attachment_service_proxy_for_test.cc", |
| 130 "internal_api/attachments/attachment_uploader.cc", |
| 131 "internal_api/attachments/attachment_uploader_impl.cc", |
| 132 "internal_api/attachments/fake_attachment_downloader.cc", |
| 133 "internal_api/attachments/fake_attachment_uploader.cc", |
| 134 "internal_api/attachments/public/attachment_downloader.h", |
| 135 "internal_api/attachments/public/attachment_service.h", |
| 136 "internal_api/attachments/public/attachment_service_impl.h", |
| 137 "internal_api/attachments/public/attachment_service_proxy_for_test.h", |
| 138 "internal_api/attachments/public/attachment_service_proxy.h", |
| 139 "internal_api/attachments/public/attachment_uploader.h", |
| 140 "internal_api/base_node.cc", |
| 141 "internal_api/base_transaction.cc", |
| 142 "internal_api/change_record.cc", |
| 143 "internal_api/change_reorder_buffer.cc", |
| 144 "internal_api/change_reorder_buffer.h", |
| 145 "internal_api/debug_info_event_listener.cc", |
| 146 "internal_api/debug_info_event_listener.h", |
| 147 "internal_api/delete_journal.cc", |
| 148 "internal_api/events/commit_request_event.cc", |
| 149 "internal_api/events/commit_response_event.cc", |
| 150 "internal_api/events/configure_get_updates_request_event.cc", |
| 151 "internal_api/events/get_updates_response_event.cc", |
| 152 "internal_api/events/normal_get_updates_request_event.cc", |
| 153 "internal_api/events/poll_get_updates_request_event.cc", |
| 154 "internal_api/events/protocol_event.cc", |
| 155 "internal_api/http_bridge.cc", |
| 156 "internal_api/http_bridge_network_resources.cc", |
| 157 "internal_api/internal_components_factory_impl.cc", |
| 158 "internal_api/js_mutation_event_observer.cc", |
| 159 "internal_api/js_mutation_event_observer.h", |
| 160 "internal_api/js_sync_encryption_handler_observer.cc", |
| 161 "internal_api/js_sync_encryption_handler_observer.h", |
| 162 "internal_api/js_sync_manager_observer.cc", |
| 163 "internal_api/js_sync_manager_observer.h", |
| 164 "internal_api/protocol_event_buffer.cc", |
| 165 "internal_api/protocol_event_buffer.h", |
| 166 "internal_api/public/attachments/attachment_downloader_impl.h", |
| 167 "internal_api/public/attachments/attachment_uploader_impl.h", |
| 168 "internal_api/public/attachments/fake_attachment_downloader.h", |
| 169 "internal_api/public/attachments/fake_attachment_uploader.h", |
| 170 "internal_api/public/base/attachment_id_proto.cc", |
| 171 "internal_api/public/base/attachment_id_proto.h", |
| 172 "internal_api/public/base/cancelation_observer.cc", |
| 173 "internal_api/public/base/cancelation_observer.h", |
| 174 "internal_api/public/base/cancelation_signal.cc", |
| 175 "internal_api/public/base/cancelation_signal.h", |
| 176 "internal_api/public/base/enum_set.h", |
| 177 "internal_api/public/base/enum_set.h", |
| 178 "internal_api/public/base/invalidation_interface.cc", |
| 179 "internal_api/public/base/invalidation_interface.h", |
| 180 "internal_api/public/base/model_type.h", |
| 181 "internal_api/public/base_node.h", |
| 182 "internal_api/public/base/node_ordinal.cc", |
| 183 "internal_api/public/base/node_ordinal.h", |
| 184 "internal_api/public/base/ordinal.h", |
| 185 "internal_api/public/base/progress_marker_map.cc", |
| 186 "internal_api/public/base/progress_marker_map.h", |
| 187 "internal_api/public/base_transaction.h", |
| 188 "internal_api/public/base/unique_position.cc", |
| 189 "internal_api/public/base/unique_position.h", |
| 190 "internal_api/public/change_record.h", |
| 191 "internal_api/public/configure_reason.h", |
| 192 "internal_api/public/data_type_association_stats.cc", |
| 193 "internal_api/public/data_type_association_stats.h", |
| 194 "internal_api/public/data_type_debug_info_listener.cc", |
| 195 "internal_api/public/data_type_debug_info_listener.h", |
| 196 "internal_api/public/delete_journal.h", |
| 197 "internal_api/public/engine/model_safe_worker.cc", |
| 198 "internal_api/public/engine/model_safe_worker.h", |
| 199 "internal_api/public/engine/passive_model_worker.cc", |
| 200 "internal_api/public/engine/passive_model_worker.h", |
| 201 "internal_api/public/engine/polling_constants.cc", |
| 202 "internal_api/public/engine/polling_constants.h", |
| 203 "internal_api/public/engine/sync_status.cc", |
| 204 "internal_api/public/engine/sync_status.h", |
| 205 "internal_api/public/events/commit_request_event.h", |
| 206 "internal_api/public/events/commit_response_event.h", |
| 207 "internal_api/public/events/configure_get_updates_request_event.h", |
| 208 "internal_api/public/events/get_updates_response_event.h", |
| 209 "internal_api/public/events/normal_get_updates_request_event.h", |
| 210 "internal_api/public/events/poll_get_updates_request_event.h", |
| 211 "internal_api/public/events/protocol_event.h", |
| 212 "internal_api/public/http_bridge.h", |
| 213 "internal_api/public/http_bridge_network_resources.h", |
| 214 "internal_api/public/http_post_provider_factory.h", |
| 215 "internal_api/public/http_post_provider_interface.h", |
| 216 "internal_api/public/internal_components_factory.h", |
| 217 "internal_api/public/internal_components_factory_impl.h", |
| 218 "internal_api/public/network_resources.h", |
| 219 "internal_api/public/non_blocking_sync_common.cc", |
| 220 "internal_api/public/non_blocking_sync_common.h", |
| 221 "internal_api/public/read_node.h", |
| 222 "internal_api/public/read_transaction.h", |
| 223 "internal_api/public/sessions/commit_counters.cc", |
| 224 "internal_api/public/sessions/commit_counters.h", |
| 225 "internal_api/public/sessions/model_neutral_state.cc", |
| 226 "internal_api/public/sessions/model_neutral_state.h", |
| 227 "internal_api/public/sessions/status_counters.cc", |
| 228 "internal_api/public/sessions/status_counters.h", |
| 229 "internal_api/public/sessions/sync_session_snapshot.cc", |
| 230 "internal_api/public/sessions/sync_session_snapshot.h", |
| 231 "internal_api/public/sessions/type_debug_info_observer.cc", |
| 232 "internal_api/public/sessions/type_debug_info_observer.h", |
| 233 "internal_api/public/sessions/update_counters.cc", |
| 234 "internal_api/public/sessions/update_counters.h", |
| 235 "internal_api/public/shutdown_reason.h", |
| 236 "internal_api/public/sync_auth_provider.h", |
| 237 "internal_api/public/sync_context.h", |
| 238 "internal_api/public/sync_context_proxy.h", |
| 239 "internal_api/public/sync_encryption_handler.cc", |
| 240 "internal_api/public/sync_encryption_handler.h", |
| 241 "internal_api/public/sync_manager.cc", |
| 242 "internal_api/public/sync_manager_factory.h", |
| 243 "internal_api/public/sync_manager.h", |
| 244 "internal_api/public/user_share.h", |
| 245 "internal_api/public/util/experiments.h", |
| 246 "internal_api/public/util/immutable.h", |
| 247 "internal_api/public/util/report_unrecoverable_error_function.h", |
| 248 "internal_api/public/util/sync_db_util.h", |
| 249 "internal_api/public/util/syncer_error.cc", |
| 250 "internal_api/public/util/syncer_error.h", |
| 251 "internal_api/public/util/sync_string_conversions.cc", |
| 252 "internal_api/public/util/sync_string_conversions.h", |
| 253 "internal_api/public/util/unrecoverable_error_handler.h", |
| 254 "internal_api/public/util/unrecoverable_error_info.cc", |
| 255 "internal_api/public/util/unrecoverable_error_info.h", |
| 256 "internal_api/public/util/weak_handle.cc", |
| 257 "internal_api/public/util/weak_handle.h", |
| 258 "internal_api/public/write_node.h", |
| 259 "internal_api/public/write_transaction.h", |
| 260 "internal_api/read_node.cc", |
| 261 "internal_api/read_transaction.cc", |
| 262 "internal_api/syncapi_internal.cc", |
| 263 "internal_api/syncapi_internal.h", |
| 264 "internal_api/syncapi_server_connection_manager.cc", |
| 265 "internal_api/syncapi_server_connection_manager.h", |
| 266 "internal_api/sync_backup_manager.cc", |
| 267 "internal_api/sync_backup_manager.h", |
| 268 "internal_api/sync_context.cc", |
| 269 "internal_api/sync_context_proxy.cc", |
| 270 "internal_api/sync_context_proxy_impl.cc", |
| 271 "internal_api/sync_context_proxy_impl.h", |
| 272 "internal_api/sync_db_util.cc", |
| 273 "internal_api/sync_encryption_handler_impl.cc", |
| 274 "internal_api/sync_encryption_handler_impl.h", |
| 275 "internal_api/sync_manager_factory.cc", |
| 276 "internal_api/sync_manager_impl.cc", |
| 277 "internal_api/sync_manager_impl.h", |
| 278 "internal_api/sync_rollback_manager_base.cc", |
| 279 "internal_api/sync_rollback_manager_base.h", |
| 280 "internal_api/sync_rollback_manager.cc", |
| 281 "internal_api/sync_rollback_manager.h", |
| 282 "internal_api/user_share.cc", |
| 283 "internal_api/write_node.cc", |
| 284 "internal_api/write_transaction.cc", |
| 285 "js/js_backend.h", |
| 286 "js/js_controller.h", |
| 287 "js/js_event_details.cc", |
| 288 "js/js_event_details.h", |
| 289 "js/js_event_handler.h", |
| 290 "js/sync_js_controller.cc", |
| 291 "js/sync_js_controller.h", |
| 292 "protocol/proto_enum_conversions.cc", |
| 293 "protocol/proto_enum_conversions.h", |
| 294 "protocol/proto_value_conversions.cc", |
| 295 "protocol/proto_value_conversions.h", |
| 296 "protocol/sync_protocol_error.cc", |
| 297 "protocol/sync_protocol_error.h", |
| 298 "sessions/data_type_tracker.cc", |
| 299 "sessions/data_type_tracker.h", |
| 300 "sessions/debug_info_getter.h", |
| 301 "sessions/directory_type_debug_info_emitter.cc", |
| 302 "sessions/directory_type_debug_info_emitter.h", |
| 303 "sessions/model_type_registry.cc", |
| 304 "sessions/model_type_registry.h", |
| 305 "sessions/nudge_tracker.cc", |
| 306 "sessions/nudge_tracker.h", |
| 307 "sessions/status_controller.cc", |
| 308 "sessions/status_controller.h", |
| 309 "sessions/sync_session.cc", |
| 310 "sessions/sync_session_context.cc", |
| 311 "sessions/sync_session_context.h", |
| 312 "sessions/sync_session.h", |
| 313 "syncable/blob.h", |
| 314 "syncable/directory_backing_store.cc", |
| 315 "syncable/directory_backing_store.h", |
| 316 "syncable/directory.cc", |
| 317 "syncable/directory_change_delegate.h", |
| 318 "syncable/directory.h", |
| 319 "syncable/dir_open_result.h", |
| 320 "syncable/entry.cc", |
| 321 "syncable/entry.h", |
| 322 "syncable/entry_kernel.cc", |
| 323 "syncable/entry_kernel.h", |
| 324 "syncable/in_memory_directory_backing_store.cc", |
| 325 "syncable/in_memory_directory_backing_store.h", |
| 326 "syncable/invalid_directory_backing_store.cc", |
| 327 "syncable/invalid_directory_backing_store.h", |
| 328 "syncable/metahandle_set.h", |
| 329 "syncable/model_neutral_mutable_entry.cc", |
| 330 "syncable/model_neutral_mutable_entry.h", |
| 331 "syncable/model_type.cc", |
| 332 "syncable/mutable_entry.cc", |
| 333 "syncable/mutable_entry.h", |
| 334 "syncable/nigori_handler.cc", |
| 335 "syncable/nigori_handler.h", |
| 336 "syncable/nigori_util.cc", |
| 337 "syncable/nigori_util.h", |
| 338 "syncable/on_disk_directory_backing_store.cc", |
| 339 "syncable/on_disk_directory_backing_store.h", |
| 340 "syncable/parent_child_index.cc", |
| 341 "syncable/parent_child_index.h", |
| 342 "syncable/scoped_kernel_lock.cc", |
| 343 "syncable/scoped_kernel_lock.h", |
| 344 "syncable/scoped_parent_child_index_updater.cc", |
| 345 "syncable/scoped_parent_child_index_updater.h", |
| 346 "syncable/syncable_base_transaction.cc", |
| 347 "syncable/syncable_base_transaction.h", |
| 348 "syncable/syncable_base_write_transaction.cc", |
| 349 "syncable/syncable_base_write_transaction.h", |
| 350 "syncable/syncable_changes_version.h", |
| 351 "syncable/syncable_columns.h", |
| 352 "syncable/syncable_delete_journal.cc", |
| 353 "syncable/syncable_delete_journal.h", |
| 354 "syncable/syncable_enum_conversions.cc", |
| 355 "syncable/syncable_enum_conversions.h", |
| 356 "syncable/syncable_id.cc", |
| 357 "syncable/syncable_id.h", |
| 358 "syncable/syncable-inl.h", |
| 359 "syncable/syncable_model_neutral_write_transaction.cc", |
| 360 "syncable/syncable_model_neutral_write_transaction.h", |
| 361 "syncable/syncable_proto_util.cc", |
| 362 "syncable/syncable_proto_util.h", |
| 363 "syncable/syncable_read_transaction.cc", |
| 364 "syncable/syncable_read_transaction.h", |
| 365 "syncable/syncable_util.cc", |
| 366 "syncable/syncable_util.h", |
| 367 "syncable/syncable_write_transaction.cc", |
| 368 "syncable/syncable_write_transaction.h", |
| 369 "syncable/transaction_observer.h", |
| 370 "syncable/write_transaction_info.cc", |
| 371 "syncable/write_transaction_info.h", |
| 372 "util/cryptographer.cc", |
| 373 "util/cryptographer.h", |
| 374 "util/data_type_histogram.h", |
| 375 "util/encryptor.h", |
| 376 "util/extensions_activity.cc", |
| 377 "util/extensions_activity.h", |
| 378 "util/get_session_name.cc", |
| 379 "util/get_session_name.h", |
| 380 "util/get_session_name_ios.h", |
| 381 "util/get_session_name_ios.mm", |
| 382 "util/get_session_name_linux.cc", |
| 383 "util/get_session_name_linux.h", |
| 384 "util/get_session_name_mac.h", |
| 385 "util/get_session_name_mac.mm", |
| 386 "util/get_session_name_win.cc", |
| 387 "util/get_session_name_win.h", |
| 388 "util/logging.cc", |
| 389 "util/logging.h", |
| 390 "util/nigori.cc", |
| 391 "util/nigori.h", |
| 392 "util/time.cc", |
| 393 "util/time.h", |
| 394 ] |
| 395 |
| 396 deps = [ |
| 397 "//base", |
| 398 "//base:i18n", |
| 399 "//crypto", |
| 400 "//google_apis", |
| 401 "//net", |
| 402 "//sql", |
| 403 "//third_party/zlib", |
| 404 "//url", |
| 405 "//sync/protocol", |
| 406 ] |
| 407 |
| 408 if (is_chromeos) { |
| 409 # Required by get_session_name.cc on Chrome OS. |
| 410 deps += [ |
| 411 "//chromeos" |
| 412 ] |
| 413 } |
| 414 |
| 415 defines = [ "SYNC_IMPLEMENTATION" ] |
| 416 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 417 } |
| 418 |
| 419 # GYP version: sync/sync_tests.gypi:test_support_sync_core |
| 420 static_library("test_support_sync_core") { |
| 421 sources = [ |
| 422 "internal_api/public/base/model_type_test_util.cc", |
| 423 "internal_api/public/base/model_type_test_util.h", |
| 424 "js/js_test_util.cc", |
| 425 "js/js_test_util.h", |
| 426 "sessions/test_util.cc", |
| 427 "sessions/test_util.h", |
| 428 "test/callback_counter.h", |
| 429 "test/engine/fake_model_worker.cc", |
| 430 "test/engine/fake_model_worker.h", |
| 431 "test/engine/fake_sync_scheduler.cc", |
| 432 "test/engine/fake_sync_scheduler.h", |
| 433 "test/engine/injectable_sync_context_proxy.cc", |
| 434 "test/engine/injectable_sync_context_proxy.h", |
| 435 "test/engine/mock_connection_manager.cc", |
| 436 "test/engine/mock_connection_manager.h", |
| 437 "test/engine/mock_model_type_sync_proxy.cc", |
| 438 "test/engine/mock_model_type_sync_proxy.h", |
| 439 "test/engine/mock_model_type_sync_worker.cc", |
| 440 "test/engine/mock_model_type_sync_worker.h", |
| 441 "test/engine/mock_nudge_handler.cc", |
| 442 "test/engine/mock_nudge_handler.h", |
| 443 "test/engine/mock_update_handler.cc", |
| 444 "test/engine/mock_update_handler.h", |
| 445 "test/engine/simple_cryptographer_provider.cc", |
| 446 "test/engine/simple_cryptographer_provider.h", |
| 447 "test/engine/single_type_mock_server.cc", |
| 448 "test/engine/single_type_mock_server.h", |
| 449 "test/engine/test_directory_setter_upper.cc", |
| 450 "test/engine/test_directory_setter_upper.h", |
| 451 "test/engine/test_id_factory.h", |
| 452 "test/engine/test_syncable_utils.cc", |
| 453 "test/engine/test_syncable_utils.h", |
| 454 "test/fake_encryptor.cc", |
| 455 "test/fake_encryptor.h", |
| 456 "test/fake_sync_encryption_handler.cc", |
| 457 "test/fake_sync_encryption_handler.h", |
| 458 "test/mock_invalidation.cc", |
| 459 "test/mock_invalidation.h", |
| 460 "test/mock_invalidation_tracker.cc", |
| 461 "test/mock_invalidation_tracker.h", |
| 462 "test/trackable_mock_invalidation.cc", |
| 463 "test/trackable_mock_invalidation.h", |
| 464 "test/null_directory_change_delegate.cc", |
| 465 "test/null_directory_change_delegate.h", |
| 466 "test/null_transaction_observer.cc", |
| 467 "test/null_transaction_observer.h", |
| 468 "test/sessions/test_scoped_session_event_listener.h", |
| 469 "test/sessions/mock_debug_info_getter.h", |
| 470 "test/sessions/mock_debug_info_getter.cc", |
| 471 "test/test_directory_backing_store.cc", |
| 472 "test/test_directory_backing_store.h", |
| 473 "test/test_transaction_observer.cc", |
| 474 "test/test_transaction_observer.h", |
| 475 "util/test_unrecoverable_error_handler.cc", |
| 476 "util/test_unrecoverable_error_handler.h", |
| 477 ] |
| 478 |
| 479 deps = [ |
| 480 "//base", |
| 481 "//testing/gmock", |
| 482 "//testing/gtest", |
| 483 "//sync", |
| 484 ] |
| 485 |
| 486 defines = [ "SYNC_TEST" ] |
| 487 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 488 |
| 489 forward_dependent_configs_from = [ |
| 490 "//testing/gmock", |
| 491 "//testing/gtest", |
| 492 "//sync" |
| 493 ] |
| 494 } |
| 495 |
| 496 # GYP version: sync/sync_tests.gypi:test_support_sync_internal_api |
| 497 static_library("test_support_sync_internal_api") { |
| 498 sources = [ |
| 499 "internal_api/public/test/fake_sync_manager.h", |
| 500 "internal_api/public/test/null_sync_context_proxy.h", |
| 501 "internal_api/public/test/sync_manager_factory_for_profile_sync_test.h", |
| 502 "internal_api/public/test/test_entry_factory.h", |
| 503 "internal_api/public/test/test_internal_components_factory.h", |
| 504 "internal_api/public/test/test_user_share.h", |
| 505 "internal_api/test/fake_sync_manager.cc", |
| 506 "internal_api/test/null_sync_context_proxy.cc", |
| 507 "internal_api/test/sync_manager_factory_for_profile_sync_test.cc", |
| 508 "internal_api/test/sync_manager_for_profile_sync_test.cc", |
| 509 "internal_api/test/sync_manager_for_profile_sync_test.h", |
| 510 "internal_api/test/test_entry_factory.cc", |
| 511 "internal_api/test/test_internal_components_factory.cc", |
| 512 "internal_api/test/test_user_share.cc", |
| 513 ] |
| 514 |
| 515 deps = [ |
| 516 "//base", |
| 517 "//testing/gtest", |
| 518 "//sync", |
| 519 ":test_support_sync_core", |
| 520 ] |
| 521 |
| 522 defines = [ "SYNC_TEST" ] |
| 523 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 524 |
| 525 forward_dependent_configs_from = [ |
| 526 "//testing/gtest", |
| 527 "//sync", |
| 528 ":test_support_sync_core", |
| 529 ] |
| 530 } |
| 531 |
| 532 # GYP version: sync/sync_tests.gypi:test_support_sync_api |
| 533 static_library("test_support_sync_api") { |
| 534 sources = [ |
| 535 "api/fake_syncable_service.cc", |
| 536 "api/fake_syncable_service.h", |
| 537 "api/fake_sync_change_processor.cc", |
| 538 "api/fake_sync_change_processor.h", |
| 539 "api/sync_change_processor_wrapper_for_test.cc", |
| 540 "api/sync_change_processor_wrapper_for_test.h", |
| 541 "api/sync_error_factory_mock.cc", |
| 542 "api/sync_error_factory_mock.h", |
| 543 ] |
| 544 |
| 545 deps = [ |
| 546 "//testing/gmock", |
| 547 "//sync", |
| 548 ] |
| 549 |
| 550 defines = [ "SYNC_TEST" ] |
| 551 |
| 552 forward_dependent_configs_from = [ |
| 553 "//testing/gmock", |
| 554 "//sync", |
| 555 ] |
| 556 } |
| 557 |
| 558 # GYP version: sync/sync_tests.gypi:sync_unit_tests |
| 559 test("sync_unit_tests") { |
| 560 sources = [ |
| 561 "api/attachments/attachment_id_unittest.cc", |
| 562 "api/attachments/attachment_unittest.cc", |
| 563 "api/sync_change_unittest.cc", |
| 564 "api/sync_data_unittest.cc", |
| 565 "api/sync_error_unittest.cc", |
| 566 "api/sync_merge_result_unittest.cc", |
| 567 "engine/apply_control_data_updates_unittest.cc", |
| 568 "engine/backoff_delay_provider_unittest.cc", |
| 569 "engine/directory_commit_contribution_unittest.cc", |
| 570 "engine/directory_update_handler_unittest.cc", |
| 571 "engine/entity_tracker_unittest.cc", |
| 572 "engine/get_updates_processor_unittest.cc", |
| 573 "engine/model_type_entity_unittest.cc", |
| 574 "engine/model_type_sync_proxy_impl_unittest.cc", |
| 575 "engine/model_type_sync_worker_impl_unittest.cc", |
| 576 "engine/sync_scheduler_unittest.cc", |
| 577 "engine/syncer_proto_util_unittest.cc", |
| 578 "engine/syncer_unittest.cc", |
| 579 "engine/syncer_util_unittest.cc", |
| 580 "internal_api/attachments/attachment_downloader_impl_unittest.cc", |
| 581 "internal_api/attachments/attachment_service_impl_unittest.cc", |
| 582 "internal_api/attachments/attachment_service_proxy_unittest.cc", |
| 583 "internal_api/attachments/attachment_uploader_impl_unittest.cc", |
| 584 "internal_api/attachments/fake_attachment_downloader_unittest.cc", |
| 585 "internal_api/attachments/fake_attachment_uploader_unittest.cc", |
| 586 "internal_api/debug_info_event_listener_unittest.cc", |
| 587 "internal_api/http_bridge_unittest.cc", |
| 588 "internal_api/js_mutation_event_observer_unittest.cc", |
| 589 "internal_api/js_sync_encryption_handler_observer_unittest.cc", |
| 590 "internal_api/js_sync_manager_observer_unittest.cc", |
| 591 "internal_api/protocol_event_buffer_unittest.cc", |
| 592 "internal_api/public/base/attachment_id_proto_unittest.cc", |
| 593 "internal_api/public/base/cancelation_signal_unittest.cc", |
| 594 "internal_api/public/base/enum_set_unittest.cc", |
| 595 "internal_api/public/base/node_ordinal_unittest.cc", |
| 596 "internal_api/public/base/ordinal_unittest.cc", |
| 597 "internal_api/public/base/unique_position_unittest.cc", |
| 598 "internal_api/public/change_record_unittest.cc", |
| 599 "internal_api/public/engine/model_safe_worker_unittest.cc", |
| 600 "internal_api/public/sessions/sync_session_snapshot_unittest.cc", |
| 601 "internal_api/public/util/immutable_unittest.cc", |
| 602 "internal_api/public/util/weak_handle_unittest.cc", |
| 603 "internal_api/sync_backup_manager_unittest.cc", |
| 604 "internal_api/sync_context_proxy_impl_unittest.cc", |
| 605 "internal_api/sync_encryption_handler_impl_unittest.cc", |
| 606 "internal_api/sync_manager_impl_unittest.cc", |
| 607 "internal_api/sync_rollback_manager_base_unittest.cc", |
| 608 "internal_api/sync_rollback_manager_unittest.cc", |
| 609 "internal_api/syncapi_server_connection_manager_unittest.cc", |
| 610 "js/js_event_details_unittest.cc", |
| 611 "js/sync_js_controller_unittest.cc", |
| 612 "protocol/proto_enum_conversions_unittest.cc", |
| 613 "protocol/proto_value_conversions_unittest.cc", |
| 614 "sessions/model_type_registry_unittest.cc", |
| 615 "sessions/nudge_tracker_unittest.cc", |
| 616 "sessions/status_controller_unittest.cc", |
| 617 "syncable/directory_backing_store_unittest.cc", |
| 618 "syncable/directory_unittest.cc", |
| 619 "syncable/directory_unittest.h", |
| 620 "syncable/entry_kernel_unittest.cc", |
| 621 "syncable/model_type_unittest.cc", |
| 622 "syncable/nigori_util_unittest.cc", |
| 623 "syncable/parent_child_index_unittest.cc", |
| 624 "syncable/syncable_enum_conversions_unittest.cc", |
| 625 "syncable/syncable_id_unittest.cc", |
| 626 "syncable/syncable_unittest.cc", |
| 627 "syncable/syncable_util_unittest.cc", |
| 628 "util/cryptographer_unittest.cc", |
| 629 "util/data_type_histogram_unittest.cc", |
| 630 "util/get_session_name_unittest.cc", |
| 631 "util/nigori_unittest.cc", |
| 632 "util/protobuf_unittest.cc", |
| 633 ] |
| 634 |
| 635 deps = [ |
| 636 "//base", |
| 637 "//base/allocator", |
| 638 "//base/test:run_all_unittests", |
| 639 "//google_apis", |
| 640 "//google_apis:test_support", |
| 641 "//net", |
| 642 "//net:test_support", |
| 643 "//sql", |
| 644 "//testing/gmock", |
| 645 "//testing/gtest", |
| 646 "//third_party/protobuf:protobuf_lite", |
| 647 "//sync", |
| 648 ":test_support_sync_core", |
| 649 ":test_support_sync_internal_api", |
| 650 ] |
| 651 |
| 652 # TODO(GYP) |
| 653 # ['OS == "android"', { |
| 654 # 'dependencies': [ |
| 655 # '../testing/android/native_test.gyp:native_test_native_code', |
| 656 # ], |
| 657 # }], |
| 658 |
| 659 if (is_chromeos) { |
| 660 # Required by get_session_name_unittest.cc on Chrome OS. |
| 661 deps += [ |
| 662 "//chromeos" |
| 663 ] |
| 664 } |
| 665 |
| 666 if (is_ios) { |
| 667 sources -= [ "internal_api/http_bridge_unittest.cc" ] |
| 668 } |
| 669 |
| 670 defines = [ "SYNC_TEST" ] |
| 671 } |
| 672 |
| 673 # GYP version: sync/sync_tests.gypi:test_support_sync_fake_server |
| 674 static_library("test_support_sync_fake_server") { |
| 675 sources = [ |
| 676 "test/fake_server/bookmark_entity.cc", |
| 677 "test/fake_server/bookmark_entity.h", |
| 678 "test/fake_server/bookmark_entity_builder.cc", |
| 679 "test/fake_server/bookmark_entity_builder.h", |
| 680 "test/fake_server/entity_builder.cc", |
| 681 "test/fake_server/entity_builder.h", |
| 682 "test/fake_server/entity_builder_factory.cc", |
| 683 "test/fake_server/entity_builder_factory.h", |
| 684 "test/fake_server/fake_server.cc", |
| 685 "test/fake_server/fake_server.h", |
| 686 "test/fake_server/fake_server_entity.cc", |
| 687 "test/fake_server/fake_server_entity.h", |
| 688 "test/fake_server/fake_server_http_post_provider.cc", |
| 689 "test/fake_server/fake_server_http_post_provider.h", |
| 690 "test/fake_server/fake_server_network_resources.cc", |
| 691 "test/fake_server/fake_server_network_resources.h", |
| 692 "test/fake_server/fake_server_verifier.cc", |
| 693 "test/fake_server/fake_server_verifier.h", |
| 694 "test/fake_server/permanent_entity.cc", |
| 695 "test/fake_server/permanent_entity.h", |
| 696 "test/fake_server/tombstone_entity.cc", |
| 697 "test/fake_server/tombstone_entity.h", |
| 698 "test/fake_server/unique_client_entity.cc", |
| 699 "test/fake_server/unique_client_entity.h", |
| 700 ] |
| 701 |
| 702 deps = [ |
| 703 "//base", |
| 704 "//net", |
| 705 "//testing/gtest", |
| 706 "//third_party/protobuf:protobuf_lite", |
| 707 "//sync", |
| 708 ] |
| 709 |
| 710 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 711 } |
| 712 |
| 713 # GYP version: sync/sync_tests.gypi:test_support_sync_testserver |
| 714 static_library("test_support_sync_testserver") { |
| 715 sources = [ |
| 716 "test/local_sync_test_server.cc", |
| 717 "test/local_sync_test_server.h", |
| 718 ] |
| 719 |
| 720 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 721 |
| 722 deps = [ |
| 723 "//base", |
| 724 "//net:test_support", |
| 725 ":sync", |
| 726 |
| 727 # The sync test server uses Python modules generated by the sync protos. |
| 728 # '../third_party/protobuf/protobuf.gyp:py_proto', # TODO(GYP) |
| 729 ] |
| 730 |
| 731 forward_dependent_configs_from = [ "//base", "//net:test_support" ] |
| 732 } |
| 733 |
| 734 # GYP version: sync/sync_tests.gypi:test_support_accounts_client |
| 735 static_library("test_support_accounts_client") { |
| 736 sources = [ |
| 737 "test/accounts_client/test_accounts_client.cc", |
| 738 "test/accounts_client/test_accounts_client.h", |
| 739 "test/accounts_client/url_request_context_getter.cc", |
| 740 "test/accounts_client/url_request_context_getter.h", |
| 741 ] |
| 742 deps = [ |
| 743 "//base", |
| 744 "//net", |
| 745 ] |
| 746 } |
| 747 |
| 748 # GYP version: sync/sync_tests.gypi:sync_endtoend_tests |
| 749 test("sync_endtoend_tests") { |
| 750 sources = [ |
| 751 "test/accounts_client/test_accounts_client_unittest.cc", |
| 752 ] |
| 753 deps = [ |
| 754 "//base/test:run_all_unittests", |
| 755 "//testing/gmock", |
| 756 "//testing/gtest", |
| 757 "//url", |
| 758 ":test_support_accounts_client", |
| 759 ] |
| 760 } |
| 761 |
| 762 if (!is_ios) { |
| 763 # GYP version: sync/sync_tests.gypi:run_sync_testserver |
| 764 executable("run_sync_testserver") { |
| 765 sources = [ "tools/testserver/run_sync_testserver.cc" ] |
| 766 |
| 767 deps = [ |
| 768 "//base", |
| 769 "//base/test:test_support", |
| 770 "//net:test_support", |
| 771 "//testing/gtest", |
| 772 ":test_support_sync_testserver", |
| 773 ] |
| 774 } |
| 775 } |
| 776 |
| 777 #TODO(GYP): Need to port sync_android.gypi and Android test targets. |
OLD | NEW |