aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-12-16 02:07:12 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-12-16 02:07:12 +0000
commit5a072c265a474b30d090ddb9715b7e9eef80ee80 (patch)
treefa12a2b15e145df09ef70c2946b577f48943bd92
parentcfe4b65087977e7fb482522a75e9c47097c0ab21 (diff)
parent382fb70c556b89e3f486a4d113f33fcecfe7abce (diff)
downloadlinked-hash-map-android13-s3-release.tar.gz
Snap for 8006021 from 382fb70c556b89e3f486a4d113f33fcecfe7abce to tm-releaseandroid-vts-13.0_r8android-vts-13.0_r7android-vts-13.0_r6android-vts-13.0_r5android-vts-13.0_r4android-vts-13.0_r3android-vts-13.0_r2android-vts-13.0_r1android-security-13.0.0_r9android-security-13.0.0_r8android-security-13.0.0_r7android-security-13.0.0_r6android-security-13.0.0_r5android-security-13.0.0_r4android-security-13.0.0_r3android-security-13.0.0_r2android-security-13.0.0_r17android-security-13.0.0_r16android-security-13.0.0_r15android-security-13.0.0_r14android-security-13.0.0_r13android-security-13.0.0_r12android-security-13.0.0_r11android-security-13.0.0_r10android-security-13.0.0_r1android-platform-13.0.0_r9android-platform-13.0.0_r8android-platform-13.0.0_r7android-platform-13.0.0_r6android-platform-13.0.0_r5android-platform-13.0.0_r4android-platform-13.0.0_r3android-platform-13.0.0_r2android-platform-13.0.0_r19android-platform-13.0.0_r18android-platform-13.0.0_r17android-platform-13.0.0_r16android-platform-13.0.0_r15android-platform-13.0.0_r14android-platform-13.0.0_r13android-platform-13.0.0_r12android-platform-13.0.0_r11android-platform-13.0.0_r10android-platform-13.0.0_r1android-cts-13.0_r8android-cts-13.0_r7android-cts-13.0_r6android-cts-13.0_r5android-cts-13.0_r4android-cts-13.0_r3android-cts-13.0_r2android-cts-13.0_r1android-13.0.0_r8android-13.0.0_r7android-13.0.0_r6android-13.0.0_r5android-13.0.0_r4android-13.0.0_r31android-13.0.0_r3android-13.0.0_r2android-13.0.0_r12android-13.0.0_r1android13-tests-releaseandroid13-security-releaseandroid13-s3-releaseandroid13-s2-releaseandroid13-s1-releaseandroid13-releaseandroid13-platform-releaseandroid13-gsi
Change-Id: Ia31142535cc8ad333cba4333b9031af2c70793f2
-rw-r--r--Android.bp76
-rw-r--r--TEST_MAPPING22
-rw-r--r--cargo2android.json5
3 files changed, 24 insertions, 79 deletions
diff --git a/Android.bp b/Android.bp
index 366d02e..be42217 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,4 +1,4 @@
-// This file is generated by cargo2android.py --device --run --dependencies --tests.
+// This file is generated by cargo2android.py --config cargo2android.json.
// Do not modify this file as changes will be overridden on upgrade.
package {
@@ -43,84 +43,26 @@ rust_library {
name: "liblinked_hash_map",
host_supported: true,
crate_name: "linked_hash_map",
+ cargo_env_compat: true,
+ cargo_pkg_version: "0.5.4",
srcs: ["src/lib.rs"],
edition: "2015",
}
-rust_defaults {
- name: "linked-hash-map_defaults",
+rust_test {
+ name: "linked-hash-map_test_tests_test",
+ host_supported: true,
crate_name: "linked_hash_map",
- srcs: ["src/lib.rs"],
+ cargo_env_compat: true,
+ cargo_pkg_version: "0.5.4",
+ srcs: ["tests/test.rs"],
test_suites: ["general-tests"],
auto_gen_config: true,
- edition: "2015",
-}
-
-rust_test_host {
- name: "linked-hash-map_host_test_src_lib",
- defaults: ["linked-hash-map_defaults"],
test_options: {
unit_test: true,
},
-}
-
-rust_test {
- name: "linked-hash-map_device_test_src_lib",
- defaults: ["linked-hash-map_defaults"],
-}
-
-rust_defaults {
- name: "linked-hash-map_defaults_linked_hash_map",
- crate_name: "linked_hash_map",
- test_suites: ["general-tests"],
- auto_gen_config: true,
edition: "2015",
rustlibs: [
"liblinked_hash_map",
],
}
-
-rust_test_host {
- name: "linked-hash-map_host_test_tests_heapsize",
- defaults: ["linked-hash-map_defaults_linked_hash_map"],
- srcs: ["tests/heapsize.rs"],
- test_options: {
- unit_test: true,
- },
-}
-
-rust_test {
- name: "linked-hash-map_device_test_tests_heapsize",
- defaults: ["linked-hash-map_defaults_linked_hash_map"],
- srcs: ["tests/heapsize.rs"],
-}
-
-rust_test_host {
- name: "linked-hash-map_host_test_tests_serde",
- defaults: ["linked-hash-map_defaults_linked_hash_map"],
- srcs: ["tests/serde.rs"],
- test_options: {
- unit_test: true,
- },
-}
-
-rust_test {
- name: "linked-hash-map_device_test_tests_serde",
- defaults: ["linked-hash-map_defaults_linked_hash_map"],
- srcs: ["tests/serde.rs"],
-}
-
-rust_test_host {
- name: "linked-hash-map_host_test_tests_test",
- defaults: ["linked-hash-map_defaults_linked_hash_map"],
- srcs: ["tests/test.rs"],
- test_options: {
- unit_test: true,
- },
-}
-
-rust_test {
- name: "linked-hash-map_device_test_tests_test",
- defaults: ["linked-hash-map_defaults_linked_hash_map"],
- srcs: ["tests/test.rs"],
-}
diff --git a/TEST_MAPPING b/TEST_MAPPING
index fb57622..2c5b7a8 100644
--- a/TEST_MAPPING
+++ b/TEST_MAPPING
@@ -1,20 +1,18 @@
// Generated by update_crate_tests.py for tests that depend on this crate.
{
- "presubmit": [
- {
- "name": "linked-hash-map_device_test_src_lib"
- },
- {
- "name": "linked-hash-map_device_test_tests_heapsize"
- },
+ "imports": [
{
- "name": "linked-hash-map_device_test_tests_serde"
- },
+ "path": "external/rust/crates/lru-cache"
+ }
+ ],
+ "presubmit": [
{
- "name": "linked-hash-map_device_test_tests_test"
- },
+ "name": "linked-hash-map_test_tests_test"
+ }
+ ],
+ "presubmit-rust": [
{
- "name": "lru-cache_device_test_src_lib"
+ "name": "linked-hash-map_test_tests_test"
}
]
}
diff --git a/cargo2android.json b/cargo2android.json
new file mode 100644
index 0000000..d36fb44
--- /dev/null
+++ b/cargo2android.json
@@ -0,0 +1,5 @@
+{
+ "device": true,
+ "run": true,
+ "tests": true
+} \ No newline at end of file