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

Unified Diff: source/test/cintltst/cgendtst.c

Issue 845603002: Update ICU to 54.1 step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@master
Patch Set: remove unusued directories Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/test/cintltst/cg7coll.c ('k') | source/test/cintltst/citertst.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/test/cintltst/cgendtst.c
diff --git a/source/test/cintltst/cgendtst.c b/source/test/cintltst/cgendtst.c
index ff3131fefefdc33e3a64823c8e4441e15d6a9d9a..0e7d54445b16420c843ddcc84f75498afbec160c 100644
--- a/source/test/cintltst/cgendtst.c
+++ b/source/test/cintltst/cgendtst.c
@@ -1,6 +1,6 @@
/********************************************************************
* COPYRIGHT:
- * Copyright (c) 1997-2012, International Business Machines Corporation and
+ * Copyright (c) 1997-2014, International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************/
/********************************************************************************
@@ -12,6 +12,7 @@
/* C API TEST FOR GENDER INFO */
#include "unicode/utypes.h"
+#include "cmemory.h"
#if !UCONFIG_NO_FORMATTING
@@ -20,8 +21,6 @@
static const UGender kAllFemale[] = {UGENDER_FEMALE, UGENDER_FEMALE};
-#define LENGTHOF(array) (int32_t)(sizeof(array) / sizeof((array)[0]))
-
void addGendInfoForTest(TestNode** root);
static void TestGenderInfo(void);
@@ -40,7 +39,7 @@ static void TestGenderInfo(void) {
log_err_status(status, "Fail to create UGenderInfo - %s (Are you missing data?)", u_errorName(status));
return;
}
- actual = ugender_getListGender(actual_gi, kAllFemale, LENGTHOF(kAllFemale), &status);
+ actual = ugender_getListGender(actual_gi, kAllFemale, UPRV_LENGTHOF(kAllFemale), &status);
if (U_FAILURE(status)) {
log_err("Fail to get gender of list - %s\n", u_errorName(status));
return;
« no previous file with comments | « source/test/cintltst/cg7coll.c ('k') | source/test/cintltst/citertst.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698