• 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  **********************************************************************
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 );
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 
37 private:
38     void checkEncoding(const UnicodeString &testString,
39                        const UnicodeString &encoding, const UnicodeString &id);
40 
41     virtual const char *getPath(char buffer[2048], const char *filename);
42 
43 };
44 
45 #endif
46