ConfirmationUI: Invocation native test
This test tries to invoke the ConfirmationUI and cancels it after 2
seconds. It is intended as a pre commit canary for the CanfirmationUI
feature on supporting phones.
Bug: 128993063
Test: Yes it is
Change-Id: I20f7e1b400bef08e0496bf656f65719006f025eb
diff --git a/keystore/tests/Android.bp b/keystore/tests/Android.bp
index 1ce1210..25fa10b 100644
--- a/keystore/tests/Android.bp
+++ b/keystore/tests/Android.bp
@@ -37,3 +37,33 @@
cfi: false,
}
}
+
+cc_test {
+ cflags: [
+ "-Wall",
+ "-Werror",
+ "-Wextra",
+ "-O0",
+ ],
+ srcs: [
+ "confirmationui_invocation_test.cpp",
+ "gtest_main.cpp",
+ ],
+ name: "confirmationui_invocation_test",
+ static_libs: [
+ "android.hardware.confirmationui@1.0",
+ "libbase",
+ "libgtest_main",
+ "libutils",
+ "liblog",
+ ],
+ shared_libs: [
+ "libbinder",
+ "libkeystore_aidl", // for IKeyStoreService.asInterface()
+ "libkeystore_binder",
+ "libkeystore_parcelables",
+ ],
+ sanitize: {
+ cfi: false,
+ }
+}