mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-24 18:25:10 +00:00
Remaining unit tests for rollback_index.c
BUG=chromium-os:17564 TEST=make && make runtests Change-Id: If2fbfb788bc3199603c8646e8f1c9e061199bc6f Reviewed-on: http://gerrit.chromium.org/gerrit/6832 Reviewed-by: Bill Richardson <wfrichar@chromium.org> Tested-by: Randall Spangler <rspangler@chromium.org>
This commit is contained in:
@@ -12,6 +12,14 @@
|
||||
#include "utility.h"
|
||||
#include "vboot_api.h"
|
||||
|
||||
#ifdef ROLLBACK_UNITTEST
|
||||
/* Compiling for unit test, so we need the real implementations of
|
||||
* rollback functions. The unit test mocks the underlying tlcl
|
||||
* functions, so this is ok to run on the host. */
|
||||
#undef CHROMEOS_ENVIRONMENT
|
||||
#undef DISABLE_ROLLBACK_TPM
|
||||
#endif
|
||||
|
||||
static int g_rollback_recovery_mode = 0;
|
||||
|
||||
/* disable MSVC warning on const logical expression (as in } while(0);) */
|
||||
|
||||
Reference in New Issue
Block a user