From 1fb1e33454467b44f5e370454dec2c6caccc58a2 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Tue, 24 Mar 2015 19:25:47 -0700 Subject: 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 --- tests/fingerprint/fingerprint_tests.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') 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"; -- cgit v1.1