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 1522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1533 sources = [ | 1533 sources = [ |
1534 "profiler/test_support_library.cc", | 1534 "profiler/test_support_library.cc", |
1535 ] | 1535 ] |
1536 deps = [ | 1536 deps = [ |
1537 "//build/config/sanitizers:deps", | 1537 "//build/config/sanitizers:deps", |
1538 ] | 1538 ] |
1539 } | 1539 } |
1540 } | 1540 } |
1541 } | 1541 } |
1542 | 1542 |
| 1543 if (is_ios) { |
| 1544 bundle_data("base_unittests_bundle_data") { |
| 1545 sources = [ |
| 1546 "test/data", |
| 1547 ] |
| 1548 outputs = [ |
| 1549 "{{bundle_resources_dir}}/{{source_root_relative_dir}}/{{source_file_part}
}", |
| 1550 ] |
| 1551 } |
| 1552 } |
| 1553 |
1543 test("base_unittests") { | 1554 test("base_unittests") { |
1544 sources = [ | 1555 sources = [ |
1545 "allocator/tcmalloc_unittest.cc", | 1556 "allocator/tcmalloc_unittest.cc", |
1546 "android/application_status_listener_unittest.cc", | 1557 "android/application_status_listener_unittest.cc", |
1547 "android/content_uri_utils_unittest.cc", | 1558 "android/content_uri_utils_unittest.cc", |
1548 "android/jni_android_unittest.cc", | 1559 "android/jni_android_unittest.cc", |
1549 "android/jni_array_unittest.cc", | 1560 "android/jni_array_unittest.cc", |
1550 "android/jni_string_unittest.cc", | 1561 "android/jni_string_unittest.cc", |
1551 "android/library_loader/library_prefetcher_unittest.cc", | 1562 "android/library_loader/library_prefetcher_unittest.cc", |
1552 "android/path_utils_unittest.cc", | 1563 "android/path_utils_unittest.cc", |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1792 ":i18n", | 1803 ":i18n", |
1793 ":message_loop_tests", | 1804 ":message_loop_tests", |
1794 "//base/test:run_all_unittests", | 1805 "//base/test:run_all_unittests", |
1795 "//base/test:test_support", | 1806 "//base/test:test_support", |
1796 "//base/third_party/dynamic_annotations", | 1807 "//base/third_party/dynamic_annotations", |
1797 "//testing/gmock", | 1808 "//testing/gmock", |
1798 "//testing/gtest", | 1809 "//testing/gtest", |
1799 "//third_party/icu", | 1810 "//third_party/icu", |
1800 ] | 1811 ] |
1801 | 1812 |
| 1813 if (is_ios) { |
| 1814 deps += [ ":base_unittests_bundle_data" ] |
| 1815 } |
| 1816 |
1802 # Some unittests depend on the ALLOCATOR_SHIM macro. | 1817 # Some unittests depend on the ALLOCATOR_SHIM macro. |
1803 configs += [ "//base/allocator:allocator_shim_define" ] | 1818 configs += [ "//base/allocator:allocator_shim_define" ] |
1804 | 1819 |
1805 data = [ | 1820 data = [ |
1806 "test/data/", | 1821 "test/data/", |
1807 ] | 1822 ] |
1808 | 1823 |
1809 # Allow more direct string conversions on platforms with native utf8 | 1824 # Allow more direct string conversions on platforms with native utf8 |
1810 # strings | 1825 # strings |
1811 if (is_mac || is_ios || is_chromeos) { | 1826 if (is_mac || is_ios || is_chromeos) { |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2095 | 2110 |
2096 # GYP: //base.gyp:base_java_unittest_support | 2111 # GYP: //base.gyp:base_java_unittest_support |
2097 android_library("base_java_unittest_support") { | 2112 android_library("base_java_unittest_support") { |
2098 deps = [ | 2113 deps = [ |
2099 ":base_java", | 2114 ":base_java", |
2100 ] | 2115 ] |
2101 java_files = | 2116 java_files = |
2102 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] | 2117 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] |
2103 } | 2118 } |
2104 } | 2119 } |
OLD | NEW |