]>
Commit | Line | Data |
---|---|---|
1 | /******************************************************************** | |
2 | * Copyright (c) 2004, International Business Machines Corporation | |
3 | * and others. All Rights Reserved. | |
4 | ********************************************************************/ | |
5 | ||
6 | /** | |
7 | * CollationServiceTest tests registration of collators. | |
8 | */ | |
9 | ||
10 | #ifndef _SVCCOLL | |
11 | #define _SVCCOLL | |
12 | ||
13 | #include "unicode/utypes.h" | |
14 | ||
15 | #if !UCONFIG_NO_COLLATION | |
16 | ||
17 | #include "intltest.h" | |
18 | ||
19 | U_NAMESPACE_BEGIN | |
20 | ||
21 | class StringEnumeration; | |
22 | ||
23 | class CollationServiceTest: public IntlTest { | |
24 | public: | |
25 | void runIndexedTest(int32_t index, UBool exec, const char* &name, char* /*par = NULL */); | |
26 | ||
27 | void TestRegister(void); | |
28 | void TestRegisterFactory(void); | |
29 | void TestSeparateTree(); | |
30 | ||
31 | private: | |
32 | int32_t checkStringEnumeration(const char* msg, | |
33 | StringEnumeration& iter, | |
34 | const char** expected, | |
35 | int32_t expectedCount); | |
36 | ||
37 | int32_t checkAvailable(const char* msg); | |
38 | }; | |
39 | ||
40 | U_NAMESPACE_END | |
41 | ||
42 | /* #if !UCONFIG_NO_COLLATION */ | |
43 | #endif | |
44 | ||
45 | /* #ifndef _SVCCOLL */ | |
46 | #endif |