os/security/cryptoservices/certificateandkeymgmt/tasn1/testoctetstr.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     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 octet string types
    16 *
    17 */
    18 
    19 
    20 #ifndef __TESTOCTETSTR_H__
    21 #define __TESTOCTETSTR_H__
    22 
    23 #include "testbase.h"
    24 
    25 class CTestOctetString : public CTestBase
    26 	{
    27 	public:
    28 		static CTestOctetString* NewL(CASN1NormalTest &aASN1Action);
    29 		~CTestOctetString();
    30 
    31 		// Overridden from CTestBase
    32 		void GetName(TDes& aBuf);
    33 		TBool PerformTestsL(CConsoleBase& aConsole);
    34 		void ConstructL(void);
    35 
    36 	private:
    37 		CTestOctetString(CASN1NormalTest &aASN1Action);
    38 		TBool PerformTest(CConsoleBase& aConsole, const TPtr8 &toEncodePtr, const TInt &aTestNumber, const TInt &aTotalTests);
    39 		void FillParameterArray(void); 
    40 
    41 	private:
    42 
    43 
    44 		HBufC8* toEncodeBuf;
    45 		HBufC8* encodedBuf;
    46 	};
    47 
    48 #endif
    49