summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-08-26 05:46:00 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-08-26 21:18:47 +0000
commitf100d8d6fd13c10e86610802201750616d9e1621 (patch)
tree9ff65f523dfa6cd3dcfa7b3185a18e8d87e2c3a8 /include
parent5e29be445ab5555ad8f951310179fa23cda2b66b (diff)
downloadchrome-ec-f100d8d6fd13c10e86610802201750616d9e1621.tar.gz
zephyr: vstore: Add tests for vstore host command
Add coverage for the three host commands. This does not cover the init and sysjump behaviour. Update to use two slots so we can test non-trivial behaviour. BUG=b:236075794,b:236160558,b:236160563 BRANCH=none TEST=./twister -T zephyr/test/drivers/ -s drivers.default Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: I3aa9146b459033f32fb12d0d86ec44c214f0db63 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3858390 Reviewed-by: Jeremy Bettis <jbettis@chromium.org> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Diffstat (limited to 'include')
-rw-r--r--include/vstore.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/vstore.h b/include/vstore.h
new file mode 100644
index 0000000000..00b268652d
--- /dev/null
+++ b/include/vstore.h
@@ -0,0 +1,16 @@
+/* Copyright 2022 The ChromiumOS Authors.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef __CROS_EC_VSTORE_H
+#define __CROS_EC_VSTORE_H
+
+#ifdef TEST_BUILD
+
+/* Clear all vstore locks */
+void vstore_clear_lock(void);
+
+#endif /* TEST_BUILD */
+
+#endif /* __CROS_EC_VSTORE_H */