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