summaryrefslogtreecommitdiff
path: root/test/test_config.h
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2022-06-10 20:20:26 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-06-13 21:49:39 +0000
commitb8544e962b698979bb81ef06f4a8e3dcdf654a35 (patch)
tree4cd83753209875ad3c2dab8d352da335ab5d61c0 /test/test_config.h
parent606ff61be661ec90e16110360790dd1abb13e205 (diff)
downloadchrome-ec-b8544e962b698979bb81ef06f4a8e3dcdf654a35.tar.gz
base64: add implementation for encoding binary into base64
In the Cr50 tree there is no really output devices other than console where base64 encoding output could be sent, and there is no use for decoding function yet. Add the encoding function implementation, make it possible to send output to console by default and optionally to a passed in function. Add test to verify proper encoding. BUG=b:234745585 TEST='make run-base64' succeeds. Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Change-Id: Ibc10681632bc649320d602e319e4f634b4b3a1d1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3701141 Reviewed-by: Mary Ruthven <mruthven@chromium.org> Reviewed-by: Vadim Sukhomlinov <sukhomlinov@chromium.org>
Diffstat (limited to 'test/test_config.h')
-rw-r--r--test/test_config.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_config.h b/test/test_config.h
index f7b222302f..493d255626 100644
--- a/test/test_config.h
+++ b/test/test_config.h
@@ -27,6 +27,10 @@
#define CONFIG_BASE32
#endif
+#ifdef TEST_BASE64
+#define CONFIG_BASE64
+#endif
+
#ifdef TEST_FLASH_LOG
#define CONFIG_CRC8
#define CONFIG_FLASH_ERASED_VALUE32 (-1U)