vboot2: convert structs outside of individual test funcs

This reduces duplicated code in the test functions.  (Well, not so
much duplicated code yet, but it will when more tests are added in the
next CL.  And it's easier to review this piece separately from the
added tests.)

BUG=chromium:423882
BRANCH=none
TEST=VBOOT2=1 make runtests

Change-Id: I863cdfd44d35b55df9799fd45a6cf8e40dd1ad21
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/226925
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
1 file changed