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