1package { 2 default_applicable_licenses: ["Android-Apache-2.0"], 3} 4 5java_defaults { 6 name: "vm_attestation_testapp_defaults", 7 test_suites: [ 8 "general-tests", 9 "pts", 10 ], 11 static_libs: [ 12 "MicrodroidDeviceTestHelper", 13 "androidx.test.runner", 14 "androidx.test.ext.junit", 15 "com.android.virt.vm_attestation.testservice-java", 16 "truth", 17 ], 18 jni_libs: ["libvm_attestation_test_payload"], 19 jni_uses_platform_apis: true, 20 use_embedded_native_libs: true, 21 sdk_version: "test_current", 22} 23 24android_test { 25 name: "VmAttestationTestApp", 26 srcs: ["src/java/com/android/virt/vm_attestation/testapp/*.java"], 27 defaults: ["vm_attestation_testapp_defaults"], 28} 29 30rust_defaults { 31 name: "vm_attestation_test_payload_defaults", 32 crate_name: "vm_attestation_test_payload", 33 defaults: ["avf_build_flags_rust"], 34 srcs: ["src/native/main.rs"], 35 prefer_rlib: true, 36 rustlibs: [ 37 "com.android.virt.vm_attestation.testservice-rust", 38 "libandroid_logger", 39 "libanyhow", 40 "libavflog", 41 "liblog_rust", 42 "libvm_payload_bindgen", 43 ], 44} 45 46rust_ffi { 47 name: "libvm_attestation_test_payload", 48 defaults: ["vm_attestation_test_payload_defaults"], 49 visibility: [ 50 ":__subpackages__", 51 "//packages/modules/Virtualization/tests/testapk", 52 ], 53} 54 55android_test { 56 name: "AvfRkpdVmAttestationTestApp", 57 srcs: ["src/java/com/android/virt/rkpd/vm_attestation/testapp/*.java"], 58 defaults: ["vm_attestation_testapp_defaults"], 59 manifest: "AndroidManifest.rkpd.xml", 60 test_config: "AndroidTest.rkpd.xml", 61 static_libs: [ 62 "VmAttestationTestUtil", 63 ], 64} 65 66java_library { 67 name: "VmAttestationTestUtil", 68 srcs: ["src/java/com/android/virt/vm_attestation/util/*.java"], 69 static_libs: [ 70 "bouncycastle-unbundled", 71 "truth", 72 ], 73} 74