diff options
author | Randall Spangler <rspangler@chromium.org> | 2011-08-26 12:53:16 -0700 |
---|---|---|
committer | Randall Spangler <rspangler@chromium.org> | 2011-08-26 14:15:26 -0700 |
commit | cb3313e8cb6a95e5ad02860222fed18db82b37af (patch) | |
tree | be58c53d790ea79516445f922bec04c6ab087ddc /tests/test_common.h | |
parent | c0911e27b93eae772088ed09d7a41561b7a5b0b6 (diff) | |
download | vboot-cb3313e8cb6a95e5ad02860222fed18db82b37af.tar.gz |
Partial unit tests for rollback_index
BUG=chromium-os:17564
TEST=make && make runtests
Change-Id: I8ea6bcc15f277e10c5b8539f2ea19ad90be34889
Reviewed-on: http://gerrit.chromium.org/gerrit/6770
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-by: Stefan Reinauer <reinauer@chromium.org>
Tested-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'tests/test_common.h')
-rw-r--r-- | tests/test_common.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/test_common.h b/tests/test_common.h index 532e7b2f..47ffa2a4 100644 --- a/tests/test_common.h +++ b/tests/test_common.h @@ -17,11 +17,17 @@ int TEST_EQ(int result, int expected_result, char* testname); * Also update the global gTestSuccess flag if test fails. */ int TEST_NEQ(int result, int not_expected_result, char* testname); -/* Return 1 if result is equal to expected_result, else return 0. - * Also update the global gTestSuccess flag if test fails. */ +/* Return 1 if result pointer is equal to expected_result pointer, + * else return 0. Does not check pointer contents, only the pointer + * itself. Also update the global gTestSuccess flag if test fails. */ int TEST_PTR_EQ(const void* result, const void* expected_result, char* testname); +/* Return 1 if result string is equal to expected_result string, + * else return 0. Also update the global gTestSuccess flag if test fails. */ +int TEST_STR_EQ(const char* result, const char* expected_result, + char* testname); + /* ANSI Color coding sequences. * * Don't use \e as MSC does not recognize it as a valid escape sequence. |