summaryrefslogtreecommitdiff
path: root/tests/vb2_auxfw_sync_tests.c
diff options
context:
space:
mode:
authorJoel Kitching <kitching@google.com>2020-01-10 02:31:11 +0800
committerCommit Bot <commit-bot@chromium.org>2020-01-11 03:15:49 +0000
commitcd08c7797d8281cb10c7721599ddc5602ab359e3 (patch)
tree61a428384a71db78d26751dde532554fe21be103 /tests/vb2_auxfw_sync_tests.c
parent0290303b484de6dc9d30f0f339e9183d854d47df (diff)
downloadvboot-cd08c7797d8281cb10c7721599ddc5602ab359e3.tar.gz
vboot: remove VBSD from tests that don't need it
Also clean up a few lines setting unneeded flags and fields in tests, and add conditionals to check for VBSD in vboot_display.c. BUG=b:124141368, chromium:1038260 TEST=make clean && make runtests BRANCH=none Change-Id: I84438d00777516354529b1e6ee4d04f7947ff971 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1992856 Reviewed-by: Yu-Ping Wu <yupingso@chromium.org> Tested-by: Joel Kitching <kitching@chromium.org> Commit-Queue: Joel Kitching <kitching@chromium.org>
Diffstat (limited to 'tests/vb2_auxfw_sync_tests.c')
-rw-r--r--tests/vb2_auxfw_sync_tests.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/vb2_auxfw_sync_tests.c b/tests/vb2_auxfw_sync_tests.c
index 3ce0cd7f..2ed72dde 100644
--- a/tests/vb2_auxfw_sync_tests.c
+++ b/tests/vb2_auxfw_sync_tests.c
@@ -23,9 +23,6 @@
#include "vboot_struct.h"
/* Mock data */
-static uint8_t shared_data[VB_SHARED_DATA_MIN_SIZE];
-static VbSharedDataHeader *shared = (VbSharedDataHeader *)shared_data;
-
static struct vb2_context *ctx;
static uint8_t workbuf[VB2_KERNEL_WORKBUF_RECOMMENDED_SIZE]
__attribute__((aligned(VB2_WORKBUF_ALIGN)));
@@ -52,13 +49,10 @@ static void ResetMocks(void)
vb2_nv_init(ctx);
sd = vb2_get_sd(ctx);
- sd->vbsd = shared;
sd->flags |= VB2_SD_FLAG_DISPLAY_AVAILABLE;
memset(&gbb, 0, sizeof(gbb));
- memset(&shared_data, 0, sizeof(shared_data));
-
memset(screens_displayed, 0, sizeof(screens_displayed));
screens_count = 0;