summaryrefslogtreecommitdiff
path: root/firmware/lib
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2013-01-28 13:43:04 -0800
committerChromeBot <chrome-bot@google.com>2013-01-29 15:27:08 -0800
commit5a4e9fa03cf98e465f5c98721484bd2dcfe23db6 (patch)
tree69cd361abcb58b43f0c9d2804248db63fe1d8925 /firmware/lib
parentc8c8dfd90992808a91ce85110218cf1f78fd7f92 (diff)
downloadvboot-5a4e9fa03cf98e465f5c98721484bd2dcfe23db6.tar.gz
Add display tests
BUG=chromium-os:38139 BRANCH=none TEST=make runtests Change-Id: Ibfd3f5f2b7ac8871a99e5d8603baae17926ab972 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/42170 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'firmware/lib')
-rw-r--r--firmware/lib/include/vboot_display.h14
-rw-r--r--firmware/lib/vboot_display.c10
2 files changed, 16 insertions, 8 deletions
diff --git a/firmware/lib/include/vboot_display.h b/firmware/lib/include/vboot_display.h
index f8aa810b..d65d67c3 100644
--- a/firmware/lib/include/vboot_display.h
+++ b/firmware/lib/include/vboot_display.h
@@ -20,7 +20,21 @@ VbError_t VbCheckDisplayKey(VbCommonParams *cparams, uint32_t key,
VbNvContext *vncptr);
/* Internal functions, for unit testing */
+
+/**
+ * Return a description of the recovery reason code.
+ */
const char *RecoveryReasonString(uint8_t code);
+/**
+ * Return a fixed string representing the HWID.
+ */
+char *VbHWID(VbCommonParams *cparams);
+
+/**
+ * Get the number of localizations in the GBB bitmap data.
+ */
+VbError_t VbGetLocalizationCount(VbCommonParams *cparams, uint32_t *count);
+
#endif /* VBOOT_REFERENCE_VBOOT_DISPLAY_H_ */
diff --git a/firmware/lib/vboot_display.c b/firmware/lib/vboot_display.c
index 929cacc2..b081b385 100644
--- a/firmware/lib/vboot_display.c
+++ b/firmware/lib/vboot_display.c
@@ -16,10 +16,7 @@
static uint32_t disp_current_screen = VB_SCREEN_BLANK;
static uint32_t disp_width = 0, disp_height = 0;
-
-/* Get the number of localizations in the GBB bitmap data. */
-static VbError_t VbGetLocalizationCount(VbCommonParams* cparams,
- uint32_t* count) {
+VbError_t VbGetLocalizationCount(VbCommonParams *cparams, uint32_t *count) {
GoogleBinaryBlockHeader* gbb = (GoogleBinaryBlockHeader*)cparams->gbb_data;
BmpBlockHeader* hdr;
@@ -47,10 +44,7 @@ static VbError_t VbGetLocalizationCount(VbCommonParams* cparams,
return VBERROR_SUCCESS;
}
-
-
-/* Return a fixed string representing the HWID */
-static char *VbHWID(VbCommonParams* cparams) {
+char *VbHWID(VbCommonParams *cparams) {
GoogleBinaryBlockHeader* gbb = (GoogleBinaryBlockHeader*)cparams->gbb_data;
if (0 == gbb->hwid_size ||
gbb->hwid_offset > cparams->gbb_size ||