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

Unified Diff: source/test/cintltst/spreptst.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/sorttest.c ('k') | source/test/cintltst/trie2test.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/test/cintltst/spreptst.c
diff --git a/source/test/cintltst/spreptst.c b/source/test/cintltst/spreptst.c
index fc3a9c4e7bebd4e829b57f7308abd6454bc5ff3c..92d483809aa5571d9168b1521fc18428948320cb 100644
--- a/source/test/cintltst/spreptst.c
+++ b/source/test/cintltst/spreptst.c
@@ -1,7 +1,7 @@
/*
*******************************************************************************
*
- * Copyright (C) 2003-2010, International Business Machines
+ * Copyright (C) 2003-2014, International Business Machines
* Corporation and others. All Rights Reserved.
*
*******************************************************************************
@@ -25,9 +25,6 @@
#include "cintltst.h"
#include "nfsprep.h"
-
-#define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
-
void addUStringPrepTest(TestNode** root);
void doStringPrepTest(const char* binFileName, const char* txtFileName,
int32_t options, UErrorCode* errorCode);
@@ -444,7 +441,7 @@ Test_nfs4_mixed_prep(void){
char src[MAX_BUFFER_SIZE];
int32_t srcLen;
- for(i=0; i< LENGTHOF(mixed_prep_data); i++){
+ for(i=0; i< UPRV_LENGTHOF(mixed_prep_data); i++){
int32_t destLen=0;
char* dest = NULL;
UErrorCode status = U_ZERO_ERROR;
@@ -761,7 +758,7 @@ static void TestStringPrepProfiles(void) {
int32_t i, testNum = 0;
UStringPrepProfile *sprep = NULL;
- for (i = 0; i < LENGTHOF(profile_test_case); i++) {
+ for (i = 0; i < UPRV_LENGTHOF(profile_test_case); i++) {
if (uprv_strstr(profile_test_case[i], "RFC")) {
if (sprep != NULL) {
usprep_close(sprep);
« no previous file with comments | « source/test/cintltst/sorttest.c ('k') | source/test/cintltst/trie2test.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698