summaryrefslogtreecommitdiff
path: root/tests/test_common.h
diff options
context:
space:
mode:
authorGaurav Shah <gauravsh@chromium.org>2010-05-26 13:19:00 -0700
committerGaurav Shah <gauravsh@chromium.org>2010-05-26 13:19:00 -0700
commitbcd8f4a07c664d55b67d4e8dc35e362b50b376bd (patch)
tree2d6fdb4c147fd8e0a306e0098d8fad9fdbeb6e4b /tests/test_common.h
parent5fe021b4114e60ac1536f3d9c103c26875868794 (diff)
downloadvboot-bcd8f4a07c664d55b67d4e8dc35e362b50b376bd.tar.gz
Make kernel signature a part of the kernel preamble.
With this change, the kernel signature is a part of the preamble block (and therefore, used during preamble signature verification). BUG=670 TEST=image verification tests still pass. corrected splicing test expectations (and it passes). Review URL: http://codereview.chromium.org/2292001
Diffstat (limited to 'tests/test_common.h')
-rw-r--r--tests/test_common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_common.h b/tests/test_common.h
index d73dc0ea..c8404154 100644
--- a/tests/test_common.h
+++ b/tests/test_common.h
@@ -13,9 +13,13 @@
#include "kernel_image.h"
extern int gTestSuccess;
+
/* Return 1 if result is equal to expected_result, else return 0.
* Also update the global gTestSuccess flag if test fails. */
int TEST_EQ(int result, int expected_result, char* testname);
+/* Return 0 if result is equal to not_expected_result, else return 1.
+ * Also update the global gTestSuccess flag if test fails. */
+int TEST_NEQ(int result, int not_expected_result, char* testname);
/* Test firmware image generation functions. */
FirmwareImage* GenerateTestFirmwareImage(int algorithm,