| 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 import("//build/buildflag_header.gni") |
| 5 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
| 6 import("//components/sync/protocol/protocol_sources.gni") | 7 import("//components/sync/protocol/protocol_sources.gni") |
| 7 import("//testing/test.gni") | 8 import("//testing/test.gni") |
| 8 | 9 |
| 9 static_library("sync") { | 10 static_library("sync") { |
| 10 sources = [ | 11 sources = [ |
| 11 "api/attachments/attachment.cc", | 12 "api/attachments/attachment.cc", |
| 12 "api/attachments/attachment.h", | 13 "api/attachments/attachment.h", |
| 13 "api/attachments/attachment_id.cc", | 14 "api/attachments/attachment_id.cc", |
| 14 "api/attachments/attachment_id.h", | 15 "api/attachments/attachment_id.h", |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 "core_impl/protocol_event_buffer.cc", | 212 "core_impl/protocol_event_buffer.cc", |
| 212 "core_impl/protocol_event_buffer.h", | 213 "core_impl/protocol_event_buffer.h", |
| 213 "core_impl/sync_encryption_handler_impl.cc", | 214 "core_impl/sync_encryption_handler_impl.cc", |
| 214 "core_impl/sync_encryption_handler_impl.h", | 215 "core_impl/sync_encryption_handler_impl.h", |
| 215 "core_impl/sync_manager_impl.cc", | 216 "core_impl/sync_manager_impl.cc", |
| 216 "core_impl/sync_manager_impl.h", | 217 "core_impl/sync_manager_impl.h", |
| 217 "core_impl/syncapi_internal.cc", | 218 "core_impl/syncapi_internal.cc", |
| 218 "core_impl/syncapi_internal.h", | 219 "core_impl/syncapi_internal.h", |
| 219 "core_impl/syncapi_server_connection_manager.cc", | 220 "core_impl/syncapi_server_connection_manager.cc", |
| 220 "core_impl/syncapi_server_connection_manager.h", | 221 "core_impl/syncapi_server_connection_manager.h", |
| 222 "driver/about_sync_util.cc", |
| 223 "driver/about_sync_util.h", |
| 224 "driver/backend_data_type_configurer.cc", |
| 225 "driver/backend_data_type_configurer.h", |
| 226 "driver/backend_migrator.cc", |
| 227 "driver/backend_migrator.h", |
| 228 "driver/change_processor.cc", |
| 229 "driver/change_processor.h", |
| 230 "driver/data_type_controller.cc", |
| 231 "driver/data_type_controller.h", |
| 232 "driver/data_type_encryption_handler.cc", |
| 233 "driver/data_type_encryption_handler.h", |
| 234 "driver/data_type_manager.cc", |
| 235 "driver/data_type_manager.h", |
| 236 "driver/data_type_manager_impl.cc", |
| 237 "driver/data_type_manager_impl.h", |
| 238 "driver/data_type_manager_observer.h", |
| 239 "driver/data_type_status_table.cc", |
| 240 "driver/data_type_status_table.h", |
| 241 "driver/device_count_metrics_provider.cc", |
| 242 "driver/device_count_metrics_provider.h", |
| 243 "driver/device_info.cc", |
| 244 "driver/device_info.h", |
| 245 "driver/device_info_data_type_controller.cc", |
| 246 "driver/device_info_data_type_controller.h", |
| 247 "driver/device_info_service.cc", |
| 248 "driver/device_info_service.h", |
| 249 "driver/device_info_sync_service.cc", |
| 250 "driver/device_info_sync_service.h", |
| 251 "driver/device_info_tracker.h", |
| 252 "driver/device_info_util.cc", |
| 253 "driver/device_info_util.h", |
| 254 "driver/directory_data_type_controller.cc", |
| 255 "driver/directory_data_type_controller.h", |
| 256 "driver/frontend_data_type_controller.cc", |
| 257 "driver/frontend_data_type_controller.h", |
| 258 "driver/generic_change_processor.cc", |
| 259 "driver/generic_change_processor.h", |
| 260 "driver/generic_change_processor_factory.cc", |
| 261 "driver/generic_change_processor_factory.h", |
| 262 "driver/glue/browser_thread_model_worker.cc", |
| 263 "driver/glue/browser_thread_model_worker.h", |
| 264 "driver/glue/chrome_report_unrecoverable_error.cc", |
| 265 "driver/glue/chrome_report_unrecoverable_error.h", |
| 266 "driver/glue/sync_backend_host.cc", |
| 267 "driver/glue/sync_backend_host.h", |
| 268 "driver/glue/sync_backend_host_core.cc", |
| 269 "driver/glue/sync_backend_host_core.h", |
| 270 "driver/glue/sync_backend_host_impl.cc", |
| 271 "driver/glue/sync_backend_host_impl.h", |
| 272 "driver/glue/sync_backend_registrar.cc", |
| 273 "driver/glue/sync_backend_registrar.h", |
| 274 "driver/glue/ui_model_worker.cc", |
| 275 "driver/glue/ui_model_worker.h", |
| 276 "driver/invalidation_adapter.cc", |
| 277 "driver/invalidation_adapter.h", |
| 278 "driver/invalidation_helper.cc", |
| 279 "driver/invalidation_helper.h", |
| 280 "driver/local_device_info_provider.h", |
| 281 "driver/local_device_info_provider_impl.cc", |
| 282 "driver/local_device_info_provider_impl.h", |
| 283 "driver/model_association_manager.cc", |
| 284 "driver/model_association_manager.h", |
| 285 "driver/model_associator.h", |
| 286 "driver/non_blocking_data_type_controller.cc", |
| 287 "driver/non_blocking_data_type_controller.h", |
| 288 "driver/non_ui_data_type_controller.cc", |
| 289 "driver/non_ui_data_type_controller.h", |
| 290 "driver/non_ui_model_type_controller.cc", |
| 291 "driver/non_ui_model_type_controller.h", |
| 292 "driver/pref_names.cc", |
| 293 "driver/pref_names.h", |
| 294 "driver/protocol_event_observer.cc", |
| 295 "driver/protocol_event_observer.h", |
| 296 "driver/proxy_data_type_controller.cc", |
| 297 "driver/proxy_data_type_controller.h", |
| 298 "driver/shared_change_processor.cc", |
| 299 "driver/shared_change_processor.h", |
| 300 "driver/shared_change_processor_ref.cc", |
| 301 "driver/shared_change_processor_ref.h", |
| 302 "driver/signin_manager_wrapper.cc", |
| 303 "driver/signin_manager_wrapper.h", |
| 304 "driver/startup_controller.cc", |
| 305 "driver/startup_controller.h", |
| 306 "driver/sync_api_component_factory.h", |
| 307 "driver/sync_client.cc", |
| 308 "driver/sync_client.h", |
| 309 "driver/sync_driver_switches.cc", |
| 310 "driver/sync_driver_switches.h", |
| 311 "driver/sync_error_controller.cc", |
| 312 "driver/sync_error_controller.h", |
| 313 "driver/sync_frontend.cc", |
| 314 "driver/sync_frontend.h", |
| 315 "driver/sync_prefs.cc", |
| 316 "driver/sync_prefs.h", |
| 317 "driver/sync_service.cc", |
| 318 "driver/sync_service.h", |
| 319 "driver/sync_service_observer.cc", |
| 320 "driver/sync_service_observer.h", |
| 321 "driver/sync_service_utils.cc", |
| 322 "driver/sync_service_utils.h", |
| 323 "driver/sync_stopped_reporter.cc", |
| 324 "driver/sync_stopped_reporter.h", |
| 325 "driver/sync_type_preference_provider.h", |
| 326 "driver/sync_util.cc", |
| 327 "driver/sync_util.h", |
| 328 "driver/system_encryptor.cc", |
| 329 "driver/system_encryptor.h", |
| 330 "driver/ui_data_type_controller.cc", |
| 331 "driver/ui_data_type_controller.h", |
| 332 "driver/ui_model_type_controller.cc", |
| 333 "driver/ui_model_type_controller.h", |
| 334 "driver/user_selectable_sync_type.h", |
| 221 "engine/events/clear_server_data_request_event.cc", | 335 "engine/events/clear_server_data_request_event.cc", |
| 222 "engine/events/clear_server_data_request_event.h", | 336 "engine/events/clear_server_data_request_event.h", |
| 223 "engine/events/clear_server_data_response_event.cc", | 337 "engine/events/clear_server_data_response_event.cc", |
| 224 "engine/events/clear_server_data_response_event.h", | 338 "engine/events/clear_server_data_response_event.h", |
| 225 "engine/events/commit_request_event.cc", | 339 "engine/events/commit_request_event.cc", |
| 226 "engine/events/commit_request_event.h", | 340 "engine/events/commit_request_event.h", |
| 227 "engine/events/commit_response_event.cc", | 341 "engine/events/commit_response_event.cc", |
| 228 "engine/events/commit_response_event.h", | 342 "engine/events/commit_response_event.h", |
| 229 "engine/events/configure_get_updates_request_event.cc", | 343 "engine/events/configure_get_updates_request_event.cc", |
| 230 "engine/events/configure_get_updates_request_event.h", | 344 "engine/events/configure_get_updates_request_event.h", |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 "syncable/transaction_observer.h", | 529 "syncable/transaction_observer.h", |
| 416 "syncable/write_transaction_info.cc", | 530 "syncable/write_transaction_info.cc", |
| 417 "syncable/write_transaction_info.h", | 531 "syncable/write_transaction_info.h", |
| 418 ] | 532 ] |
| 419 | 533 |
| 420 configs += [ "//build/config:precompiled_headers" ] | 534 configs += [ "//build/config:precompiled_headers" ] |
| 421 | 535 |
| 422 public_deps = [ | 536 public_deps = [ |
| 423 "//components/sync/core_impl/attachments/proto", | 537 "//components/sync/core_impl/attachments/proto", |
| 424 "//components/sync/protocol", | 538 "//components/sync/protocol", |
| 425 "//net", | |
| 426 ] | 539 ] |
| 427 deps = [ | 540 deps = [ |
| 428 "//base", | 541 "//base", |
| 429 "//base:i18n", | 542 "//base:i18n", |
| 430 "//base/third_party/dynamic_annotations", | 543 "//base/third_party/dynamic_annotations", |
| 544 "//components/data_use_measurement/core", |
| 545 "//components/invalidation/public", |
| 546 "//components/metrics", |
| 547 "//components/os_crypt", |
| 548 "//components/pref_registry", |
| 549 "//components/prefs", |
| 550 "//components/signin/core/browser", |
| 551 "//components/version_info", |
| 431 "//crypto", | 552 "//crypto", |
| 432 "//google_apis", | 553 "//google_apis", |
| 554 "//net", |
| 433 "//sql", | 555 "//sql", |
| 556 "//third_party/cacheinvalidation", |
| 434 "//third_party/leveldatabase", | 557 "//third_party/leveldatabase", |
| 435 "//third_party/zlib", | 558 "//third_party/zlib", |
| 436 "//url", | 559 "//url", |
| 437 ] | 560 ] |
| 438 | 561 |
| 439 if (is_android) { | 562 if (is_android) { |
| 440 deps += [ "//components/sync/android:jni_headers" ] | 563 deps += [ "//components/sync/android:jni_headers" ] |
| 441 sources += [ | 564 sources += [ |
| 442 "android/model_type_helper.cc", | 565 "android/model_type_helper.cc", |
| 443 "android/model_type_helper.h", | 566 "android/model_type_helper.h", |
| 444 "android/sync_jni_registrar.cc", | 567 "android/sync_jni_registrar.cc", |
| 445 "android/sync_jni_registrar.h", | 568 "android/sync_jni_registrar.h", |
| 446 ] | 569 ] |
| 447 } | 570 } |
| 448 | 571 |
| 449 if (is_chromeos) { | 572 if (is_chromeos) { |
| 450 # Required by get_session_name.cc on Chrome OS. | 573 # Required by get_session_name.cc on Chrome OS. |
| 451 deps += [ "//chromeos" ] | 574 deps += [ "//chromeos" ] |
| 452 } | 575 } |
| 453 | 576 |
| 454 if (is_mac) { | 577 if (is_mac) { |
| 455 libs = [ | 578 libs = [ |
| 456 "CoreFoundation.framework", | 579 "CoreFoundation.framework", |
| 457 "SystemConfiguration.framework", # Required by get_session_name_mac.mm. | 580 "SystemConfiguration.framework", # Required by get_session_name_mac.mm. |
| 458 ] | 581 ] |
| 459 } | 582 } |
| 460 | 583 |
| 584 if (enable_configuration_policy) { |
| 585 sources += [ |
| 586 "driver/sync_policy_handler.cc", |
| 587 "driver/sync_policy_handler.h", |
| 588 ] |
| 589 deps += [ |
| 590 "//components/policy", |
| 591 "//components/policy:policy_component", |
| 592 ] |
| 593 } |
| 594 |
| 461 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 595 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 462 } | 596 } |
| 463 | 597 |
| 464 # GYP version: sync/sync_tests.gypi:test_support_sync_core | 598 # GYP version: sync/sync_tests.gypi:test_support_sync_core |
| 465 static_library("test_support_sync_core") { | 599 static_library("test_support_sync_core") { |
| 466 testonly = true | 600 testonly = true |
| 467 sources = [ | 601 sources = [ |
| 468 "base/mock_unrecoverable_error_handler.cc", | 602 "base/mock_unrecoverable_error_handler.cc", |
| 469 "base/mock_unrecoverable_error_handler.h", | 603 "base/mock_unrecoverable_error_handler.h", |
| 470 "base/model_type_test_util.cc", | 604 "base/model_type_test_util.cc", |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 606 "base/immutable_unittest.cc", | 740 "base/immutable_unittest.cc", |
| 607 ] | 741 ] |
| 608 deps = [ | 742 deps = [ |
| 609 ":sync", | 743 ":sync", |
| 610 "//base", | 744 "//base", |
| 611 "//base/test:run_all_unittests", | 745 "//base/test:run_all_unittests", |
| 612 "//testing/gtest", | 746 "//testing/gtest", |
| 613 ] | 747 ] |
| 614 } | 748 } |
| 615 | 749 |
| 750 static_library("test_support_sync_driver") { |
| 751 testonly = true |
| 752 sources = [ |
| 753 "driver/change_processor_mock.cc", |
| 754 "driver/change_processor_mock.h", |
| 755 "driver/data_type_controller_mock.cc", |
| 756 "driver/data_type_controller_mock.h", |
| 757 "driver/data_type_manager_mock.cc", |
| 758 "driver/data_type_manager_mock.h", |
| 759 "driver/fake_data_type_controller.cc", |
| 760 "driver/fake_data_type_controller.h", |
| 761 "driver/fake_generic_change_processor.cc", |
| 762 "driver/fake_generic_change_processor.h", |
| 763 "driver/fake_sync_client.cc", |
| 764 "driver/fake_sync_client.h", |
| 765 "driver/fake_sync_service.cc", |
| 766 "driver/fake_sync_service.h", |
| 767 "driver/frontend_data_type_controller_mock.cc", |
| 768 "driver/frontend_data_type_controller_mock.h", |
| 769 "driver/glue/sync_backend_host_mock.cc", |
| 770 "driver/glue/sync_backend_host_mock.h", |
| 771 "driver/local_device_info_provider_mock.cc", |
| 772 "driver/local_device_info_provider_mock.h", |
| 773 "driver/model_associator_mock.cc", |
| 774 "driver/model_associator_mock.h", |
| 775 "driver/non_ui_data_type_controller_mock.cc", |
| 776 "driver/non_ui_data_type_controller_mock.h", |
| 777 "driver/sync_api_component_factory_mock.cc", |
| 778 "driver/sync_api_component_factory_mock.h", |
| 779 ] |
| 780 |
| 781 public_deps = [ |
| 782 "//components/sync", |
| 783 ] |
| 784 |
| 785 deps = [ |
| 786 ":test_support_sync_core_impl", |
| 787 "//base", |
| 788 "//components/syncable_prefs:test_support", |
| 789 "//components/version_info", |
| 790 "//google_apis", |
| 791 "//testing/gmock", |
| 792 "//testing/gtest", |
| 793 ] |
| 794 } |
| 795 |
| 616 source_set("unit_tests") { | 796 source_set("unit_tests") { |
| 617 testonly = true | 797 testonly = true |
| 618 sources = [ | 798 sources = [ |
| 619 "api/attachments/attachment_id_unittest.cc", | 799 "api/attachments/attachment_id_unittest.cc", |
| 620 "api/attachments/attachment_metadata_unittest.cc", | 800 "api/attachments/attachment_metadata_unittest.cc", |
| 621 "api/attachments/attachment_unittest.cc", | 801 "api/attachments/attachment_unittest.cc", |
| 622 "api/entity_data_unittest.cc", | 802 "api/entity_data_unittest.cc", |
| 623 "api/model_type_service_unittest.cc", | 803 "api/model_type_service_unittest.cc", |
| 624 "api/sync_change_unittest.cc", | 804 "api/sync_change_unittest.cc", |
| 625 "api/sync_data_unittest.cc", | 805 "api/sync_data_unittest.cc", |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 660 "core_impl/attachments/task_queue_unittest.cc", | 840 "core_impl/attachments/task_queue_unittest.cc", |
| 661 "core_impl/debug_info_event_listener_unittest.cc", | 841 "core_impl/debug_info_event_listener_unittest.cc", |
| 662 "core_impl/js_mutation_event_observer_unittest.cc", | 842 "core_impl/js_mutation_event_observer_unittest.cc", |
| 663 "core_impl/js_sync_encryption_handler_observer_unittest.cc", | 843 "core_impl/js_sync_encryption_handler_observer_unittest.cc", |
| 664 "core_impl/js_sync_manager_observer_unittest.cc", | 844 "core_impl/js_sync_manager_observer_unittest.cc", |
| 665 "core_impl/model_type_connector_proxy_unittest.cc", | 845 "core_impl/model_type_connector_proxy_unittest.cc", |
| 666 "core_impl/protocol_event_buffer_unittest.cc", | 846 "core_impl/protocol_event_buffer_unittest.cc", |
| 667 "core_impl/sync_encryption_handler_impl_unittest.cc", | 847 "core_impl/sync_encryption_handler_impl_unittest.cc", |
| 668 "core_impl/sync_manager_impl_unittest.cc", | 848 "core_impl/sync_manager_impl_unittest.cc", |
| 669 "core_impl/syncapi_server_connection_manager_unittest.cc", | 849 "core_impl/syncapi_server_connection_manager_unittest.cc", |
| 850 "driver/about_sync_util_unittest.cc", |
| 851 "driver/backend_migrator_unittest.cc", |
| 852 "driver/data_type_manager_impl_unittest.cc", |
| 853 "driver/device_count_metrics_provider_unittest.cc", |
| 854 "driver/device_info_data_type_controller_unittest.cc", |
| 855 "driver/device_info_service_unittest.cc", |
| 856 "driver/device_info_sync_service_unittest.cc", |
| 857 "driver/device_info_util_unittest.cc", |
| 858 "driver/frontend_data_type_controller_unittest.cc", |
| 859 "driver/generic_change_processor_unittest.cc", |
| 860 "driver/glue/browser_thread_model_worker_unittest.cc", |
| 861 "driver/glue/sync_backend_host_impl_unittest.cc", |
| 862 "driver/glue/sync_backend_registrar_unittest.cc", |
| 863 "driver/glue/ui_model_worker_unittest.cc", |
| 864 "driver/local_device_info_provider_unittest.cc", |
| 865 "driver/model_association_manager_unittest.cc", |
| 866 "driver/non_blocking_data_type_controller_unittest.cc", |
| 867 "driver/non_ui_data_type_controller_unittest.cc", |
| 868 "driver/non_ui_model_type_controller_unittest.cc", |
| 869 "driver/shared_change_processor_unittest.cc", |
| 870 "driver/startup_controller_unittest.cc", |
| 871 "driver/sync_prefs_unittest.cc", |
| 872 "driver/sync_stopped_reporter_unittest.cc", |
| 873 "driver/sync_util_unittest.cc", |
| 874 "driver/system_encryptor_unittest.cc", |
| 875 "driver/ui_data_type_controller_unittest.cc", |
| 876 "driver/ui_model_type_controller_unittest.cc", |
| 670 "engine/model_safe_worker_unittest.cc", | 877 "engine/model_safe_worker_unittest.cc", |
| 671 "engine_impl/apply_control_data_updates_unittest.cc", | 878 "engine_impl/apply_control_data_updates_unittest.cc", |
| 672 "engine_impl/backoff_delay_provider_unittest.cc", | 879 "engine_impl/backoff_delay_provider_unittest.cc", |
| 673 "engine_impl/directory_commit_contribution_unittest.cc", | 880 "engine_impl/directory_commit_contribution_unittest.cc", |
| 674 "engine_impl/directory_update_handler_unittest.cc", | 881 "engine_impl/directory_update_handler_unittest.cc", |
| 675 "engine_impl/get_updates_processor_unittest.cc", | 882 "engine_impl/get_updates_processor_unittest.cc", |
| 676 "engine_impl/model_type_worker_unittest.cc", | 883 "engine_impl/model_type_worker_unittest.cc", |
| 677 "engine_impl/sync_scheduler_unittest.cc", | 884 "engine_impl/sync_scheduler_unittest.cc", |
| 678 "engine_impl/syncer_proto_util_unittest.cc", | 885 "engine_impl/syncer_proto_util_unittest.cc", |
| 679 "engine_impl/syncer_unittest.cc", | 886 "engine_impl/syncer_unittest.cc", |
| (...skipping 28 matching lines...) Expand all Loading... |
| 708 "//third_party/pyftpdlib/", | 915 "//third_party/pyftpdlib/", |
| 709 "//third_party/pywebsocket/", | 916 "//third_party/pywebsocket/", |
| 710 "//third_party/tlslite/", | 917 "//third_party/tlslite/", |
| 711 "$root_out_dir/pyproto/google/", | 918 "$root_out_dir/pyproto/google/", |
| 712 ] | 919 ] |
| 713 | 920 |
| 714 deps = [ | 921 deps = [ |
| 715 ":test_support_sync_api", | 922 ":test_support_sync_api", |
| 716 ":test_support_sync_core", | 923 ":test_support_sync_core", |
| 717 ":test_support_sync_core_impl", | 924 ":test_support_sync_core_impl", |
| 925 ":test_support_sync_driver", |
| 718 "//base", | 926 "//base", |
| 927 "//base/test:test_support", |
| 928 "//components/invalidation/impl", |
| 929 "//components/os_crypt:test_support", |
| 930 "//components/pref_registry:test_support", |
| 931 "//components/prefs:test_support", |
| 932 "//components/signin/core/browser:test_support", |
| 719 "//components/sync", | 933 "//components/sync", |
| 934 "//components/syncable_prefs", |
| 935 "//components/syncable_prefs:test_support", |
| 936 "//components/version_info", |
| 720 "//google_apis", | 937 "//google_apis", |
| 721 "//google_apis:test_support", | 938 "//google_apis:test_support", |
| 722 "//net", | 939 "//net", |
| 723 "//net:test_support", | 940 "//net:test_support", |
| 724 "//sql", | 941 "//sql", |
| 725 "//sql:test_support", | 942 "//sql:test_support", |
| 726 "//testing/gmock", | 943 "//testing/gmock", |
| 727 "//testing/gtest", | 944 "//testing/gtest", |
| 728 "//third_party/leveldatabase", | 945 "//third_party/leveldatabase", |
| 729 "//third_party/protobuf:protobuf_lite", | 946 "//third_party/protobuf:protobuf_lite", |
| 947 "//url", |
| 730 ] | 948 ] |
| 731 | 949 |
| 732 if (is_chromeos) { | 950 if (is_chromeos) { |
| 733 # Required by get_session_name_unittest.cc on Chrome OS. | 951 # Required by get_session_name_unittest.cc on Chrome OS. |
| 734 deps += [ "//chromeos" ] | 952 deps += [ "//chromeos" ] |
| 735 } | 953 } |
| 736 | 954 |
| 737 if (is_ios) { | 955 if (is_ios) { |
| 738 sources -= [ "core/http_bridge_unittest.cc" ] | 956 sources -= [ "core/http_bridge_unittest.cc" ] |
| 739 } | 957 } |
| 740 | 958 |
| 959 if (enable_configuration_policy) { |
| 960 sources += [ "driver/sync_policy_handler_unittest.cc" ] |
| 961 deps += [ |
| 962 "//components/policy", |
| 963 "//components/policy:policy_component", |
| 964 ] |
| 965 } |
| 966 |
| 741 defines = [ "SYNC_TEST" ] | 967 defines = [ "SYNC_TEST" ] |
| 742 } | 968 } |
| 743 | 969 |
| 744 # GYP version: sync/sync_tests.gypi:test_support_sync_fake_server | 970 # GYP version: sync/sync_tests.gypi:test_support_sync_fake_server |
| 745 static_library("test_support_sync_fake_server") { | 971 static_library("test_support_sync_fake_server") { |
| 746 testonly = true | 972 testonly = true |
| 747 sources = [ | 973 sources = [ |
| 748 "test/fake_server/bookmark_entity.cc", | 974 "test/fake_server/bookmark_entity.cc", |
| 749 "test/fake_server/bookmark_entity.h", | 975 "test/fake_server/bookmark_entity.h", |
| 750 "test/fake_server/bookmark_entity_builder.cc", | 976 "test/fake_server/bookmark_entity_builder.cc", |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 891 deps = [ | 1117 deps = [ |
| 892 ":fake_server_jni", | 1118 ":fake_server_jni", |
| 893 ":sync", | 1119 ":sync", |
| 894 ":test_support_sync_fake_server", | 1120 ":test_support_sync_fake_server", |
| 895 "//base", | 1121 "//base", |
| 896 "//testing/gtest", | 1122 "//testing/gtest", |
| 897 "//url:url", | 1123 "//url:url", |
| 898 ] | 1124 ] |
| 899 } | 1125 } |
| 900 } | 1126 } |
| OLD | NEW |