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

Unified Diff: source/test/intltest/strcase.cpp

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/intltest/ssearch.cpp ('k') | source/test/intltest/svccoll.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/test/intltest/strcase.cpp
diff --git a/source/test/intltest/strcase.cpp b/source/test/intltest/strcase.cpp
index a35d5532782707218cc8296b18681731bfbc148b..01d8db9bd1e4195e0b01ece9def20d2c33b2a581 100644
--- a/source/test/intltest/strcase.cpp
+++ b/source/test/intltest/strcase.cpp
@@ -1,7 +1,7 @@
/*
*******************************************************************************
*
-* Copyright (C) 2002-2013, International Business Machines
+* Copyright (C) 2002-2014, International Business Machines
* Corporation and others. All Rights Reserved.
*
*******************************************************************************
@@ -26,8 +26,7 @@
#include "ucase.h"
#include "ustrtest.h"
#include "unicode/tstdtmod.h"
-
-#define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
+#include "cmemory.h"
StringCaseTest::~StringCaseTest() {}
@@ -491,7 +490,7 @@ StringCaseTest::TestCasing() {
// or even just { 0 } as boundaries.
static const UChar rules[] = { 0x2e, 0x2a, 0x3b }; // ".*;"
UParseError parseError;
- iter.adoptInstead(ubrk_openRules(rules, LENGTHOF(rules), NULL, 0, &parseError, &status));
+ iter.adoptInstead(ubrk_openRules(rules, UPRV_LENGTHOF(rules), NULL, 0, &parseError, &status));
}
}
#endif
« no previous file with comments | « source/test/intltest/ssearch.cpp ('k') | source/test/intltest/svccoll.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698