os/textandloc/charconvfw/charconvplugins/test/rtest/tsrc/main/t_iso2022jp.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     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 #ifndef __T_ISO2022JP_H__
    18 #define __T_ISO2022JP_H__
    19 
    20 //#include <w32std.h>
    21 #include <test/testexecutestepbase.h>
    22 
    23 class CCnvCharacterSetConverter;
    24 
    25 class CT_ISO2022JP : public CTestStep
    26     {
    27 public:
    28     CT_ISO2022JP();
    29 protected:  
    30     TVerdict doTestStepL();
    31 private:
    32     void DoE32MainL();
    33     void TestConversionFromUnicodeToIso(
    34                     CCnvCharacterSetConverter& aCharacterSetConverter,
    35                     const TDesC16& aOriginalUnicode);
    36     void TestTruncatedConversionFromUnicodeToIso2022Jp(
    37                     CCnvCharacterSetConverter& aCharacterSetConverter,
    38                     const TDesC16& aOriginalUnicode);
    39     void TestSplittingConvertingFromUnicodeToIso2022Jp(
    40                     CCnvCharacterSetConverter& aCharacterSetConverter,
    41                     TInt aMaximumLengthLowerLimit,
    42                     TInt aMaximumLengthUpperLimit,
    43                     TInt aExpectedNumberOfUnicodeCharactersNotConvertedAtSplit,
    44                     const TDesC8& aExpectedFirstPartOfIso2022Jp,
    45                     const TDesC8& aExpectedSecondPartOfIso2022Jp,
    46                     const TDesC16& aOriginalUnicode);
    47     void TestTruncatedConversionToUnicodeFromIso2022Jp(
    48                     CCnvCharacterSetConverter& aCharacterSetConverter,
    49                     const TDesC16& aExpectedUnicode,
    50                     const TDesC8& aOriginalIso2022Jp);
    51     void TestSplittingConvertingToUnicodeFromIso2022Jp(
    52                     CCnvCharacterSetConverter& aCharacterSetConverter,
    53                     TInt aMaximumLengthLowerLimit,
    54                     TInt aMaximumLengthUpperLimit,
    55                     TInt aExpectedNumberOfIso2022JpBytesNotConvertedAtSplit,
    56                     TInt aExpectedLengthOfFirstPartOfUnicode,
    57                     const TDesC16& aExpectedUnicode,
    58                     const TDesC8& aOriginalIso2022Jp);
    59     void TestIsIllFormedIso2022Jp(CCnvCharacterSetConverter& aCharacterSetConverter, const TDesC8& aIso2022Jp);
    60     
    61     
    62     };
    63 
    64 _LIT(KTestStep_T_ISO2022JP, "T_ISO2022JP");
    65 
    66 #endif //__T_ISO2022JP_H__