summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Massey <aaronmassey@google.com>2022-09-29 16:33:24 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-09-30 19:58:36 +0000
commita40a4736a6fc5930e7d00d4367ddf86137b273d9 (patch)
tree657426c2ac81b9f23853e9c6a61795c0c8dfee52
parente1dc4212a01c5c702ec61a119186c8365d3de3e7 (diff)
downloadchrome-ec-a40a4736a6fc5930e7d00d4367ddf86137b273d9.tar.gz
test: Add include guard to test_mocks.h
The test_mocks header didn't have its own include guard, causing compilation problems if included in a shared test header. Add an include guard. BRANCH=none BUG=none TEST=twister -i -s zephyr/test/drivers/drivers.host_cmd Signed-off-by: Aaron Massey <aaronmassey@google.com> Change-Id: Icd1e0f35b28e0b970462fd5c5aadaec19ca59a7f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3929539 Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
-rw-r--r--zephyr/test/drivers/common/include/test/drivers/test_mocks.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/zephyr/test/drivers/common/include/test/drivers/test_mocks.h b/zephyr/test/drivers/common/include/test/drivers/test_mocks.h
index 8e481edef8..25217dfffe 100644
--- a/zephyr/test/drivers/common/include/test/drivers/test_mocks.h
+++ b/zephyr/test/drivers/common/include/test/drivers/test_mocks.h
@@ -3,6 +3,9 @@
* found in the LICENSE file.
*/
+#ifndef __TEST_DRIVERS_TEST_MOCKS_H
+#define __TEST_DRIVERS_TEST_MOCKS_H
+
#include <zephyr/fff.h>
/*
@@ -112,3 +115,5 @@ DECLARE_FAKE_VOID_FUNC(assert_post_action, const char *, unsigned int);
/* Mocks for common/lid_angle.c */
DECLARE_FAKE_VOID_FUNC(lid_angle_peripheral_enable, int);
+
+#endif /* __TEST_DRIVERS_TEST_MOCKS_H */