summaryrefslogtreecommitdiffstats
path: root/tests/fingerprint
diff options
context:
space:
mode:
authorJim Miller <jaggies@google.com>2015-03-24 19:25:47 -0700
committerJim Miller <jaggies@google.com>2015-03-24 19:27:57 -0700
commit1fb1e33454467b44f5e370454dec2c6caccc58a2 (patch)
tree3cf840e76b6200715ba74322d580b3e275081e1e /tests/fingerprint
parent147814cd4c2231400aa6a2ea633f7c342498bc7d (diff)
downloadhardware_libhardware-1fb1e33454467b44f5e370454dec2c6caccc58a2.zip
hardware_libhardware-1fb1e33454467b44f5e370454dec2c6caccc58a2.tar.gz
hardware_libhardware-1fb1e33454467b44f5e370454dec2c6caccc58a2.tar.bz2
Update fingerprint.h for new API
This adds vendor-specific messaging capabilities to the HAL driver to avoid the possibility of vendors clobbering general-purpose methods. The framework translates these additional messages as an offset into a custom message array. Additionally, authenticate() now takes a group id to restrict authentication to a subset of possible fingerprints. Bug 16487912 Change-Id: I8a92a6c86b4729af03a5576b4a150b1c73fbc9cc
Diffstat (limited to 'tests/fingerprint')
-rw-r--r--tests/fingerprint/fingerprint_tests.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/fingerprint/fingerprint_tests.cpp b/tests/fingerprint/fingerprint_tests.cpp
index 4463751..4ae0d73 100644
--- a/tests/fingerprint/fingerprint_tests.cpp
+++ b/tests/fingerprint/fingerprint_tests.cpp
@@ -29,6 +29,11 @@ TEST_F(FingerprintDevice, isThereRemove) {
<< "remove() function is not implemented";
}
+TEST_F(FingerprintDevice, isThereAuthenticate) {
+ ASSERT_TRUE(NULL != fp_device()->authenticate)
+ << "authenticate() function is not implemented";
+}
+
TEST_F(FingerprintDevice, isThereSetNotify) {
ASSERT_TRUE(NULL != fp_device()->set_notify)
<< "set_notify() function is not implemented";