summaryrefslogtreecommitdiff
path: root/test/fpsensor.mocklist
diff options
context:
space:
mode:
authorYicheng Li <yichengli@chromium.org>2019-06-14 18:21:17 -0700
committerCommit Bot <commit-bot@chromium.org>2019-10-09 03:43:59 +0000
commit83e0848263313dbdaf10ebc887dea548faaf251a (patch)
tree9e5175d0fdee0265ef0d96fc6705fded4917c246 /test/fpsensor.mocklist
parent635f21d41c095f138cb711118a7866fcd0b5bcc4 (diff)
downloadchrome-ec-83e0848263313dbdaf10ebc887dea548faaf251a.tar.gz
fpsensor: Implement command to read positive_match_secret.
Add EC command to read positive_match_secret on match success. If the attempt to read is 5 seconds after the match, the read is not allowed (the readable bit for positive match secret is cleared). Test that the command can read the data correctly and can read for each finger only once. Test that attempt to read secret after deadline will be rejected. BRANCH=nocturne BUG=chromium:927095 TEST=make buildall TEST=tested enrollment, matching and multifinger on DUT nocturne TEST=tested that if biod requests to download template and secret for a finger that's not currently matched, reading secret will fail. Change-Id: Idc734c6392d271e2aaee1cddf7c2c5b81b727b4a Signed-off-by: Yicheng Li <yichengli@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1679372 Reviewed-by: Nicolas Norvez <norvez@chromium.org>
Diffstat (limited to 'test/fpsensor.mocklist')
-rw-r--r--test/fpsensor.mocklist3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/fpsensor.mocklist b/test/fpsensor.mocklist
index 9bed932526..9ddc52a0d1 100644
--- a/test/fpsensor.mocklist
+++ b/test/fpsensor.mocklist
@@ -4,4 +4,5 @@
*/
#define CONFIG_TEST_MOCK_LIST \
- MOCK(FPSENSOR)
+ MOCK(FPSENSOR) \
+ MOCK(TIMER)