]>
Commit | Line | Data |
---|---|---|
73c04bcf A |
1 | /* |
2 | ********************************************************************** | |
3 | * Copyright (C) 2005-2006, International Business Machines | |
4 | * Corporation and others. All Rights Reserved. | |
5 | ********************************************************************** | |
6 | */ | |
7 | ||
8 | #ifndef __CSDETEST_H | |
9 | #define __CSDETEST_H | |
10 | ||
11 | #include "unicode/utypes.h" | |
12 | #include "unicode/unistr.h" | |
13 | ||
14 | #include "intltest.h" | |
15 | ||
16 | class CharsetDetectionTest: public IntlTest { | |
17 | public: | |
18 | ||
19 | CharsetDetectionTest(); | |
20 | virtual ~CharsetDetectionTest(); | |
21 | ||
22 | virtual void runIndexedTest(int32_t index, UBool exec, const char* &name, char* par = NULL ); | |
23 | ||
24 | virtual void ConstructionTest(); | |
25 | virtual void UTF8Test(); | |
26 | virtual void UTF16Test(); | |
27 | virtual void C1BytesTest(); | |
28 | virtual void InputFilterTest(); | |
29 | virtual void DetectionTest(); | |
30 | ||
31 | private: | |
32 | void checkEncoding(const UnicodeString &testString, | |
33 | const UnicodeString &encoding, const UnicodeString &id); | |
34 | ||
35 | virtual const char *getPath(char buffer[2048], const char *filename); | |
36 | ||
37 | }; | |
38 | ||
39 | #endif |