1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/textandloc/charconvfw/charconvplugins/test/rtest/tsrc/main/t_iso2022jp.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,66 @@
1.4 +/*
1.5 +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
1.6 +* All rights reserved.
1.7 +* This component and the accompanying materials are made available
1.8 +* under the terms of "Eclipse Public License v1.0"
1.9 +* which accompanies this distribution, and is available
1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +*
1.12 +* Initial Contributors:
1.13 +* Nokia Corporation - initial contribution.
1.14 +*
1.15 +* Contributors:
1.16 +*
1.17 +* Description:
1.18 +*
1.19 +*/
1.20 +#ifndef __T_ISO2022JP_H__
1.21 +#define __T_ISO2022JP_H__
1.22 +
1.23 +//#include <w32std.h>
1.24 +#include <test/testexecutestepbase.h>
1.25 +
1.26 +class CCnvCharacterSetConverter;
1.27 +
1.28 +class CT_ISO2022JP : public CTestStep
1.29 + {
1.30 +public:
1.31 + CT_ISO2022JP();
1.32 +protected:
1.33 + TVerdict doTestStepL();
1.34 +private:
1.35 + void DoE32MainL();
1.36 + void TestConversionFromUnicodeToIso(
1.37 + CCnvCharacterSetConverter& aCharacterSetConverter,
1.38 + const TDesC16& aOriginalUnicode);
1.39 + void TestTruncatedConversionFromUnicodeToIso2022Jp(
1.40 + CCnvCharacterSetConverter& aCharacterSetConverter,
1.41 + const TDesC16& aOriginalUnicode);
1.42 + void TestSplittingConvertingFromUnicodeToIso2022Jp(
1.43 + CCnvCharacterSetConverter& aCharacterSetConverter,
1.44 + TInt aMaximumLengthLowerLimit,
1.45 + TInt aMaximumLengthUpperLimit,
1.46 + TInt aExpectedNumberOfUnicodeCharactersNotConvertedAtSplit,
1.47 + const TDesC8& aExpectedFirstPartOfIso2022Jp,
1.48 + const TDesC8& aExpectedSecondPartOfIso2022Jp,
1.49 + const TDesC16& aOriginalUnicode);
1.50 + void TestTruncatedConversionToUnicodeFromIso2022Jp(
1.51 + CCnvCharacterSetConverter& aCharacterSetConverter,
1.52 + const TDesC16& aExpectedUnicode,
1.53 + const TDesC8& aOriginalIso2022Jp);
1.54 + void TestSplittingConvertingToUnicodeFromIso2022Jp(
1.55 + CCnvCharacterSetConverter& aCharacterSetConverter,
1.56 + TInt aMaximumLengthLowerLimit,
1.57 + TInt aMaximumLengthUpperLimit,
1.58 + TInt aExpectedNumberOfIso2022JpBytesNotConvertedAtSplit,
1.59 + TInt aExpectedLengthOfFirstPartOfUnicode,
1.60 + const TDesC16& aExpectedUnicode,
1.61 + const TDesC8& aOriginalIso2022Jp);
1.62 + void TestIsIllFormedIso2022Jp(CCnvCharacterSetConverter& aCharacterSetConverter, const TDesC8& aIso2022Jp);
1.63 +
1.64 +
1.65 + };
1.66 +
1.67 +_LIT(KTestStep_T_ISO2022JP, "T_ISO2022JP");
1.68 +
1.69 +#endif //__T_ISO2022JP_H__