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

Unified Diff: source/test/intltest/tfsmalls.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/testidna.cpp ('k') | source/test/intltest/thcoll.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/test/intltest/tfsmalls.cpp
diff --git a/source/test/intltest/tfsmalls.cpp b/source/test/intltest/tfsmalls.cpp
index b32492f84d6aef5affe8f44c9bff1e1623e10bde..80bc1c578cfc390868d7acacab0a5461db7f43ff 100644
--- a/source/test/intltest/tfsmalls.cpp
+++ b/source/test/intltest/tfsmalls.cpp
@@ -1,7 +1,7 @@
/***********************************************************************
* COPYRIGHT:
- * Copyright (c) 1997-2012, International Business Machines Corporation
+ * Copyright (c) 1997-2014, International Business Machines Corporation
* and others. All Rights Reserved.
***********************************************************************/
@@ -11,6 +11,7 @@
#include "intltest.h"
#include "tfsmalls.h"
+#include "cmemory.h"
#include "unicode/msgfmt.h"
#include "unicode/choicfmt.h"
@@ -19,8 +20,6 @@
#include "unicode/fieldpos.h"
#include "unicode/fmtable.h"
-#define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
-
/*static UBool chkstatus( UErrorCode &status, char* msg = NULL )
{
UBool ok = (status == U_ZERO_ERROR);
@@ -255,7 +254,7 @@ void test_Formattable( void )
ucs,
ucs_ptr
};
- const int32_t ft_cnt = LENGTHOF(ftarray);
+ const int32_t ft_cnt = UPRV_LENGTHOF(ftarray);
Formattable ft_arr( ftarray, ft_cnt );
UnicodeString temp;
if ((ft_arr[0].getType() == Formattable::kDate) && (ft_arr[0].getDate() == 1.0)
« no previous file with comments | « source/test/intltest/testidna.cpp ('k') | source/test/intltest/thcoll.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698