1 // © 2016 and later: Unicode, Inc. and others. 2 // License & terms of use: http://www.unicode.org/copyright.html 3 /* 4 ********************************************************************** 5 * Copyright (C) 2005-2012, International Business Machines 6 * Corporation and others. All Rights Reserved. 7 ********************************************************************** 8 */ 9 10 #ifndef __CSDETEST_H 11 #define __CSDETEST_H 12 13 #include "unicode/utypes.h" 14 #include "unicode/unistr.h" 15 16 #include "intltest.h" 17 18 class CharsetDetectionTest: public IntlTest { 19 public: 20 21 CharsetDetectionTest(); 22 virtual ~CharsetDetectionTest(); 23 24 virtual void runIndexedTest(int32_t index, UBool exec, const char* &name, char* par = NULL ) override; 25 26 virtual void ConstructionTest(); 27 virtual void UTF8Test(); 28 virtual void UTF16Test(); 29 virtual void C1BytesTest(); 30 virtual void InputFilterTest(); 31 virtual void DetectionTest(); 32 virtual void IBM424Test(); 33 virtual void IBM420Test(); 34 virtual void Ticket6394Test(); 35 virtual void Ticket6954Test(); 36 virtual void Ticket21823Test(); 37 38 private: 39 void checkEncoding(const UnicodeString &testString, 40 const UnicodeString &encoding, const UnicodeString &id); 41 42 virtual const char *getPath(char buffer[2048], const char *filename); 43 44 }; 45 46 #endif 47