Add tests for vboot_reference stateful_util.c

BUG=chromium-os:17564
TEST=make && make runtests

Change-Id: I5d55be2dfead0c5d7af72841cbd6c65485685cd6
Reviewed-on: http://gerrit.chromium.org/gerrit/6596
Reviewed-by: Stefan Reinauer <reinauer@chromium.org>
Tested-by: Randall Spangler <rspangler@chromium.org>
This commit is contained in:
Randall Spangler
2011-08-24 12:07:43 -07:00
parent 0a9977e161
commit 1f5d53f7bd
7 changed files with 345 additions and 8 deletions

View File

@@ -9,6 +9,12 @@
#include "utility.h"
void StatefulInit(MemcpyState* state, void* buf, uint64_t len) {
state->remaining_buf = buf;
state->remaining_len = len;
state->overrun = 0;
}
void* StatefulSkip(MemcpyState* state, uint64_t len) {
if (state->overrun)
return NULL;