|
1 /* |
|
2 * Copyright (c) 1998-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 * tactiondecodepkcs5.h |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __TACTIONTESTPKCS8_H__ |
|
21 #define __TACTIONTESTPKCS8_H__ |
|
22 |
|
23 #include "t_testaction.h" |
|
24 #include <e32std.h> |
|
25 |
|
26 class CActionTestPKCS8 : public CTestAction |
|
27 { |
|
28 public: |
|
29 static CTestAction* NewL(RFs& aFs, CConsoleBase& aConsole, |
|
30 Output& aOut, const TTestActionSpec& aTestActionSpec); |
|
31 virtual ~CActionTestPKCS8(); |
|
32 virtual void PerformAction(TRequestStatus& aStatus); |
|
33 virtual void DoReportAction(void); |
|
34 virtual void DoCheckResult(TInt); |
|
35 |
|
36 private: |
|
37 CActionTestPKCS8(RFs& aFs, CConsoleBase& aConsole, Output& aOut); |
|
38 void ConstructL(const TTestActionSpec& aTestActionSpec); |
|
39 void ReadInputFileL(const TDesC8& aFilename); |
|
40 void SetExpectedOutcomeL(const TDesC8& aOutcome); |
|
41 |
|
42 enum TOutcome |
|
43 { |
|
44 ENoMatch, |
|
45 EMatchesPKCS8, |
|
46 EMatchesEncryptedPKCS8 |
|
47 }; |
|
48 |
|
49 RFs& iFs; |
|
50 HBufC8* iInput; |
|
51 TOutcome iExpectedOutcome; |
|
52 }; |
|
53 |
|
54 #endif |