|
1 /* |
|
2 * Copyright (c) 2005-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 */ |
|
24 |
|
25 #ifndef __RSAPARAMSTEST_H__ |
|
26 #define __RSAPARAMSTEST_H__ |
|
27 |
|
28 #include "t_testaction.h" |
|
29 |
|
30 class CRSATestPublicKey : public CTestAction |
|
31 { |
|
32 public: |
|
33 static CTestAction* NewL(RFs& aFs, CConsoleBase& aConsole, |
|
34 Output& aOut, const TTestActionSpec& aTestActionSpec); |
|
35 static CTestAction* NewLC(RFs& aFs, CConsoleBase& aConsole, |
|
36 Output& aOut, const TTestActionSpec& aTestActionSpec); |
|
37 virtual ~CRSATestPublicKey(); |
|
38 protected: |
|
39 virtual void DoPerformPrerequisite(TRequestStatus& aStatus); |
|
40 virtual void DoPerformPostrequisite(TRequestStatus& aStatus); |
|
41 // virtual void DoPerformActionL(); |
|
42 // virtual void DoPerformanceTestActionL(); |
|
43 virtual void DoReportAction(void); |
|
44 virtual void DoCheckResult(TInt); |
|
45 virtual void PerformAction(TRequestStatus& aStatus); |
|
46 private: |
|
47 CRSATestPublicKey(RFs& aFs, CConsoleBase& aConsole, Output& aOut); |
|
48 void ConstructL(const TTestActionSpec& aTestActionSpec); |
|
49 |
|
50 RFs& iFs; |
|
51 HBufC8 *iBody; |
|
52 TInt iExpectedReturnValue; |
|
53 }; |
|
54 |
|
55 class CRSATestPrivateKey : public CTestAction |
|
56 { |
|
57 public: |
|
58 static CTestAction* NewL(RFs& aFs, CConsoleBase& aConsole, |
|
59 Output& aOut, const TTestActionSpec& aTestActionSpec); |
|
60 static CTestAction* NewLC(RFs& aFs, CConsoleBase& aConsole, |
|
61 Output& aOut, const TTestActionSpec& aTestActionSpec); |
|
62 virtual ~CRSATestPrivateKey(); |
|
63 protected: |
|
64 virtual void DoPerformPrerequisite(TRequestStatus& aStatus); |
|
65 virtual void DoPerformPostrequisite(TRequestStatus& aStatus); |
|
66 // virtual void DoPerformActionL(); |
|
67 // virtual void DoPerformanceTestActionL(); |
|
68 virtual void DoReportAction(void); |
|
69 virtual void DoCheckResult(TInt); |
|
70 virtual void PerformAction(TRequestStatus& aStatus); |
|
71 private: |
|
72 CRSATestPrivateKey(RFs& aFs, CConsoleBase& aConsole, Output& aOut); |
|
73 void ConstructL(const TTestActionSpec& aTestActionSpec); |
|
74 |
|
75 RFs& iFs; |
|
76 HBufC8 *iBody; |
|
77 TInt iExpectedReturnValue; |
|
78 }; |
|
79 |
|
80 class CRSATestPrivateKeyCRT : public CTestAction |
|
81 { |
|
82 public: |
|
83 static CTestAction* NewL(RFs& aFs, CConsoleBase& aConsole, |
|
84 Output& aOut, const TTestActionSpec& aTestActionSpec); |
|
85 static CTestAction* NewLC(RFs& aFs, CConsoleBase& aConsole, |
|
86 Output& aOut, const TTestActionSpec& aTestActionSpec); |
|
87 virtual ~CRSATestPrivateKeyCRT(); |
|
88 protected: |
|
89 virtual void DoPerformPrerequisite(TRequestStatus& aStatus); |
|
90 virtual void DoPerformPostrequisite(TRequestStatus& aStatus); |
|
91 // virtual void DoPerformActionL(); |
|
92 // virtual void DoPerformanceTestActionL(); |
|
93 virtual void DoReportAction(void); |
|
94 virtual void DoCheckResult(TInt); |
|
95 virtual void PerformAction(TRequestStatus& aStatus); |
|
96 private: |
|
97 CRSATestPrivateKeyCRT(RFs& aFs, CConsoleBase& aConsole, Output& aOut); |
|
98 void ConstructL(const TTestActionSpec& aTestActionSpec); |
|
99 |
|
100 RFs& iFs; |
|
101 HBufC8 *iBody; |
|
102 TInt iExpectedReturnValue; |
|
103 }; |
|
104 #endif |