]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/test/cintltst/creststn.h
ICU-59173.0.1.tar.gz
[apple/icu.git] / icuSources / test / cintltst / creststn.h
index 3f5392327b8faeea28980dd4d914c35b81d6e3fd..4760d3a5a75ebfef0030dfead6333902dc2d8f11 100644 (file)
@@ -1,6 +1,8 @@
+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
 /********************************************************************
  * COPYRIGHT: 
- * Copyright (c) 1997-2004, International Business Machines Corporation and
+ * Copyright (c) 1997-2013, International Business Machines Corporation and
  * others. All Rights Reserved.
  ********************************************************************/
 /***************************************************************************
 */
 #ifndef _CRESTSTN
 #define _CRESTSTN
-/* C TEST FOR NEW RESOURCEBUNDLE API*/
-#include "cintltst.h"
 
+#include "unicode/utypes.h"
+#include "unicode/ures.h"
 
+/* C TEST FOR NEW RESOURCEBUNDLE API*/
+#include "cintltst.h"
 
+/*
+ * Test wrapper for ures_getStringXYZ(), for testing other variants of
+ * these functions as well.
+ * If index>=0, calls ures_getStringByIndex().
+ * If key!=NULL, calls ures_getStringByKey().
+ */
+extern const UChar *
+tres_getString(const UResourceBundle *resB,
+               int32_t index, const char *key,
+               int32_t *length,
+               UErrorCode *status);
 
 void addNEWResourceBundleTest(TestNode**);
 
@@ -36,6 +51,8 @@ static void TestAliasConflict(void);
 
 static void TestFallback(void);
 
+static void TestPreventFallback(void);
+
 static void TestBinaryCollationData(void);
 
 static void TestNewTypes(void);
@@ -54,12 +71,18 @@ static void TestEmptyBundle(void);
 
 static void TestDirectAccess(void);
 
+static void TestTicket9804(void);
+
 static void TestResourceLevelAliasing(void);
 
 static void TestErrorCodes(void);
 
 static void TestJB3763(void);
 
+static void TestXPath(void);
+
+static void TestStackReuse(void);
+
 /**
 * extensive subtests called by TestResourceBundles
 **/