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("//base/android/linker/config.gni") | 5 import("//base/android/linker/config.gni") |
6 import("//build/config/android/config.gni") | 6 import("//build/config/android/config.gni") |
7 import("//build/config/android/internal_rules.gni") | 7 import("//build/config/android/internal_rules.gni") |
8 import("//tools/grit/grit_rule.gni") | 8 import("//tools/grit/grit_rule.gni") |
9 import("//tools/relocation_packer/config.gni") | 9 import("//tools/relocation_packer/config.gni") |
10 | 10 |
(...skipping 1432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1443 | 1443 |
1444 if (defined(invoker.unittests_binary)) { | 1444 if (defined(invoker.unittests_binary)) { |
1445 unittests_binary = invoker.unittests_binary | 1445 unittests_binary = invoker.unittests_binary |
1446 } else { | 1446 } else { |
1447 unittests_binary = "lib" + test_suite_name + ".so" | 1447 unittests_binary = "lib" + test_suite_name + ".so" |
1448 } | 1448 } |
1449 | 1449 |
1450 android_apk(target_name) { | 1450 android_apk(target_name) { |
1451 _apk_name = test_suite_name | 1451 _apk_name = test_suite_name |
1452 final_apk_path = "$root_build_dir/${_apk_name}_apk/${_apk_name}-debug.apk" | 1452 final_apk_path = "$root_build_dir/${_apk_name}_apk/${_apk_name}-debug.apk" |
1453 java_files = [ "//testing/android/java/src/org/chromium/native_test/ChromeNa
tiveTestActivity.java" ] | 1453 java_files = [ |
| 1454 "//testing/android/java/src/org/chromium/native_test/ChromeNativeTestActiv
ity.java", |
| 1455 "//testing/android/java/src/org/chromium/native_test/ChromiumNativeTestIns
trumentationTestRunner.java", |
| 1456 ] |
1454 android_manifest = "//testing/android/java/AndroidManifest.xml" | 1457 android_manifest = "//testing/android/java/AndroidManifest.xml" |
1455 native_libs = [ unittests_binary ] | 1458 native_libs = [ unittests_binary ] |
1456 if (defined(invoker.asset_location)) { | 1459 if (defined(invoker.asset_location)) { |
1457 asset_location = invoker.asset_location | 1460 asset_location = invoker.asset_location |
1458 } | 1461 } |
1459 deps = [ | 1462 deps = [ |
1460 "//base:base_java", | 1463 "//base:base_java", |
| 1464 "//build/android/pylib/remote/device/dummy:remote_device_dummy_apk", |
1461 ] | 1465 ] |
1462 if (defined(invoker.deps)) { | 1466 if (defined(invoker.deps)) { |
1463 deps += invoker.deps | 1467 deps += invoker.deps |
1464 } | 1468 } |
1465 datadeps = [ | 1469 datadeps = [ |
1466 "//tools/android/forwarder2", | 1470 "//tools/android/forwarder2", |
1467 "//tools/android/md5sum", | 1471 "//tools/android/md5sum", |
1468 ] | 1472 ] |
1469 if (defined(invoker.datadeps)) { | 1473 if (defined(invoker.datadeps)) { |
1470 datadeps += invoker.datadeps | 1474 datadeps += invoker.datadeps |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1690 # TODO(GYP): implement this. | 1694 # TODO(GYP): implement this. |
1691 template("uiautomator_test") { | 1695 template("uiautomator_test") { |
1692 if (defined(invoker.testonly)) { | 1696 if (defined(invoker.testonly)) { |
1693 testonly = invoker.testonly | 1697 testonly = invoker.testonly |
1694 } | 1698 } |
1695 assert(target_name != "") | 1699 assert(target_name != "") |
1696 assert(invoker.deps != [] || true) | 1700 assert(invoker.deps != [] || true) |
1697 group(target_name) { | 1701 group(target_name) { |
1698 } | 1702 } |
1699 } | 1703 } |
OLD | NEW |