1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/security/cryptoservices/certificateandkeymgmt/tpkcs7/tpkcs7step.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,120 @@
1.4 +/*
1.5 +* Copyright (c) 2002-2009 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 the License "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 +
1.21 +
1.22 +/**
1.23 + @file
1.24 + @internalTechnology
1.25 +*/
1.26 +
1.27 +#if (!defined __TPKCS7_STEP_H__)
1.28 +#define __TPKCS7_STEP_H__
1.29 +#include <test/testexecutestepbase.h>
1.30 +#include "tpkcs7server.h"
1.31 +#include "tpkcs7stepbase.h"
1.32 +
1.33 +class CTPKCS7CorruptTest : public CTPKCS7StepBase
1.34 + {
1.35 +public:
1.36 + CTPKCS7CorruptTest();
1.37 + virtual TVerdict doTestStepL();
1.38 + };
1.39 +
1.40 +class CTPKCS7ValidTest : public CTPKCS7StepBase
1.41 + {
1.42 +public:
1.43 + CTPKCS7ValidTest();
1.44 + virtual TVerdict doTestStepL();
1.45 + };
1.46 +
1.47 +class CTPKCS7ContentTest : public CTPKCS7StepBase
1.48 + {
1.49 +public:
1.50 + CTPKCS7ContentTest();
1.51 + virtual TVerdict doTestStepL();
1.52 + };
1.53 +
1.54 +class CTPKCS7CertificateTest : public CTPKCS7StepBase
1.55 + {
1.56 +public:
1.57 + CTPKCS7CertificateTest();
1.58 + virtual TVerdict doTestStepL();
1.59 + };
1.60 +
1.61 +class CTPKCS7SignerTest : public CTPKCS7StepBase
1.62 + {
1.63 +public:
1.64 + CTPKCS7SignerTest();
1.65 + virtual TVerdict doTestStepL();
1.66 + };
1.67 +
1.68 +class CTPKCS7EncryptedDataTest : public CTPKCS7StepBase
1.69 + {
1.70 +public:
1.71 + CTPKCS7EncryptedDataTest();
1.72 + virtual TVerdict doTestStepL();
1.73 + };
1.74 +
1.75 +class CTPKCS7DigestInfoTest : public CTPKCS7StepBase
1.76 + {
1.77 +public:
1.78 + CTPKCS7DigestInfoTest();
1.79 + virtual TVerdict doTestStepL();
1.80 + };
1.81 +
1.82 +class CTPKCS7EncryptedDataCorruptTest : public CTPKCS7StepBase
1.83 + {
1.84 +public:
1.85 + CTPKCS7EncryptedDataCorruptTest();
1.86 + virtual TVerdict doTestStepL();
1.87 + };
1.88 +
1.89 +class CTPKCS7DigestInfoCorruptTest : public CTPKCS7StepBase
1.90 + {
1.91 +public:
1.92 + CTPKCS7DigestInfoCorruptTest();
1.93 + virtual TVerdict doTestStepL();
1.94 + };
1.95 +
1.96 +class CTPKCS7OOMTest : public CTPKCS7StepBase
1.97 + {
1.98 +public:
1.99 + CTPKCS7OOMTest();
1.100 + TVerdict doTestStepL();
1.101 + void doTestOOML();
1.102 +public:
1.103 + TInt iError;
1.104 + };
1.105 +
1.106 +_LIT(KTPKCS7EncryptedDataTest, "EncryptedData");
1.107 +_LIT(KTPKCS7DigestInfoTest, "DigestInfo");
1.108 +_LIT(KTPKCS7EncryptedDataCorruptTest, "EncryptedDataCorrupt");
1.109 +_LIT(KTPKCS7DigestInfoCorruptTest, "DigestInfoCorrupt");
1.110 +_LIT(KTPKCS7OOMTest,"PKCS7OOM");
1.111 +_LIT(KTCmsSignedDataTest,"CMSSignedData");
1.112 +_LIT(KTCmsSignedDataDecodingTest,"CMSSignedDataDecoding");
1.113 +_LIT(KTCmsDataTest,"CMSData");
1.114 +_LIT(KTCmsDataDecodingTest,"CMSDataDecoding");
1.115 +_LIT(KTCmsContentInfoDecodingTest,"CmsContentInfoDecoding");
1.116 +_LIT(KTPKCS7SignedDataTest,"PKCS7SignedData");
1.117 +_LIT(KTPKCS7CorruptTest, "Corrupt");
1.118 +_LIT(KTPKCS7ValidTest, "Valid");
1.119 +_LIT(KTPKCS7ContentTest, "Content");
1.120 +_LIT(KTPKCS7CertificateTest, "Certificate");
1.121 +_LIT(KTPKCS7SignerTest, "Signer");
1.122 +
1.123 +#endif