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