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/config/features.gni") | 5 import("//build/config/features.gni") |
6 | 6 |
7 component("sync") { | 7 component("sync") { |
8 deps = [ | 8 deps = [ |
9 ":sync_core", | 9 ":sync_core", |
10 "//sync/protocol", | 10 "//sync/protocol", |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 "//chromeos" | 409 "//chromeos" |
410 ] | 410 ] |
411 } | 411 } |
412 | 412 |
413 defines = [ "SYNC_IMPLEMENTATION" ] | 413 defines = [ "SYNC_IMPLEMENTATION" ] |
414 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 414 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
415 } | 415 } |
416 | 416 |
417 # GYP version: sync/sync_tests.gypi:test_support_sync_core | 417 # GYP version: sync/sync_tests.gypi:test_support_sync_core |
418 static_library("test_support_sync_core") { | 418 static_library("test_support_sync_core") { |
| 419 testonly = true |
419 sources = [ | 420 sources = [ |
420 "internal_api/public/base/model_type_test_util.cc", | 421 "internal_api/public/base/model_type_test_util.cc", |
421 "internal_api/public/base/model_type_test_util.h", | 422 "internal_api/public/base/model_type_test_util.h", |
422 "js/js_test_util.cc", | 423 "js/js_test_util.cc", |
423 "js/js_test_util.h", | 424 "js/js_test_util.h", |
424 "sessions/test_util.cc", | 425 "sessions/test_util.cc", |
425 "sessions/test_util.h", | 426 "sessions/test_util.h", |
426 "test/callback_counter.h", | 427 "test/callback_counter.h", |
427 "test/engine/fake_model_worker.cc", | 428 "test/engine/fake_model_worker.cc", |
428 "test/engine/fake_model_worker.h", | 429 "test/engine/fake_model_worker.h", |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 | 485 |
485 forward_dependent_configs_from = [ | 486 forward_dependent_configs_from = [ |
486 "//testing/gmock", | 487 "//testing/gmock", |
487 "//testing/gtest", | 488 "//testing/gtest", |
488 "//sync" | 489 "//sync" |
489 ] | 490 ] |
490 } | 491 } |
491 | 492 |
492 # GYP version: sync/sync_tests.gypi:test_support_sync_internal_api | 493 # GYP version: sync/sync_tests.gypi:test_support_sync_internal_api |
493 static_library("test_support_sync_internal_api") { | 494 static_library("test_support_sync_internal_api") { |
| 495 testonly = true |
494 sources = [ | 496 sources = [ |
495 "internal_api/public/test/fake_sync_manager.h", | 497 "internal_api/public/test/fake_sync_manager.h", |
496 "internal_api/public/test/null_sync_context_proxy.h", | 498 "internal_api/public/test/null_sync_context_proxy.h", |
497 "internal_api/public/test/sync_manager_factory_for_profile_sync_test.h", | 499 "internal_api/public/test/sync_manager_factory_for_profile_sync_test.h", |
498 "internal_api/public/test/test_entry_factory.h", | 500 "internal_api/public/test/test_entry_factory.h", |
499 "internal_api/public/test/test_internal_components_factory.h", | 501 "internal_api/public/test/test_internal_components_factory.h", |
500 "internal_api/public/test/test_user_share.h", | 502 "internal_api/public/test/test_user_share.h", |
501 "internal_api/test/fake_sync_manager.cc", | 503 "internal_api/test/fake_sync_manager.cc", |
502 "internal_api/test/null_sync_context_proxy.cc", | 504 "internal_api/test/null_sync_context_proxy.cc", |
503 "internal_api/test/sync_manager_factory_for_profile_sync_test.cc", | 505 "internal_api/test/sync_manager_factory_for_profile_sync_test.cc", |
(...skipping 16 matching lines...) Expand all Loading... |
520 | 522 |
521 forward_dependent_configs_from = [ | 523 forward_dependent_configs_from = [ |
522 "//testing/gtest", | 524 "//testing/gtest", |
523 "//sync", | 525 "//sync", |
524 ":test_support_sync_core", | 526 ":test_support_sync_core", |
525 ] | 527 ] |
526 } | 528 } |
527 | 529 |
528 # GYP version: sync/sync_tests.gypi:test_support_sync_api | 530 # GYP version: sync/sync_tests.gypi:test_support_sync_api |
529 static_library("test_support_sync_api") { | 531 static_library("test_support_sync_api") { |
| 532 testonly = true |
530 sources = [ | 533 sources = [ |
531 "api/fake_syncable_service.cc", | 534 "api/fake_syncable_service.cc", |
532 "api/fake_syncable_service.h", | 535 "api/fake_syncable_service.h", |
533 "api/fake_sync_change_processor.cc", | 536 "api/fake_sync_change_processor.cc", |
534 "api/fake_sync_change_processor.h", | 537 "api/fake_sync_change_processor.h", |
535 "api/sync_change_processor_wrapper_for_test.cc", | 538 "api/sync_change_processor_wrapper_for_test.cc", |
536 "api/sync_change_processor_wrapper_for_test.h", | 539 "api/sync_change_processor_wrapper_for_test.h", |
537 "api/sync_error_factory_mock.cc", | 540 "api/sync_error_factory_mock.cc", |
538 "api/sync_error_factory_mock.h", | 541 "api/sync_error_factory_mock.h", |
539 ] | 542 ] |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
662 | 665 |
663 if (is_ios) { | 666 if (is_ios) { |
664 sources -= [ "internal_api/http_bridge_unittest.cc" ] | 667 sources -= [ "internal_api/http_bridge_unittest.cc" ] |
665 } | 668 } |
666 | 669 |
667 defines = [ "SYNC_TEST" ] | 670 defines = [ "SYNC_TEST" ] |
668 } | 671 } |
669 | 672 |
670 # GYP version: sync/sync_tests.gypi:test_support_sync_fake_server | 673 # GYP version: sync/sync_tests.gypi:test_support_sync_fake_server |
671 static_library("test_support_sync_fake_server") { | 674 static_library("test_support_sync_fake_server") { |
| 675 testonly = true |
672 sources = [ | 676 sources = [ |
673 "test/fake_server/bookmark_entity.cc", | 677 "test/fake_server/bookmark_entity.cc", |
674 "test/fake_server/bookmark_entity.h", | 678 "test/fake_server/bookmark_entity.h", |
675 "test/fake_server/bookmark_entity_builder.cc", | 679 "test/fake_server/bookmark_entity_builder.cc", |
676 "test/fake_server/bookmark_entity_builder.h", | 680 "test/fake_server/bookmark_entity_builder.h", |
677 "test/fake_server/entity_builder.cc", | 681 "test/fake_server/entity_builder.cc", |
678 "test/fake_server/entity_builder.h", | 682 "test/fake_server/entity_builder.h", |
679 "test/fake_server/entity_builder_factory.cc", | 683 "test/fake_server/entity_builder_factory.cc", |
680 "test/fake_server/entity_builder_factory.h", | 684 "test/fake_server/entity_builder_factory.h", |
681 "test/fake_server/fake_server.cc", | 685 "test/fake_server/fake_server.cc", |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
768 "//base", | 772 "//base", |
769 "//base/test:test_support", | 773 "//base/test:test_support", |
770 "//net:test_support", | 774 "//net:test_support", |
771 "//testing/gtest", | 775 "//testing/gtest", |
772 ":test_support_sync_testserver", | 776 ":test_support_sync_testserver", |
773 ] | 777 ] |
774 } | 778 } |
775 } | 779 } |
776 | 780 |
777 #TODO(GYP): Need to port sync_android.gypi and Android test targets. | 781 #TODO(GYP): Need to port sync_android.gypi and Android test targets. |
OLD | NEW |