Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Side by Side Diff: tests/test_common.h

Issue 2809037: Make vboot_reference build in MSVC command line environment. (Closed) Base URL: ssh://git@chromiumos-git/vboot_reference.git
Patch Set: Integrated trunk changes. Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tests/sha_tests.c ('k') | tests/test_common.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 * 4 *
5 */ 5 */
6 6
7 #ifndef VBOOT_REFERENCE_TEST_COMMON_H_ 7 #ifndef VBOOT_REFERENCE_TEST_COMMON_H_
8 #define VBOOT_REFERENCE_TEST_COMMON_H_ 8 #define VBOOT_REFERENCE_TEST_COMMON_H_
9 9
10 #include <stdint.h>
11
12 extern int gTestSuccess; 10 extern int gTestSuccess;
13 11
14 /* Return 1 if result is equal to expected_result, else return 0. 12 /* Return 1 if result is equal to expected_result, else return 0.
15 * Also update the global gTestSuccess flag if test fails. */ 13 * Also update the global gTestSuccess flag if test fails. */
16 int TEST_EQ(int result, int expected_result, char* testname); 14 int TEST_EQ(int result, int expected_result, char* testname);
17 /* Return 0 if result is equal to not_expected_result, else return 1. 15 /* Return 0 if result is equal to not_expected_result, else return 1.
18 * Also update the global gTestSuccess flag if test fails. */ 16 * Also update the global gTestSuccess flag if test fails. */
19 int TEST_NEQ(int result, int not_expected_result, char* testname); 17 int TEST_NEQ(int result, int not_expected_result, char* testname);
20 18
19 /* ANSI Color coding sequences.
20 *
21 * Don't use \e as MSC does not recognize it as a valid escape sequence.
22 */
23 #define COL_GREEN "\x1b[1;32m"
24 #define COL_RED "\x1b[0;31m"
25 #define COL_STOP "\x1b[m"
26
21 #endif /* VBOOT_REFERENCE_TEST_COMMON_H_ */ 27 #endif /* VBOOT_REFERENCE_TEST_COMMON_H_ */
OLDNEW
« no previous file with comments | « tests/sha_tests.c ('k') | tests/test_common.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698