summaryrefslogtreecommitdiff
path: root/test/fpsensor.mocklist
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@chromium.org>2019-09-23 16:04:20 -0700
committerCommit Bot <commit-bot@chromium.org>2020-02-07 21:27:04 +0000
commit1f5cc901ecc4026ebce41d4eeca602875ad7f4b6 (patch)
tree2c726c1f4096353e7dfa748197683b090ff678e5 /test/fpsensor.mocklist
parentf74a01dc024fea492d970300c679aa6acaf2cacc (diff)
downloadchrome-ec-1f5cc901ecc4026ebce41d4eeca602875ad7f4b6.tar.gz
fpsensor: Refactor fpsensor tests into separate binaries
Using separate test binaries helps to prevent state from one set of tests accidentally leaking into other tests. Ideally all unit tests should be completely independent. Since there's a lot of global state in the fpsensor code the separate test binaries should help prevent the state from leaking across tests as we continue to add more. Also, by having a 1:1 correspondence between test binaries and test files, it's clearer what file (and functionality) each set of tests is targeting. BRANCH=none BUG=none TEST=make buildall -j Change-Id: I937a5ffebfe61aa711efbbc2467d15d514fcfbae Signed-off-by: Tom Hughes <tomhughes@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1832748 Commit-Queue: Yicheng Li <yichengli@chromium.org> Tested-by: Yicheng Li <yichengli@chromium.org> Reviewed-by: Yicheng Li <yichengli@chromium.org>
Diffstat (limited to 'test/fpsensor.mocklist')
-rw-r--r--test/fpsensor.mocklist2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/fpsensor.mocklist b/test/fpsensor.mocklist
index 0c0fbcc0a7..990dd92c45 100644
--- a/test/fpsensor.mocklist
+++ b/test/fpsensor.mocklist
@@ -6,5 +6,7 @@
#define CONFIG_TEST_MOCK_LIST \
MOCK(FP_SENSOR) \
MOCK(FPSENSOR_DETECT) \
+ MOCK(FPSENSOR_STATE) \
MOCK(MKBP_EVENTS) \
+ MOCK(ROLLBACK) \
MOCK(TIMER)