OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 # HOW TO WRITE CONDITIONALS IN THIS FILE | 5 # HOW TO WRITE CONDITIONALS IN THIS FILE |
6 # ====================================== | 6 # ====================================== |
7 # | 7 # |
8 # In many other places, one would write a conditional that expresses all the | 8 # In many other places, one would write a conditional that expresses all the |
9 # cases when a source file is used or unused, and then either add or subtract | 9 # cases when a source file is used or unused, and then either add or subtract |
10 # it from the sources list in that case | 10 # it from the sources list in that case |
(...skipping 1447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1458 "check_example.cc", | 1458 "check_example.cc", |
1459 ] | 1459 ] |
1460 deps = [ | 1460 deps = [ |
1461 ":base", | 1461 ":base", |
1462 "//build/config/sanitizers:deps", | 1462 "//build/config/sanitizers:deps", |
1463 ] | 1463 ] |
1464 } | 1464 } |
1465 } | 1465 } |
1466 } | 1466 } |
1467 | 1467 |
1468 # TODO(brettw) remove these forwarding targets when all references to prefs are | 1468 component("prefs") { |
1469 # updated to point to components. | 1469 sources = [ |
1470 group("prefs") { | 1470 "prefs/default_pref_store.cc", |
| 1471 "prefs/default_pref_store.h", |
| 1472 "prefs/json_pref_store.cc", |
| 1473 "prefs/json_pref_store.h", |
| 1474 "prefs/overlay_user_pref_store.cc", |
| 1475 "prefs/overlay_user_pref_store.h", |
| 1476 "prefs/pref_change_registrar.cc", |
| 1477 "prefs/pref_change_registrar.h", |
| 1478 "prefs/pref_member.cc", |
| 1479 "prefs/pref_member.h", |
| 1480 "prefs/pref_notifier_impl.cc", |
| 1481 "prefs/pref_notifier_impl.h", |
| 1482 "prefs/pref_registry.cc", |
| 1483 "prefs/pref_registry.h", |
| 1484 "prefs/pref_registry_simple.cc", |
| 1485 "prefs/pref_registry_simple.h", |
| 1486 "prefs/pref_service.cc", |
| 1487 "prefs/pref_service.h", |
| 1488 "prefs/pref_service_factory.cc", |
| 1489 "prefs/pref_service_factory.h", |
| 1490 "prefs/pref_store.cc", |
| 1491 "prefs/pref_store.h", |
| 1492 "prefs/pref_value_map.cc", |
| 1493 "prefs/pref_value_map.h", |
| 1494 "prefs/pref_value_store.cc", |
| 1495 "prefs/pref_value_store.h", |
| 1496 "prefs/scoped_user_pref_update.cc", |
| 1497 "prefs/scoped_user_pref_update.h", |
| 1498 "prefs/value_map_pref_store.cc", |
| 1499 "prefs/value_map_pref_store.h", |
| 1500 ] |
| 1501 if (!is_ios) { |
| 1502 sources += [ |
| 1503 "prefs/base_prefs_export.h", |
| 1504 "prefs/persistent_pref_store.h", |
| 1505 "prefs/pref_filter.h", |
| 1506 "prefs/pref_notifier.h", |
| 1507 "prefs/pref_observer.h", |
| 1508 "prefs/writeable_pref_store.h", |
| 1509 ] |
| 1510 } |
| 1511 |
| 1512 defines = [ "BASE_PREFS_IMPLEMENTATION" ] |
| 1513 |
| 1514 deps = [ |
| 1515 ":base", |
| 1516 ] |
| 1517 |
| 1518 if (!is_debug) { |
| 1519 configs -= [ "//build/config/compiler:default_optimization" ] |
| 1520 configs += [ "//build/config/compiler:optimize_max" ] |
| 1521 } |
| 1522 } |
| 1523 |
| 1524 source_set("prefs_test_support") { |
| 1525 testonly = true |
| 1526 sources = [ |
| 1527 "prefs/mock_pref_change_callback.cc", |
| 1528 "prefs/mock_pref_change_callback.h", |
| 1529 "prefs/pref_store_observer_mock.cc", |
| 1530 "prefs/pref_store_observer_mock.h", |
| 1531 "prefs/testing_pref_service.cc", |
| 1532 "prefs/testing_pref_service.h", |
| 1533 "prefs/testing_pref_store.cc", |
| 1534 "prefs/testing_pref_store.h", |
| 1535 ] |
| 1536 |
1471 public_deps = [ | 1537 public_deps = [ |
1472 "//components/prefs", | 1538 ":prefs", |
1473 ] | 1539 ] |
1474 } | 1540 deps = [ |
1475 group("prefs_test_support") { | 1541 ":base", |
1476 testonly = true | 1542 "//testing/gmock", |
1477 public_deps = [ | 1543 "//testing/gtest", |
1478 "//components/prefs:test_support", | |
1479 ] | 1544 ] |
1480 } | 1545 } |
1481 | 1546 |
1482 source_set("message_loop_tests") { | 1547 source_set("message_loop_tests") { |
1483 testonly = true | 1548 testonly = true |
1484 sources = [ | 1549 sources = [ |
1485 "message_loop/message_loop_test.cc", | 1550 "message_loop/message_loop_test.cc", |
1486 "message_loop/message_loop_test.h", | 1551 "message_loop/message_loop_test.h", |
1487 ] | 1552 ] |
1488 | 1553 |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1659 "metrics/statistics_recorder_unittest.cc", | 1724 "metrics/statistics_recorder_unittest.cc", |
1660 "native_library_unittest.cc", | 1725 "native_library_unittest.cc", |
1661 "numerics/safe_numerics_unittest.cc", | 1726 "numerics/safe_numerics_unittest.cc", |
1662 "observer_list_unittest.cc", | 1727 "observer_list_unittest.cc", |
1663 "os_compat_android_unittest.cc", | 1728 "os_compat_android_unittest.cc", |
1664 "path_service_unittest.cc", | 1729 "path_service_unittest.cc", |
1665 "pickle_unittest.cc", | 1730 "pickle_unittest.cc", |
1666 "posix/file_descriptor_shuffle_unittest.cc", | 1731 "posix/file_descriptor_shuffle_unittest.cc", |
1667 "posix/unix_domain_socket_linux_unittest.cc", | 1732 "posix/unix_domain_socket_linux_unittest.cc", |
1668 "power_monitor/power_monitor_unittest.cc", | 1733 "power_monitor/power_monitor_unittest.cc", |
| 1734 "prefs/default_pref_store_unittest.cc", |
| 1735 "prefs/json_pref_store_unittest.cc", |
| 1736 "prefs/overlay_user_pref_store_unittest.cc", |
| 1737 "prefs/pref_change_registrar_unittest.cc", |
| 1738 "prefs/pref_member_unittest.cc", |
| 1739 "prefs/pref_notifier_impl_unittest.cc", |
| 1740 "prefs/pref_service_unittest.cc", |
| 1741 "prefs/pref_value_map_unittest.cc", |
| 1742 "prefs/pref_value_store_unittest.cc", |
| 1743 "prefs/scoped_user_pref_update_unittest.cc", |
1669 "process/memory_unittest.cc", | 1744 "process/memory_unittest.cc", |
1670 "process/memory_unittest_mac.h", | 1745 "process/memory_unittest_mac.h", |
1671 "process/memory_unittest_mac.mm", | 1746 "process/memory_unittest_mac.mm", |
1672 "process/process_metrics_unittest.cc", | 1747 "process/process_metrics_unittest.cc", |
1673 "process/process_metrics_unittest_ios.cc", | 1748 "process/process_metrics_unittest_ios.cc", |
1674 "process/process_unittest.cc", | 1749 "process/process_unittest.cc", |
1675 "process/process_util_unittest.cc", | 1750 "process/process_util_unittest.cc", |
1676 "profiler/stack_sampling_profiler_unittest.cc", | 1751 "profiler/stack_sampling_profiler_unittest.cc", |
1677 "profiler/tracked_time_unittest.cc", | 1752 "profiler/tracked_time_unittest.cc", |
1678 "rand_util_unittest.cc", | 1753 "rand_util_unittest.cc", |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1778 "win/shortcut_unittest.cc", | 1853 "win/shortcut_unittest.cc", |
1779 "win/startup_information_unittest.cc", | 1854 "win/startup_information_unittest.cc", |
1780 "win/win_util_unittest.cc", | 1855 "win/win_util_unittest.cc", |
1781 "win/wrapped_window_proc_unittest.cc", | 1856 "win/wrapped_window_proc_unittest.cc", |
1782 ] | 1857 ] |
1783 | 1858 |
1784 deps = [ | 1859 deps = [ |
1785 ":base", | 1860 ":base", |
1786 ":i18n", | 1861 ":i18n", |
1787 ":message_loop_tests", | 1862 ":message_loop_tests", |
| 1863 ":prefs", |
| 1864 ":prefs_test_support", |
1788 "//base/test:run_all_unittests", | 1865 "//base/test:run_all_unittests", |
1789 "//base/test:test_support", | 1866 "//base/test:test_support", |
1790 "//base/third_party/dynamic_annotations", | 1867 "//base/third_party/dynamic_annotations", |
1791 "//testing/gmock", | 1868 "//testing/gmock", |
1792 "//testing/gtest", | 1869 "//testing/gtest", |
1793 "//third_party/icu", | 1870 "//third_party/icu", |
1794 ] | 1871 ] |
1795 | 1872 |
1796 # Some unittests depend on the ALLOCATOR_SHIM macro. | 1873 # Some unittests depend on the ALLOCATOR_SHIM macro. |
1797 configs += [ "//base/allocator:allocator_shim_define" ] | 1874 configs += [ "//base/allocator:allocator_shim_define" ] |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2061 | 2138 |
2062 # GYP: //base.gyp:base_java_unittest_support | 2139 # GYP: //base.gyp:base_java_unittest_support |
2063 android_library("base_java_unittest_support") { | 2140 android_library("base_java_unittest_support") { |
2064 deps = [ | 2141 deps = [ |
2065 ":base_java", | 2142 ":base_java", |
2066 ] | 2143 ] |
2067 java_files = | 2144 java_files = |
2068 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] | 2145 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] |
2069 } | 2146 } |
2070 } | 2147 } |
OLD | NEW |