summaryrefslogtreecommitdiff
path: root/test/fpsensor.mocklist
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@chromium.org>2019-06-05 14:28:00 -0700
committerCommit Bot <commit-bot@chromium.org>2019-09-28 17:00:32 +0000
commit3c1215dadc3a279925a17f55bdf0cb8863c41626 (patch)
tree5eee8e879aed7545f7d860119d5867c5455f730f /test/fpsensor.mocklist
parent19b8749c0915278171acfd83495d5a73bb359385 (diff)
downloadchrome-ec-3c1215dadc3a279925a17f55bdf0cb8863c41626.tar.gz
fpsensor: Deinit the sensor before clearing the context
The opaque context contains sensor state that we can't nuke from underneath the sensor library. Calling fp_sensor_deinit will release this context and allow us to safely clear the context. BRANCH=none BUG=b:124773209 TEST="fpenroll" followed by "fpclear" in the FP console TEST=On nocturne, in the UI, enroll finger, log out, and log in => then lock and unlock with finger TEST=make buildall -j Change-Id: I3e25bdf7eaaf99f3801547e11a6c524f924f4726 Signed-off-by: Tom Hughes <tomhughes@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1647294 Reviewed-by: Nicolas Norvez <norvez@chromium.org> Commit-Queue: Yicheng Li <yichengli@chromium.org> Tested-by: Yicheng Li <yichengli@chromium.org>
Diffstat (limited to 'test/fpsensor.mocklist')
-rw-r--r--test/fpsensor.mocklist7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/fpsensor.mocklist b/test/fpsensor.mocklist
new file mode 100644
index 0000000000..9bed932526
--- /dev/null
+++ b/test/fpsensor.mocklist
@@ -0,0 +1,7 @@
+/* Copyright 2019 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+ #define CONFIG_TEST_MOCK_LIST \
+ MOCK(FPSENSOR)