summaryrefslogtreecommitdiff
path: root/keystore2/Android.bp
diff options
context:
space:
mode:
authorRajesh Nyamagoud <nyamagoud@google.com>2022-02-17 16:47:55 +0000
committerRajesh Nyamagoud <nyamagoud@google.com>2022-03-17 00:35:43 +0000
commit69a850511be93bd7a8927347f6f366e1ad5d5cf1 (patch)
tree6290e3f687556944219a92a8f9063b7269e5c5be /keystore2/Android.bp
parent373561fd1e61a6422be0e59fa061b4ecbbdf865a (diff)
downloadsecurity-69a850511be93bd7a8927347f6f366e1ad5d5cf1.tar.gz
Restructred blob utilities to make them accessible in tests.
Creating a new library "libkeystore2_with_test_utils" where it includes blob utils apis and sample test vectors based on feature flag keystore2_blob_test_utils. Bug: 213173772 Bug: 213172664 Bug: 203101472 Test: keystore2_test Change-Id: I869d27d1d3e8c6d28d8f5e5d6aed4305b5265816
Diffstat (limited to 'keystore2/Android.bp')
-rw-r--r--keystore2/Android.bp15
1 files changed, 15 insertions, 0 deletions
diff --git a/keystore2/Android.bp b/keystore2/Android.bp
index 2027af43..74aa4bde 100644
--- a/keystore2/Android.bp
+++ b/keystore2/Android.bp
@@ -89,6 +89,19 @@ rust_library {
],
}
+rust_library {
+ name: "libkeystore2_with_test_utils",
+ defaults: ["libkeystore2_defaults"],
+ features: [
+ "keystore2_blob_test_utils",
+ ],
+ rustlibs: [
+ "liblibsqlite3_sys",
+ "librusqlite",
+ "libkeystore2_test_utils",
+ ],
+}
+
rust_test {
name: "keystore2_test_utils_test",
srcs: ["test_utils/lib.rs"],
@@ -119,10 +132,12 @@ rust_test {
"liblibsqlite3_sys",
"libnix",
"librusqlite",
+ "libkeystore2_with_test_utils",
],
// The test should always include watchdog.
features: [
"watchdog",
+ "keystore2_blob_test_utils",
],
}