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 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
| 6 import("//testing/rules.gni") |
6 | 7 |
7 if (is_android) { | 8 if (is_android) { |
8 import("//build/config/android/rules.gni") | 9 import("//build/config/android/rules.gni") |
9 } | 10 } |
10 | 11 |
11 component("base") { | 12 component("base") { |
12 sources = [ | 13 sources = [ |
13 "third_party/dmg_fp/dmg_fp.h", | 14 "third_party/dmg_fp/dmg_fp.h", |
14 "third_party/dmg_fp/g_fmt.cc", | 15 "third_party/dmg_fp/g_fmt.cc", |
15 "third_party/dmg_fp/dtoa_wrapper.cc", | 16 "third_party/dmg_fp/dtoa_wrapper.cc", |
(...skipping 1351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1367 ":prefs_test_support", | 1368 ":prefs_test_support", |
1368 "//base/allocator", | 1369 "//base/allocator", |
1369 "//base/test:run_all_unittests", | 1370 "//base/test:run_all_unittests", |
1370 "//base/test:test_support", | 1371 "//base/test:test_support", |
1371 "//base/third_party/dynamic_annotations", | 1372 "//base/third_party/dynamic_annotations", |
1372 "//testing/gmock", | 1373 "//testing/gmock", |
1373 "//testing/gtest", | 1374 "//testing/gtest", |
1374 "//third_party/icu", | 1375 "//third_party/icu", |
1375 ] | 1376 ] |
1376 | 1377 |
| 1378 if (is_android) { |
| 1379 apk_deps = [ |
| 1380 ":base_java", |
| 1381 ":base_java_unittest_support", |
| 1382 ] |
| 1383 } |
| 1384 |
1377 if (is_ios) { | 1385 if (is_ios) { |
1378 sources -= [ | 1386 sources -= [ |
1379 "metrics/stats_table_uinittest.cc", # Requires spawning a process. | 1387 "metrics/stats_table_uinittest.cc", # Requires spawning a process. |
1380 "process/memory_unittest.cc", | 1388 "process/memory_unittest.cc", |
1381 "process/memory_unittest_mac.h", | 1389 "process/memory_unittest_mac.h", |
1382 "process/memory_unittest_mac.mm", | 1390 "process/memory_unittest_mac.mm", |
1383 "process/process_unittest.cc", | 1391 "process/process_unittest.cc", |
1384 "process/process_util_unittest.cc", | 1392 "process/process_util_unittest.cc", |
1385 ] | 1393 ] |
1386 | 1394 |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1519 } | 1527 } |
1520 | 1528 |
1521 # GYP: //base.gyp:base_java_unittest_support | 1529 # GYP: //base.gyp:base_java_unittest_support |
1522 android_library("base_java_unittest_support") { | 1530 android_library("base_java_unittest_support") { |
1523 deps = [ | 1531 deps = [ |
1524 ":base_java", | 1532 ":base_java", |
1525 ] | 1533 ] |
1526 java_files = | 1534 java_files = |
1527 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] | 1535 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] |
1528 } | 1536 } |
1529 | |
1530 # GYP: //base.gyp:base_unittests_apk | |
1531 unittest_apk("base_unittests_apk") { | |
1532 deps = [ | |
1533 ":base_java", | |
1534 ":base_java_unittest_support", | |
1535 ":base_unittests", | |
1536 ] | |
1537 unittests_dep = ":base_unittests" | |
1538 } | |
1539 } | 1537 } |
OLD | NEW |