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/utmstest.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/utf8tst.c ('k') | source/test/cintltst/utransts.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/test/cintltst/utmstest.c
diff --git a/source/test/cintltst/utmstest.c b/source/test/cintltst/utmstest.c
index 9213077f8fa30026c811d572e1b25770885eb790..156c8e8ccef25317d6f412a93120c5b3e4d66acd 100644
--- a/source/test/cintltst/utmstest.c
+++ b/source/test/cintltst/utmstest.c
@@ -1,6 +1,6 @@
/*
****************************************************************************
- * Copyright (c) 1997-2013, International Business Machines Corporation and *
+ * Copyright (c) 1997-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
****************************************************************************
*/
@@ -13,12 +13,11 @@
#include "unicode/ucal.h"
#include "cintltst.h"
+#include "cmemory.h"
#include <stdlib.h>
#include <time.h>
-#define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
-
#define LOOP_COUNT 10000
static void TestAPI(void);
@@ -461,7 +460,7 @@ TestDotNet() {
ucal_close(cal);
return;
}
- for(i = 0; i < LENGTHOF(dotNetDateTimeTicks); ++i) {
+ for(i = 0; i < UPRV_LENGTHOF(dotNetDateTimeTicks); ++i) {
/* Test conversion from .Net/Universal time to ICU time. */
dt = dotNetDateTimeTicks + i;
millis = utmscale_toInt64(dt->ticks, UDTS_ICU4C_TIME, &errorCode);
« no previous file with comments | « source/test/cintltst/utf8tst.c ('k') | source/test/cintltst/utransts.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698