1ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru/* 2ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru ********************************************************************** 354dcd9b6a06071f647dac967e9e267abb9410720Craig Cornelius * Copyright (C) 2005-2012, International Business Machines 4ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru * Corporation and others. All Rights Reserved. 5ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru ********************************************************************** 6ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru */ 7ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru 8ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru#ifndef __CSDETEST_H 9ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru#define __CSDETEST_H 10ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru 11ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru#include "unicode/utypes.h" 12ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru#include "unicode/unistr.h" 13ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru 14ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru#include "intltest.h" 15ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru 16ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queruclass CharsetDetectionTest: public IntlTest { 17ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Querupublic: 18ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru 19ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru CharsetDetectionTest(); 20ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru virtual ~CharsetDetectionTest(); 21ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru 22ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru virtual void runIndexedTest(int32_t index, UBool exec, const char* &name, char* par = NULL ); 23ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru 24ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru virtual void ConstructionTest(); 25ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru virtual void UTF8Test(); 26ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru virtual void UTF16Test(); 27ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru virtual void C1BytesTest(); 28ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru virtual void InputFilterTest(); 29ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru virtual void DetectionTest(); 3085bf2e2fbc60a9f938064abc8127d61da7d19882Claire Ho virtual void IBM424Test(); 3185bf2e2fbc60a9f938064abc8127d61da7d19882Claire Ho virtual void IBM420Test(); 3285bf2e2fbc60a9f938064abc8127d61da7d19882Claire Ho virtual void Ticket6394Test(); 3354dcd9b6a06071f647dac967e9e267abb9410720Craig Cornelius virtual void Ticket6954Test(); 34ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru 35ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queruprivate: 36ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru void checkEncoding(const UnicodeString &testString, 37ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru const UnicodeString &encoding, const UnicodeString &id); 38ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru 39ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru virtual const char *getPath(char buffer[2048], const char *filename); 40ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru 41ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru}; 42ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru 43ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru#endif 44