diff options
Diffstat (limited to 'rust/testing.go')
-rw-r--r-- | rust/testing.go | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/rust/testing.go b/rust/testing.go index 75adcfce9..2dda9c144 100644 --- a/rust/testing.go +++ b/rust/testing.go @@ -127,6 +127,7 @@ func GatherRequiredDepsForTest() string { system_shared_libs: [], apex_available: ["//apex_available:platform", "//apex_available:anyapex"], min_sdk_version: "29", + vendor_available: true, } cc_library { name: "libprotobuf-cpp-full", @@ -150,7 +151,7 @@ func GatherRequiredDepsForTest() string { host_supported: true, vendor_available: true, vendor_ramdisk_available: true, - native_coverage: false, + native_coverage: false, sysroot: true, apex_available: ["//apex_available:platform", "//apex_available:anyapex"], min_sdk_version: "29", @@ -163,7 +164,7 @@ func GatherRequiredDepsForTest() string { host_supported: true, vendor_available: true, vendor_ramdisk_available: true, - native_coverage: false, + native_coverage: false, sysroot: true, apex_available: ["//apex_available:platform", "//apex_available:anyapex"], min_sdk_version: "29", @@ -192,11 +193,19 @@ func GatherRequiredDepsForTest() string { srcs:["foo.rs"], host_supported: true, } + rust_library { + name: "libcriterion", + crate_name: "criterion", + srcs:["foo.rs"], + host_supported: true, + } ` return bp } func registerRequiredBuildComponentsForTest(ctx android.RegistrationContext) { + ctx.RegisterModuleType("rust_benchmark", RustBenchmarkFactory) + ctx.RegisterModuleType("rust_benchmark_host", RustBenchmarkHostFactory) ctx.RegisterModuleType("rust_binary", RustBinaryFactory) ctx.RegisterModuleType("rust_binary_host", RustBinaryHostFactory) ctx.RegisterModuleType("rust_bindgen", RustBindgenFactory) |