|
1 /* |
|
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __T_EUCJP_PACKED_2_H__ |
|
19 #define __T_EUCJP_PACKED_2_H__ |
|
20 |
|
21 //#include <w32std.h> |
|
22 #include <test/testexecutestepbase.h> |
|
23 |
|
24 class CT_EUCJP_PACKED_2 : public CTestStep |
|
25 { |
|
26 public: |
|
27 CT_EUCJP_PACKED_2(); |
|
28 protected: |
|
29 TVerdict doTestStepL(); |
|
30 private: |
|
31 void DoE32MainL(); |
|
32 void TestTruncatedConversionFromUnicodeToEucJpPacked(CCnvCharacterSetConverter& aCharacterSetConverter, const TDesC16& aOriginalUnicode); |
|
33 void TestSplittingConvertingFromUnicodeToEucJpPacked(CCnvCharacterSetConverter& aCharacterSetConverter, TInt aMaximumLengthLowerLimit, TInt aMaximumLengthUpperLimit, TInt aExpectedNumberOfUnicodeCharactersNotConvertedAtSplit, TInt aExpectedLengthOfFirstPartOfEucJpPacked, const TDesC8& aExpectedEucJpPacked, const TDesC16& aOriginalUnicode); |
|
34 void TestTruncatedConversionToUnicodeFromEucJpPacked(CCnvCharacterSetConverter& aCharacterSetConverter, const TDesC16& aExpectedUnicode, const TDesC8& aOriginalEucJpPacked); |
|
35 void TestSplittingConvertingToUnicodeFromEucJpPacked(CCnvCharacterSetConverter& aCharacterSetConverter, TInt aMaximumLengthLowerLimit, TInt aMaximumLengthUpperLimit, TInt aExpectedNumberOfEucJpPackedBytesNotConvertedAtSplit, TInt aExpectedLengthOfFirstPartOfUnicode, const TDesC16& aExpectedUnicode, const TDesC8& aOriginalEucJpPacked); |
|
36 void TestIsIllFormedEucJpPacked(CCnvCharacterSetConverter& aCharacterSetConverter, const TDesC8& aEucJpPacked); |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 }; |
|
42 |
|
43 _LIT(KTestStep_T_EUCJP_PACKED_2, "T_EUCJP_PACKED_2"); |
|
44 |
|
45 #endif //__T_EUCJP_PACKED_2_H__ |