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

Unified Diff: source/test/cintltst/usettest.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/uregiontest.c ('k') | source/test/cintltst/utf16tst.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/test/cintltst/usettest.c
diff --git a/source/test/cintltst/usettest.c b/source/test/cintltst/usettest.c
index 6e321a3629421be687c85b8c822d08f5bc2bbc44..32623a4c9018bb706ea81f8b51fab2d3d399fb77 100644
--- a/source/test/cintltst/usettest.c
+++ b/source/test/cintltst/usettest.c
@@ -1,17 +1,16 @@
/*
**********************************************************************
-* Copyright (c) 2002-2009, International Business Machines
+* Copyright (c) 2002-2014, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
*/
#include "unicode/uset.h"
#include "unicode/ustring.h"
#include "cintltst.h"
+#include "cmemory.h"
#include <stdlib.h>
#include <string.h>
-#define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
-
#define TEST(x) addTest(root, &x, "uset/" # x)
static void TestAPI(void);
@@ -492,7 +491,7 @@ TestSerialized() {
return;
}
- length=uset_serialize(set, buffer, LENGTHOF(buffer), &errorCode);
+ length=uset_serialize(set, buffer, UPRV_LENGTHOF(buffer), &errorCode);
if(U_FAILURE(errorCode)) {
log_err("unable to uset_serialize([:Cf:]) - %s\n", u_errorName(errorCode));
uset_close(set);
« no previous file with comments | « source/test/cintltst/uregiontest.c ('k') | source/test/cintltst/utf16tst.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698