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")
6 import("//testing/test.gni")
15 # GYP version: sync/sync.gyp:sync_core
16 source_set("sync_core") {
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_metadata.cc",
23 "api/attachments/attachment_metadata.h",
24 "api/attachments/attachment_store.cc",
25 "api/attachments/attachment_store.h",
26 "api/attachments/attachment_store_backend.cc",
27 "api/attachments/attachment_store_backend.h",
28 "api/string_ordinal.h",
31 "api/sync_change_processor.cc",
32 "api/sync_change_processor.h",
37 "api/sync_error_factory.cc",
38 "api/sync_error_factory.h",
39 "api/sync_merge_result.cc",
40 "api/sync_merge_result.h",
41 "api/syncable_service.cc",
42 "api/syncable_service.h",
45 "engine/all_status.cc",
46 "engine/all_status.h",
47 "engine/apply_control_data_updates.cc",
48 "engine/apply_control_data_updates.h",
49 "engine/backoff_delay_provider.cc",
50 "engine/backoff_delay_provider.h",
53 "engine/commit_contribution.cc",
54 "engine/commit_contribution.h",
55 "engine/commit_contributor.cc",
56 "engine/commit_contributor.h",
57 "engine/commit_processor.cc",
58 "engine/commit_processor.h",
59 "engine/commit_util.cc",
60 "engine/commit_util.h",
61 "engine/conflict_resolver.cc",
62 "engine/conflict_resolver.h",
63 "engine/conflict_util.cc",
64 "engine/conflict_util.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_update_handler.cc",
70 "engine/directory_update_handler.h",
71 "engine/entity_tracker.cc",
72 "engine/entity_tracker.h",
73 "engine/get_commit_ids.cc",
74 "engine/get_commit_ids.h",
75 "engine/get_updates_delegate.cc",
76 "engine/get_updates_delegate.h",
77 "engine/get_updates_processor.cc",
78 "engine/get_updates_processor.h",
79 "engine/model_type_entity.cc",
80 "engine/model_type_entity.h",
81 "engine/model_type_sync_proxy.cc",
82 "engine/model_type_sync_proxy.h",
83 "engine/model_type_sync_proxy_impl.cc",
84 "engine/model_type_sync_proxy_impl.h",
85 "engine/model_type_sync_worker.cc",
86 "engine/model_type_sync_worker.h",
87 "engine/model_type_sync_worker_impl.cc",
88 "engine/model_type_sync_worker_impl.h",
89 "engine/net/server_connection_manager.cc",
90 "engine/net/server_connection_manager.h",
91 "engine/net/url_translator.cc",
92 "engine/net/url_translator.h",
93 "engine/non_blocking_type_commit_contribution.cc",
94 "engine/non_blocking_type_commit_contribution.h",
95 "engine/nudge_handler.cc",
96 "engine/nudge_handler.h",
97 "engine/nudge_source.cc",
98 "engine/nudge_source.h",
99 "engine/process_updates_util.cc",
100 "engine/process_updates_util.h",
101 "engine/sync_cycle_event.cc",
102 "engine/sync_cycle_event.h",
103 "engine/sync_engine_event_listener.cc",
104 "engine/sync_engine_event_listener.h",
105 "engine/sync_scheduler.cc",
106 "engine/sync_scheduler.h",
107 "engine/sync_scheduler_impl.cc",
108 "engine/sync_scheduler_impl.h",
111 "engine/syncer_proto_util.cc",
112 "engine/syncer_proto_util.h",
113 "engine/syncer_types.h",
114 "engine/syncer_util.cc",
115 "engine/syncer_util.h",
116 "engine/traffic_logger.cc",
117 "engine/traffic_logger.h",
118 "engine/update_applicator.cc",
119 "engine/update_applicator.h",
120 "engine/update_handler.cc",
121 "engine/update_handler.h",
122 "internal_api/attachments/attachment_downloader.cc",
123 "internal_api/attachments/attachment_downloader_impl.cc",
124 "internal_api/attachments/attachment_service.cc",
125 "internal_api/attachments/attachment_service_impl.cc",
126 "internal_api/attachments/attachment_service_proxy.cc",
127 "internal_api/attachments/attachment_service_proxy_for_test.cc",
128 "internal_api/attachments/attachment_store_frontend.cc",
129 "internal_api/attachments/attachment_uploader.cc",
130 "internal_api/attachments/attachment_uploader_impl.cc",
131 "internal_api/attachments/attachment_util.cc",
132 "internal_api/attachments/fake_attachment_downloader.cc",
133 "internal_api/attachments/fake_attachment_uploader.cc",
134 "internal_api/attachments/in_memory_attachment_store.cc",
135 "internal_api/attachments/on_disk_attachment_store.cc",
136 "internal_api/attachments/task_queue.cc",
137 "internal_api/base_node.cc",
138 "internal_api/base_transaction.cc",
139 "internal_api/change_record.cc",
140 "internal_api/change_reorder_buffer.cc",
141 "internal_api/change_reorder_buffer.h",
142 "internal_api/debug_info_event_listener.cc",
143 "internal_api/debug_info_event_listener.h",
144 "internal_api/delete_journal.cc",
145 "internal_api/events/commit_request_event.cc",
146 "internal_api/events/commit_response_event.cc",
147 "internal_api/events/configure_get_updates_request_event.cc",
148 "internal_api/events/get_updates_response_event.cc",
149 "internal_api/events/normal_get_updates_request_event.cc",
150 "internal_api/events/poll_get_updates_request_event.cc",
151 "internal_api/events/protocol_event.cc",
152 "internal_api/http_bridge.cc",
153 "internal_api/http_bridge_network_resources.cc",
154 "internal_api/internal_components_factory_impl.cc",
155 "internal_api/js_mutation_event_observer.cc",
156 "internal_api/js_mutation_event_observer.h",
157 "internal_api/js_sync_encryption_handler_observer.cc",
158 "internal_api/js_sync_encryption_handler_observer.h",
159 "internal_api/js_sync_manager_observer.cc",
160 "internal_api/js_sync_manager_observer.h",
161 "internal_api/protocol_event_buffer.cc",
162 "internal_api/protocol_event_buffer.h",
163 "internal_api/public/attachments/attachment_downloader.h",
164 "internal_api/public/attachments/attachment_downloader_impl.h",
165 "internal_api/public/attachments/attachment_service.h",
166 "internal_api/public/attachments/attachment_service_impl.h",
167 "internal_api/public/attachments/attachment_service_proxy.h",
168 "internal_api/public/attachments/attachment_service_proxy_for_test.h",
169 "internal_api/public/attachments/attachment_store_frontend.h",
170 "internal_api/public/attachments/attachment_uploader.h",
171 "internal_api/public/attachments/attachment_uploader_impl.h",
172 "internal_api/public/attachments/attachment_util.h",
173 "internal_api/public/attachments/fake_attachment_downloader.h",
174 "internal_api/public/attachments/fake_attachment_uploader.h",
175 "internal_api/public/attachments/in_memory_attachment_store.h",
176 "internal_api/public/attachments/on_disk_attachment_store.h",
177 "internal_api/public/base/attachment_id_proto.cc",
178 "internal_api/public/base/attachment_id_proto.h",
179 "internal_api/public/base/cancelation_observer.cc",
180 "internal_api/public/base/cancelation_observer.h",
181 "internal_api/public/base/cancelation_signal.cc",
182 "internal_api/public/base/cancelation_signal.h",
183 "internal_api/public/base/enum_set.h",
184 "internal_api/public/base/invalidation_interface.cc",
185 "internal_api/public/base/invalidation_interface.h",
186 "internal_api/public/base/model_type.h",
187 "internal_api/public/base/node_ordinal.cc",
188 "internal_api/public/base/node_ordinal.h",
189 "internal_api/public/base/ordinal.h",
190 "internal_api/public/base/progress_marker_map.cc",
191 "internal_api/public/base/progress_marker_map.h",
192 "internal_api/public/base/unique_position.cc",
193 "internal_api/public/base/unique_position.h",
194 "internal_api/public/base_node.h",
195 "internal_api/public/base_transaction.h",
196 "internal_api/public/change_record.h",
197 "internal_api/public/configure_reason.h",
198 "internal_api/public/data_type_association_stats.cc",
199 "internal_api/public/data_type_association_stats.h",
200 "internal_api/public/data_type_debug_info_listener.cc",
201 "internal_api/public/data_type_debug_info_listener.h",
202 "internal_api/public/delete_journal.h",
203 "internal_api/public/engine/model_safe_worker.cc",
204 "internal_api/public/engine/model_safe_worker.h",
205 "internal_api/public/engine/passive_model_worker.cc",
206 "internal_api/public/engine/passive_model_worker.h",
207 "internal_api/public/engine/polling_constants.cc",
208 "internal_api/public/engine/polling_constants.h",
209 "internal_api/public/engine/sync_status.cc",
210 "internal_api/public/engine/sync_status.h",
211 "internal_api/public/events/commit_request_event.h",
212 "internal_api/public/events/commit_response_event.h",
213 "internal_api/public/events/configure_get_updates_request_event.h",
214 "internal_api/public/events/get_updates_response_event.h",
215 "internal_api/public/events/normal_get_updates_request_event.h",
216 "internal_api/public/events/poll_get_updates_request_event.h",
217 "internal_api/public/events/protocol_event.h",
218 "internal_api/public/http_bridge.h",
219 "internal_api/public/http_bridge_network_resources.h",
220 "internal_api/public/http_post_provider_factory.h",
221 "internal_api/public/http_post_provider_interface.h",
222 "internal_api/public/internal_components_factory.h",
223 "internal_api/public/internal_components_factory_impl.h",
224 "internal_api/public/network_resources.h",
225 "internal_api/public/non_blocking_sync_common.cc",
226 "internal_api/public/non_blocking_sync_common.h",
227 "internal_api/public/read_node.h",
228 "internal_api/public/read_transaction.h",
229 "internal_api/public/sessions/commit_counters.cc",
230 "internal_api/public/sessions/commit_counters.h",
231 "internal_api/public/sessions/model_neutral_state.cc",
232 "internal_api/public/sessions/model_neutral_state.h",
233 "internal_api/public/sessions/status_counters.cc",
234 "internal_api/public/sessions/status_counters.h",
235 "internal_api/public/sessions/sync_session_snapshot.cc",
236 "internal_api/public/sessions/sync_session_snapshot.h",
237 "internal_api/public/sessions/type_debug_info_observer.cc",
238 "internal_api/public/sessions/type_debug_info_observer.h",
239 "internal_api/public/sessions/update_counters.cc",
240 "internal_api/public/sessions/update_counters.h",
241 "internal_api/public/shutdown_reason.h",
242 "internal_api/public/sync_auth_provider.h",
243 "internal_api/public/sync_context.h",
244 "internal_api/public/sync_context_proxy.h",
245 "internal_api/public/sync_encryption_handler.cc",
246 "internal_api/public/sync_encryption_handler.h",
247 "internal_api/public/sync_manager.cc",
248 "internal_api/public/sync_manager.h",
249 "internal_api/public/sync_manager_factory.h",
250 "internal_api/public/user_share.h",
251 "internal_api/public/util/experiments.h",
252 "internal_api/public/util/immutable.h",
253 "internal_api/public/util/report_unrecoverable_error_function.h",
254 "internal_api/public/util/sync_db_util.h",
255 "internal_api/public/util/sync_string_conversions.cc",
256 "internal_api/public/util/sync_string_conversions.h",
257 "internal_api/public/util/syncer_error.cc",
258 "internal_api/public/util/syncer_error.h",
259 "internal_api/public/util/unrecoverable_error_handler.h",
260 "internal_api/public/util/unrecoverable_error_info.cc",
261 "internal_api/public/util/unrecoverable_error_info.h",
262 "internal_api/public/util/weak_handle.cc",
263 "internal_api/public/util/weak_handle.h",
264 "internal_api/public/write_node.h",
265 "internal_api/public/write_transaction.h",
266 "internal_api/read_node.cc",
267 "internal_api/read_transaction.cc",
268 "internal_api/sync_backup_manager.cc",
269 "internal_api/sync_backup_manager.h",
270 "internal_api/sync_context.cc",
271 "internal_api/sync_context_proxy.cc",
272 "internal_api/sync_context_proxy_impl.cc",
273 "internal_api/sync_context_proxy_impl.h",
274 "internal_api/sync_db_util.cc",
275 "internal_api/sync_encryption_handler_impl.cc",
276 "internal_api/sync_encryption_handler_impl.h",
277 "internal_api/sync_manager_factory.cc",
278 "internal_api/sync_manager_impl.cc",
279 "internal_api/sync_manager_impl.h",
280 "internal_api/sync_rollback_manager.cc",
281 "internal_api/sync_rollback_manager.h",
282 "internal_api/sync_rollback_manager_base.cc",
283 "internal_api/sync_rollback_manager_base.h",
284 "internal_api/syncapi_internal.cc",
285 "internal_api/syncapi_internal.h",
286 "internal_api/syncapi_server_connection_manager.cc",
287 "internal_api/syncapi_server_connection_manager.h",
288 "internal_api/user_share.cc",
289 "internal_api/write_node.cc",
290 "internal_api/write_transaction.cc",
292 "js/js_controller.h",
293 "js/js_event_details.cc",
294 "js/js_event_details.h",
295 "js/js_event_handler.h",
296 "js/sync_js_controller.cc",
297 "js/sync_js_controller.h",
298 "protocol/proto_enum_conversions.cc",
299 "protocol/proto_enum_conversions.h",
300 "protocol/proto_value_conversions.cc",
301 "protocol/proto_value_conversions.h",
302 "protocol/sync_protocol_error.cc",
303 "protocol/sync_protocol_error.h",
304 "sessions/data_type_tracker.cc",
305 "sessions/data_type_tracker.h",
306 "sessions/debug_info_getter.h",
307 "sessions/directory_type_debug_info_emitter.cc",
308 "sessions/directory_type_debug_info_emitter.h",
309 "sessions/model_type_registry.cc",
310 "sessions/model_type_registry.h",
311 "sessions/nudge_tracker.cc",
312 "sessions/nudge_tracker.h",
313 "sessions/status_controller.cc",
314 "sessions/status_controller.h",
315 "sessions/sync_session.cc",
316 "sessions/sync_session.h",
317 "sessions/sync_session_context.cc",
318 "sessions/sync_session_context.h",
319 "syncable/deferred_on_disk_directory_backing_store.cc",
320 "syncable/deferred_on_disk_directory_backing_store.h",
321 "syncable/dir_open_result.h",
322 "syncable/directory.cc",
323 "syncable/directory.h",
324 "syncable/directory_backing_store.cc",
325 "syncable/directory_backing_store.h",
326 "syncable/directory_change_delegate.h",
329 "syncable/entry_kernel.cc",
330 "syncable/entry_kernel.h",
331 "syncable/in_memory_directory_backing_store.cc",
332 "syncable/in_memory_directory_backing_store.h",
333 "syncable/invalid_directory_backing_store.cc",
334 "syncable/invalid_directory_backing_store.h",
335 "syncable/metahandle_set.h",
336 "syncable/model_neutral_mutable_entry.cc",
337 "syncable/model_neutral_mutable_entry.h",
338 "syncable/model_type.cc",
339 "syncable/mutable_entry.cc",
340 "syncable/mutable_entry.h",
341 "syncable/nigori_handler.cc",
342 "syncable/nigori_handler.h",
343 "syncable/nigori_util.cc",
344 "syncable/nigori_util.h",
345 "syncable/on_disk_directory_backing_store.cc",
346 "syncable/on_disk_directory_backing_store.h",
347 "syncable/parent_child_index.cc",
348 "syncable/parent_child_index.h",
349 "syncable/scoped_kernel_lock.cc",
350 "syncable/scoped_kernel_lock.h",
351 "syncable/scoped_parent_child_index_updater.cc",
352 "syncable/scoped_parent_child_index_updater.h",
353 "syncable/syncable-inl.h",
354 "syncable/syncable_base_transaction.cc",
355 "syncable/syncable_base_transaction.h",
356 "syncable/syncable_base_write_transaction.cc",
357 "syncable/syncable_base_write_transaction.h",
358 "syncable/syncable_changes_version.h",
359 "syncable/syncable_columns.h",
360 "syncable/syncable_delete_journal.cc",
361 "syncable/syncable_delete_journal.h",
362 "syncable/syncable_enum_conversions.cc",
363 "syncable/syncable_enum_conversions.h",
364 "syncable/syncable_id.cc",
365 "syncable/syncable_id.h",
366 "syncable/syncable_model_neutral_write_transaction.cc",
367 "syncable/syncable_model_neutral_write_transaction.h",
368 "syncable/syncable_proto_util.cc",
369 "syncable/syncable_proto_util.h",
370 "syncable/syncable_read_transaction.cc",
371 "syncable/syncable_read_transaction.h",
372 "syncable/syncable_util.cc",
373 "syncable/syncable_util.h",
374 "syncable/syncable_write_transaction.cc",
375 "syncable/syncable_write_transaction.h",
376 "syncable/transaction_observer.h",
377 "syncable/write_transaction_info.cc",
378 "syncable/write_transaction_info.h",
379 "util/cryptographer.cc",
380 "util/cryptographer.h",
381 "util/data_type_histogram.h",
383 "util/extensions_activity.cc",
384 "util/extensions_activity.h",
385 "util/get_session_name.cc",
386 "util/get_session_name.h",
387 "util/get_session_name_ios.h",
388 "util/get_session_name_ios.mm",
389 "util/get_session_name_linux.cc",
390 "util/get_session_name_linux.h",
391 "util/get_session_name_mac.h",
392 "util/get_session_name_mac.mm",
393 "util/get_session_name_win.cc",
394 "util/get_session_name_win.h",
404 "//sync/internal_api/attachments/proto",
409 "//base/third_party/dynamic_annotations",
414 "//third_party/leveldatabase",
415 "//third_party/zlib",
421 # Required by get_session_name.cc on Chrome OS.
422 deps += [ "//chromeos" ]
427 # Required by get_session_name_mac.mm on Mac.
428 "SystemConfiguration.framework",
432 defines = [ "SYNC_IMPLEMENTATION" ]
433 configs += [ "//build/config/compiler:wexit_time_destructors" ]
436 # GYP version: sync/sync_tests.gypi:test_support_sync_core
437 static_library("test_support_sync_core") {
440 "internal_api/public/base/model_type_test_util.cc",
441 "internal_api/public/base/model_type_test_util.h",
442 "js/js_test_util.cc",
444 "sessions/test_util.cc",
445 "sessions/test_util.h",
446 "test/callback_counter.h",
447 "test/directory_backing_store_corruption_testing.cc",
448 "test/directory_backing_store_corruption_testing.h",
449 "test/engine/fake_model_worker.cc",
450 "test/engine/fake_model_worker.h",
451 "test/engine/fake_sync_scheduler.cc",
452 "test/engine/fake_sync_scheduler.h",
453 "test/engine/injectable_sync_context_proxy.cc",
454 "test/engine/injectable_sync_context_proxy.h",
455 "test/engine/mock_connection_manager.cc",
456 "test/engine/mock_connection_manager.h",
457 "test/engine/mock_model_type_sync_proxy.cc",
458 "test/engine/mock_model_type_sync_proxy.h",
459 "test/engine/mock_model_type_sync_worker.cc",
460 "test/engine/mock_model_type_sync_worker.h",
461 "test/engine/mock_nudge_handler.cc",
462 "test/engine/mock_nudge_handler.h",
463 "test/engine/mock_update_handler.cc",
464 "test/engine/mock_update_handler.h",
465 "test/engine/single_type_mock_server.cc",
466 "test/engine/single_type_mock_server.h",
467 "test/engine/test_directory_setter_upper.cc",
468 "test/engine/test_directory_setter_upper.h",
469 "test/engine/test_id_factory.h",
470 "test/engine/test_syncable_utils.cc",
471 "test/engine/test_syncable_utils.h",
472 "test/fake_encryptor.cc",
473 "test/fake_encryptor.h",
474 "test/fake_sync_encryption_handler.cc",
475 "test/fake_sync_encryption_handler.h",
476 "test/mock_invalidation.cc",
477 "test/mock_invalidation.h",
478 "test/mock_invalidation_tracker.cc",
479 "test/mock_invalidation_tracker.h",
480 "test/null_directory_change_delegate.cc",
481 "test/null_directory_change_delegate.h",
482 "test/null_transaction_observer.cc",
483 "test/null_transaction_observer.h",
484 "test/sessions/mock_debug_info_getter.cc",
485 "test/sessions/mock_debug_info_getter.h",
486 "test/sessions/test_scoped_session_event_listener.h",
487 "test/test_directory_backing_store.cc",
488 "test/test_directory_backing_store.h",
489 "test/test_transaction_observer.cc",
490 "test/test_transaction_observer.h",
491 "test/trackable_mock_invalidation.cc",
492 "test/trackable_mock_invalidation.h",
493 "util/mock_unrecoverable_error_handler.cc",
494 "util/mock_unrecoverable_error_handler.h",
495 "util/test_unrecoverable_error_handler.cc",
496 "util/test_unrecoverable_error_handler.h",
506 defines = [ "SYNC_TEST" ]
507 configs += [ "//build/config/compiler:wexit_time_destructors" ]
510 # GYP version: sync/sync_tests.gypi:test_support_sync_internal_api
511 static_library("test_support_sync_internal_api") {
514 "internal_api/public/test/fake_sync_manager.h",
515 "internal_api/public/test/null_sync_context_proxy.h",
516 "internal_api/public/test/sync_manager_factory_for_profile_sync_test.h",
517 "internal_api/public/test/test_entry_factory.h",
518 "internal_api/public/test/test_internal_components_factory.h",
519 "internal_api/public/test/test_user_share.h",
520 "internal_api/test/fake_sync_manager.cc",
521 "internal_api/test/null_sync_context_proxy.cc",
522 "internal_api/test/sync_manager_factory_for_profile_sync_test.cc",
523 "internal_api/test/sync_manager_for_profile_sync_test.cc",
524 "internal_api/test/sync_manager_for_profile_sync_test.h",
525 "internal_api/test/test_entry_factory.cc",
526 "internal_api/test/test_internal_components_factory.cc",
527 "internal_api/test/test_user_share.cc",
534 ":test_support_sync_core",
537 defines = [ "SYNC_TEST" ]
538 configs += [ "//build/config/compiler:wexit_time_destructors" ]
541 # GYP version: sync/sync_tests.gypi:test_support_sync_api
542 static_library("test_support_sync_api") {
545 "api/fake_sync_change_processor.cc",
546 "api/fake_sync_change_processor.h",
547 "api/fake_syncable_service.cc",
548 "api/fake_syncable_service.h",
549 "api/sync_change_processor_wrapper_for_test.cc",
550 "api/sync_change_processor_wrapper_for_test.h",
551 "api/sync_error_factory_mock.cc",
552 "api/sync_error_factory_mock.h",
555 defines = [ "SYNC_TEST" ]
564 # GYP version: sync/sync_tests.gypi:sync_unit_tests
565 test("sync_unit_tests") {
567 "api/attachments/attachment_id_unittest.cc",
568 "api/attachments/attachment_metadata_unittest.cc",
569 "api/attachments/attachment_unittest.cc",
570 "api/sync_change_unittest.cc",
571 "api/sync_data_unittest.cc",
572 "api/sync_error_unittest.cc",
573 "api/sync_merge_result_unittest.cc",
574 "engine/apply_control_data_updates_unittest.cc",
575 "engine/backoff_delay_provider_unittest.cc",
576 "engine/directory_commit_contribution_unittest.cc",
577 "engine/directory_update_handler_unittest.cc",
578 "engine/entity_tracker_unittest.cc",
579 "engine/get_updates_processor_unittest.cc",
580 "engine/model_type_entity_unittest.cc",
581 "engine/model_type_sync_proxy_impl_unittest.cc",
582 "engine/model_type_sync_worker_impl_unittest.cc",
583 "engine/sync_scheduler_unittest.cc",
584 "engine/syncer_proto_util_unittest.cc",
585 "engine/syncer_unittest.cc",
586 "engine/syncer_util_unittest.cc",
587 "internal_api/attachments/attachment_downloader_impl_unittest.cc",
588 "internal_api/attachments/attachment_service_impl_unittest.cc",
589 "internal_api/attachments/attachment_service_proxy_unittest.cc",
590 "internal_api/attachments/attachment_store_frontend_unittest.cc",
591 "internal_api/attachments/attachment_store_test_template.h",
592 "internal_api/attachments/attachment_uploader_impl_unittest.cc",
593 "internal_api/attachments/fake_attachment_downloader_unittest.cc",
594 "internal_api/attachments/fake_attachment_uploader_unittest.cc",
595 "internal_api/attachments/in_memory_attachment_store_unittest.cc",
596 "internal_api/attachments/on_disk_attachment_store_unittest.cc",
597 "internal_api/debug_info_event_listener_unittest.cc",
598 "internal_api/http_bridge_unittest.cc",
599 "internal_api/js_mutation_event_observer_unittest.cc",
600 "internal_api/js_sync_encryption_handler_observer_unittest.cc",
601 "internal_api/js_sync_manager_observer_unittest.cc",
602 "internal_api/protocol_event_buffer_unittest.cc",
603 "internal_api/public/base/attachment_id_proto_unittest.cc",
604 "internal_api/public/base/cancelation_signal_unittest.cc",
605 "internal_api/public/base/enum_set_unittest.cc",
606 "internal_api/public/base/node_ordinal_unittest.cc",
607 "internal_api/public/base/ordinal_unittest.cc",
608 "internal_api/public/base/unique_position_unittest.cc",
609 "internal_api/public/change_record_unittest.cc",
610 "internal_api/public/engine/model_safe_worker_unittest.cc",
611 "internal_api/public/sessions/sync_session_snapshot_unittest.cc",
612 "internal_api/public/util/immutable_unittest.cc",
613 "internal_api/public/util/weak_handle_unittest.cc",
614 "internal_api/sync_backup_manager_unittest.cc",
615 "internal_api/sync_context_proxy_impl_unittest.cc",
616 "internal_api/sync_encryption_handler_impl_unittest.cc",
617 "internal_api/sync_manager_impl_unittest.cc",
618 "internal_api/sync_rollback_manager_base_unittest.cc",
619 "internal_api/sync_rollback_manager_unittest.cc",
620 "internal_api/syncapi_server_connection_manager_unittest.cc",
621 "js/js_event_details_unittest.cc",
622 "js/sync_js_controller_unittest.cc",
623 "protocol/proto_enum_conversions_unittest.cc",
624 "protocol/proto_value_conversions_unittest.cc",
625 "sessions/model_type_registry_unittest.cc",
626 "sessions/nudge_tracker_unittest.cc",
627 "sessions/status_controller_unittest.cc",
628 "syncable/deferred_on_disk_directory_backing_store_unittest.cc",
629 "syncable/directory_backing_store_unittest.cc",
630 "syncable/directory_unittest.cc",
631 "syncable/directory_unittest.h",
632 "syncable/entry_kernel_unittest.cc",
633 "syncable/model_type_unittest.cc",
634 "syncable/nigori_util_unittest.cc",
635 "syncable/parent_child_index_unittest.cc",
636 "syncable/syncable_enum_conversions_unittest.cc",
637 "syncable/syncable_id_unittest.cc",
638 "syncable/syncable_unittest.cc",
639 "syncable/syncable_util_unittest.cc",
640 "util/cryptographer_unittest.cc",
641 "util/data_type_histogram_unittest.cc",
642 "util/get_session_name_unittest.cc",
643 "util/nigori_unittest.cc",
644 "util/protobuf_unittest.cc",
648 ":test_support_sync_core",
649 ":test_support_sync_internal_api",
652 "//base/test:run_all_unittests",
654 "//google_apis:test_support",
656 "//net:test_support",
658 "//sql:test_support",
663 "//third_party/leveldatabase",
664 "//third_party/protobuf:protobuf_lite",
668 isolate_file = "sync_unit_tests.isolate"
672 # Required by get_session_name_unittest.cc on Chrome OS.
673 deps += [ "//chromeos" ]
677 sources -= [ "internal_api/http_bridge_unittest.cc" ]
680 defines = [ "SYNC_TEST" ]
683 # GYP version: sync/sync_tests.gypi:test_support_sync_fake_server
684 static_library("test_support_sync_fake_server") {
687 "test/fake_server/bookmark_entity.cc",
688 "test/fake_server/bookmark_entity.h",
689 "test/fake_server/bookmark_entity_builder.cc",
690 "test/fake_server/bookmark_entity_builder.h",
691 "test/fake_server/entity_builder.cc",
692 "test/fake_server/entity_builder.h",
693 "test/fake_server/entity_builder_factory.cc",
694 "test/fake_server/entity_builder_factory.h",
695 "test/fake_server/fake_server.cc",
696 "test/fake_server/fake_server.h",
697 "test/fake_server/fake_server_entity.cc",
698 "test/fake_server/fake_server_entity.h",
699 "test/fake_server/fake_server_http_post_provider.cc",
700 "test/fake_server/fake_server_http_post_provider.h",
701 "test/fake_server/fake_server_network_resources.cc",
702 "test/fake_server/fake_server_network_resources.h",
703 "test/fake_server/fake_server_verifier.cc",
704 "test/fake_server/fake_server_verifier.h",
705 "test/fake_server/permanent_entity.cc",
706 "test/fake_server/permanent_entity.h",
707 "test/fake_server/sessions_hierarchy.cc",
708 "test/fake_server/sessions_hierarchy.h",
709 "test/fake_server/tombstone_entity.cc",
710 "test/fake_server/tombstone_entity.h",
711 "test/fake_server/unique_client_entity.cc",
712 "test/fake_server/unique_client_entity.h",
719 "//third_party/protobuf:protobuf_lite",
724 forward_dependent_configs_from = [ "//third_party/protobuf:protobuf_lite" ]
726 configs += [ "//build/config/compiler:wexit_time_destructors" ]
729 # GYP version: sync/sync_tests.gypi:test_support_sync_testserver
730 static_library("test_support_sync_testserver") {
733 "test/local_sync_test_server.cc",
734 "test/local_sync_test_server.h",
737 configs += [ "//build/config/compiler:wexit_time_destructors" ]
741 "//net:test_support",
745 # The sync test server uses Python modules generated by the sync protos.
746 # '../third_party/protobuf/protobuf.gyp:py_proto', # TODO(GYP)
751 # GYP version: sync/sync_tests.gypi:run_sync_testserver
752 executable("run_sync_testserver") {
755 "tools/testserver/run_sync_testserver.cc",
760 "//base/test:test_support",
761 "//net:test_support",
763 ":test_support_sync_testserver",
769 import("//build/config/android/rules.gni")
771 # GYP: //sync/sync_tests.gypi:fake_server_jni
772 generate_jni("fake_server_jni") {
774 jni_package = "sync/test/fake_server"
776 "//chrome/android/sync_shell/javatests/src/org/chromium/chrome/browser/sync/FakeServerHelper.java",
780 # GYP: //sync/sync_tests.gypi:sync_java_test_support
781 android_library("sync_java_test_support") {
786 "//base:base_java_test_support",
787 "//third_party/jsr-305:jsr_305_javalib",
789 DEPRECATED_java_in_dir = "test/android/javatests/src"
792 # GYP: //sync/sync_tests.gypi:test_support_sync_fake_server_android
793 static_library("test_support_sync_fake_server_android") {
796 "test/fake_server/android/fake_server_helper_android.cc",
797 "test/fake_server/android/fake_server_helper_android.h",
802 ":test_support_sync_fake_server",
804 "//sync/protocol:protocol",