os/security/cryptoservices/certificateandkeymgmt/tasn1/testsequence.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 /*
     2 * Copyright (c) 2001-2009 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 the License "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 * Test object for ASN1 sequence objects
    16 *
    17 */
    18 
    19 
    20 #ifndef __TESTSEQUENCE_H__
    21 #define __TESTSEQUENCE_H__
    22 
    23 #include "testbase.h"
    24 
    25 class CASN1EncSequence;
    26 
    27 class CTestSequence : public CTestBase
    28 	{
    29 	public:
    30 		static CTestSequence* NewL(CASN1NormalTest &aASN1Action);
    31 
    32 		// Overridden from CTestBase
    33 		void GetName(TDes& aBuf);
    34 		TBool PerformTestsL(CConsoleBase& aConsole);
    35 
    36 	private:
    37 		CTestSequence(CASN1NormalTest &aASN1Action);
    38 		CASN1EncSequence* MakeSequenceEncoderLC(TInt aMaxDepth, TInt aMinSize, TInt aMaxSize);
    39 		TInt ReadAndCountL(const TDesC8& aBuf);
    40 		TBool PerformTest(CConsoleBase& aConsole, const TInt &aTestDepth, const TInt &aTestSize, const TInt &aTestNumber, const TInt &aTotalTests);
    41 		void FillParameterArray(void);
    42 
    43 		TInt iObjectsEncoded;
    44 	};
    45 
    46 #endif
    47