diff options
author | Yuval Peress <peress@google.com> | 2022-10-17 12:04:22 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-10-18 10:01:53 +0000 |
commit | 0d071906c5807082978aaeb3069485a22731e388 (patch) | |
tree | c78c20f0ad53cb1c57ca33e5ef60ca30ad468444 | |
parent | 60ace069e921158d7c651c5b396fc67347556f46 (diff) | |
download | chrome-ec-0d071906c5807082978aaeb3069485a22731e388.tar.gz |
test: cleanup
Add missing extern "C" in the test_state header and missing include
dependency in vboot_hash.c
BRANCH=none
BUG=none
TEST=twister
Signed-off-by: Yuval Peress <peress@google.com>
Change-Id: I8bf87e5974bdbcfc6645fc12dcbd778651f23718
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3960557
Commit-Queue: Tomasz Michalec <tmichalec@google.com>
Reviewed-by: Tomasz Michalec <tmichalec@google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
-rw-r--r-- | zephyr/test/drivers/common/include/test/drivers/test_state.h | 8 | ||||
-rw-r--r-- | zephyr/test/drivers/default/src/console_cmd/vboot_hash.c | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/zephyr/test/drivers/common/include/test/drivers/test_state.h b/zephyr/test/drivers/common/include/test/drivers/test_state.h index bea56224fc..98cf4a283e 100644 --- a/zephyr/test/drivers/common/include/test/drivers/test_state.h +++ b/zephyr/test/drivers/common/include/test/drivers/test_state.h @@ -6,6 +6,10 @@ #ifndef ZEPHYR_TEST_DRIVERS_INCLUDE_TEST_STATE_H_ #define ZEPHYR_TEST_DRIVERS_INCLUDE_TEST_STATE_H_ +#ifdef __cplusplus +extern "C" { +#endif + struct test_state { bool ec_app_main_run; }; @@ -14,4 +18,8 @@ bool drivers_predicate_pre_main(const void *state); bool drivers_predicate_post_main(const void *state); +#ifdef __cplusplus +} +#endif + #endif /* ZEPHYR_TEST_DRIVERS_INCLUDE_TEST_STATE_H_ */ diff --git a/zephyr/test/drivers/default/src/console_cmd/vboot_hash.c b/zephyr/test/drivers/default/src/console_cmd/vboot_hash.c index c723a4a232..b475f344c8 100644 --- a/zephyr/test/drivers/default/src/console_cmd/vboot_hash.c +++ b/zephyr/test/drivers/default/src/console_cmd/vboot_hash.c @@ -9,6 +9,7 @@ #include <zephyr/ztest.h> #include "console.h" +#include "flash.h" #include "printf.h" #include "sha256.h" #include "system.h" |