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

Unified Diff: source/test/cintltst/cmsgtst.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/cmsccoll.c ('k') | source/test/cintltst/cnmdptst.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/test/cintltst/cmsgtst.c
diff --git a/source/test/cintltst/cmsgtst.c b/source/test/cintltst/cmsgtst.c
index a1351440b1160f3bf8bb781293d86928c4b1ddd5..38fcf2c0220eeebf95a3019b25cea294abf12593 100644
--- a/source/test/cintltst/cmsgtst.c
+++ b/source/test/cintltst/cmsgtst.c
@@ -1,6 +1,6 @@
/********************************************************************
* COPYRIGHT:
- * Copyright (c) 1997-2013, International Business Machines Corporation and
+ * Copyright (c) 1997-2014, International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************
*
@@ -27,8 +27,7 @@
#include "cintltst.h"
#include "cmsgtst.h"
#include "cformtst.h"
-
-#define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
+#include "cmemory.h"
static const char* const txt_testCasePatterns[] = {
"Quotes '', '{', a {0,number,integer} '{'0}",
@@ -1128,7 +1127,7 @@ static void TestMessageWithUnusedArgNumber() {
U_STRING_INIT(pattern, "abc {1} def", 11);
U_STRING_INIT(expected, "abc y def", 9);
- length = u_formatMessage("en", pattern, -1, result, LENGTHOF(result), &errorCode, x, y);
+ length = u_formatMessage("en", pattern, -1, result, UPRV_LENGTHOF(result), &errorCode, x, y);
if (U_FAILURE(errorCode) || length != u_strlen(expected) || u_strcmp(result, expected) != 0) {
log_err("u_formatMessage(pattern with only {1}, 2 args) failed: result length %d, UErrorCode %s \n",
(int)length, u_errorName(errorCode));
« no previous file with comments | « source/test/cintltst/cmsccoll.c ('k') | source/test/cintltst/cnmdptst.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698