|
1 /* |
|
2 * Copyright (c) 2002-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 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 /** |
|
22 @file |
|
23 @internalTechnology |
|
24 */ |
|
25 |
|
26 #if (!defined __TPKCS7_STEP_H__) |
|
27 #define __TPKCS7_STEP_H__ |
|
28 #include <testexecutestepbase.h> |
|
29 #include "tpkcs7server.h" |
|
30 #include "tpkcs7stepbase.h" |
|
31 |
|
32 class CTPKCS7CorruptTest : public CTPKCS7StepBase |
|
33 { |
|
34 public: |
|
35 CTPKCS7CorruptTest(); |
|
36 virtual TVerdict doTestStepL(); |
|
37 }; |
|
38 |
|
39 class CTPKCS7ValidTest : public CTPKCS7StepBase |
|
40 { |
|
41 public: |
|
42 CTPKCS7ValidTest(); |
|
43 virtual TVerdict doTestStepL(); |
|
44 }; |
|
45 |
|
46 class CTPKCS7ContentTest : public CTPKCS7StepBase |
|
47 { |
|
48 public: |
|
49 CTPKCS7ContentTest(); |
|
50 virtual TVerdict doTestStepL(); |
|
51 }; |
|
52 |
|
53 class CTPKCS7CertificateTest : public CTPKCS7StepBase |
|
54 { |
|
55 public: |
|
56 CTPKCS7CertificateTest(); |
|
57 virtual TVerdict doTestStepL(); |
|
58 }; |
|
59 |
|
60 class CTPKCS7SignerTest : public CTPKCS7StepBase |
|
61 { |
|
62 public: |
|
63 CTPKCS7SignerTest(); |
|
64 virtual TVerdict doTestStepL(); |
|
65 }; |
|
66 |
|
67 class CTPKCS7EncryptedDataTest : public CTPKCS7StepBase |
|
68 { |
|
69 public: |
|
70 CTPKCS7EncryptedDataTest(); |
|
71 virtual TVerdict doTestStepL(); |
|
72 }; |
|
73 |
|
74 class CTPKCS7DigestInfoTest : public CTPKCS7StepBase |
|
75 { |
|
76 public: |
|
77 CTPKCS7DigestInfoTest(); |
|
78 virtual TVerdict doTestStepL(); |
|
79 }; |
|
80 |
|
81 class CTPKCS7EncryptedDataCorruptTest : public CTPKCS7StepBase |
|
82 { |
|
83 public: |
|
84 CTPKCS7EncryptedDataCorruptTest(); |
|
85 virtual TVerdict doTestStepL(); |
|
86 }; |
|
87 |
|
88 class CTPKCS7DigestInfoCorruptTest : public CTPKCS7StepBase |
|
89 { |
|
90 public: |
|
91 CTPKCS7DigestInfoCorruptTest(); |
|
92 virtual TVerdict doTestStepL(); |
|
93 }; |
|
94 |
|
95 class CTPKCS7OOMTest : public CTPKCS7StepBase |
|
96 { |
|
97 public: |
|
98 CTPKCS7OOMTest(); |
|
99 TVerdict doTestStepL(); |
|
100 void doTestOOML(); |
|
101 public: |
|
102 TInt iError; |
|
103 }; |
|
104 |
|
105 _LIT(KTPKCS7EncryptedDataTest, "EncryptedData"); |
|
106 _LIT(KTPKCS7DigestInfoTest, "DigestInfo"); |
|
107 _LIT(KTPKCS7EncryptedDataCorruptTest, "EncryptedDataCorrupt"); |
|
108 _LIT(KTPKCS7DigestInfoCorruptTest, "DigestInfoCorrupt"); |
|
109 _LIT(KTPKCS7OOMTest,"PKCS7OOM"); |
|
110 _LIT(KTCmsSignedDataTest,"CMSSignedData"); |
|
111 _LIT(KTCmsSignedDataDecodingTest,"CMSSignedDataDecoding"); |
|
112 _LIT(KTCmsDataTest,"CMSData"); |
|
113 _LIT(KTCmsDataDecodingTest,"CMSDataDecoding"); |
|
114 _LIT(KTCmsContentInfoDecodingTest,"CmsContentInfoDecoding"); |
|
115 _LIT(KTPKCS7SignedDataTest,"PKCS7SignedData"); |
|
116 _LIT(KTPKCS7CorruptTest, "Corrupt"); |
|
117 _LIT(KTPKCS7ValidTest, "Valid"); |
|
118 _LIT(KTPKCS7ContentTest, "Content"); |
|
119 _LIT(KTPKCS7CertificateTest, "Certificate"); |
|
120 _LIT(KTPKCS7SignerTest, "Signer"); |
|
121 |
|
122 #endif |