diff options
author | Tom Hughes <tomhughes@chromium.org> | 2022-08-26 15:30:03 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-04-26 16:03:31 +0000 |
commit | 955bbf2f9f9f04e1a8167c14af34e267635dfd2f (patch) | |
tree | 3adca783ae91413dbde6cce57b0352c182de788e /test | |
parent | cb0eaa47f7a195340a0ef8ea427c3cf050774562 (diff) | |
download | chrome-ec-955bbf2f9f9f04e1a8167c14af34e267635dfd2f.tar.gz |
test/fpsensor_crypto: Convert to C++
BRANCH=none
BUG=b:234181908
TEST=make run-fpsensor_crypto
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: I26e7b7bcc8f2a7ee7d1ba19cb8cd8c0f7e22b2cf
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3860408
Reviewed-by: Yi Chou <yich@google.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/fpsensor_crypto.cc (renamed from test/fpsensor_crypto.c) | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/test/fpsensor_crypto.c b/test/fpsensor_crypto.cc index 238f2b3452..275a1739b6 100644 --- a/test/fpsensor_crypto.c +++ b/test/fpsensor_crypto.cc @@ -3,22 +3,26 @@ * found in the LICENSE file. */ +#include "compile_time_macros.h" +#include "fpsensor_crypto.h" +#include "fpsensor_state.h" + +extern "C" { #include "builtin/assert.h" #include "common.h" #include "ec_commands.h" -#include "fpsensor_crypto.h" -#include "fpsensor_state.h" #include "mock/fpsensor_crypto_mock.h" #include "mock/fpsensor_state_mock.h" #include "mock/rollback_mock.h" #include "mock/timer_mock.h" #include "test_util.h" #include "util.h" - -#include <stdbool.h> +} extern int get_ikm(uint8_t *ikm); +#include <stdbool.h> + static const uint8_t fake_positive_match_salt[] = { 0x04, 0x1f, 0x5a, 0xac, 0x5f, 0x79, 0x10, 0xaf, 0x04, 0x1d, 0x46, 0x3a, 0x5f, 0x08, 0xee, 0xcb, |