diff options
Diffstat (limited to 'tests/test_common.h')
-rw-r--r-- | tests/test_common.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/test_common.h b/tests/test_common.h index ed3e6039..532e7b2f 100644 --- a/tests/test_common.h +++ b/tests/test_common.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. +/* Copyright (c) 2011 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * @@ -12,10 +12,16 @@ 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); +/* Return 1 if result is equal to expected_result, else return 0. + * Also update the global gTestSuccess flag if test fails. */ +int TEST_PTR_EQ(const void* result, const void* expected_result, + char* testname); + /* ANSI Color coding sequences. * * Don't use \e as MSC does not recognize it as a valid escape sequence. |