]> git.saurik.com Git - apple/icu.git/blame - icuSources/test/cintltst/creststn.h
ICU-64260.0.1.tar.gz
[apple/icu.git] / icuSources / test / cintltst / creststn.h
CommitLineData
f3c0d7a5
A
1// © 2016 and later: Unicode, Inc. and others.
2// License & terms of use: http://www.unicode.org/copyright.html
b75a7d8f
A
3/********************************************************************
4 * COPYRIGHT:
57a6839d 5 * Copyright (c) 1997-2013, International Business Machines Corporation and
b75a7d8f
A
6 * others. All Rights Reserved.
7 ********************************************************************/
8/***************************************************************************
9*
10* File CRESTST.H
11*
12* Modification History:
13* Name Date Description
14* Madhu Katragadda 05/09/2000 Ported Tests for New ResourceBundle API
15* Madhu Katragadda 05/24/2000 Added new tests to test RES_BINARY for collationElements
16*************************************************************************************************
17*/
18#ifndef _CRESTSTN
19#define _CRESTSTN
f3c0d7a5
A
20
21#include "unicode/utypes.h"
22#include "unicode/ures.h"
23
b75a7d8f
A
24/* C TEST FOR NEW RESOURCEBUNDLE API*/
25#include "cintltst.h"
26
73c04bcf
A
27/*
28 * Test wrapper for ures_getStringXYZ(), for testing other variants of
29 * these functions as well.
30 * If index>=0, calls ures_getStringByIndex().
31 * If key!=NULL, calls ures_getStringByKey().
32 */
33extern const UChar *
34tres_getString(const UResourceBundle *resB,
35 int32_t index, const char *key,
36 int32_t *length,
37 UErrorCode *status);
b75a7d8f
A
38
39void addNEWResourceBundleTest(TestNode**);
40
41/**
42*Perform several extensive tests using the subtest routine testTag
43*/
44static void TestResourceBundles(void);
45/**
46* Test construction of ResourceBundle accessing a custom test resource-file
47**/
48static void TestConstruction1(void);
49
50static void TestAliasConflict(void);
51
52static void TestFallback(void);
53
57a6839d
A
54static void TestPreventFallback(void);
55
b75a7d8f
A
56static void TestBinaryCollationData(void);
57
58static void TestNewTypes(void);
59
60static void TestEmptyTypes(void);
61
62static void TestAPI(void);
63
64static void TestErrorConditions(void);
65
66static void TestGetVersion(void);
67
374ca955
A
68static void TestGetVersionColl(void);
69
b75a7d8f
A
70static void TestEmptyBundle(void);
71
72static void TestDirectAccess(void);
73
51004dcb
A
74static void TestTicket9804(void);
75
b75a7d8f
A
76static void TestResourceLevelAliasing(void);
77
78static void TestErrorCodes(void);
79
374ca955
A
80static void TestJB3763(void);
81
73c04bcf
A
82static void TestXPath(void);
83
84static void TestStackReuse(void);
85
b75a7d8f
A
86/**
87* extensive subtests called by TestResourceBundles
88**/
89static UBool testTag(const char* frag, UBool in_Root, UBool in_te, UBool in_te_IN);
90
91static void record_pass(void);
92static void record_fail(void);
93
94
95#endif